fetch flanterm

This commit is contained in:
Matheus
2023-04-09 17:35:53 -03:00
parent ad70e8741d
commit 3ede2c4f94
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -11,3 +11,4 @@ astral.iso
kernel-src/include/limine.h kernel-src/include/limine.h
kernel-src/include/printf.h kernel-src/include/printf.h
kernel-src/io/printf.c kernel-src/io/printf.c
kernel-src/flanterm
+4
View File
@@ -3,13 +3,17 @@ version=0
source_dir="kernel-src" source_dir="kernel-src"
allow_network="yes" allow_network="yes"
imagedeps="wget" imagedeps="wget"
flanterm_commit="f95f5584fb87577908beff8cbe0f68fee8940517"
regenerate() { regenerate() {
curl https://raw.githubusercontent.com/limine-bootloader/limine/trunk/limine.h > include/limine.h curl https://raw.githubusercontent.com/limine-bootloader/limine/trunk/limine.h > include/limine.h
pushd /tmp/ pushd /tmp/
wget https://github.com/mpaland/printf/archive/refs/tags/v4.0.0.tar.gz wget https://github.com/mpaland/printf/archive/refs/tags/v4.0.0.tar.gz
tar -xf v4.0.0.tar.gz tar -xf v4.0.0.tar.gz
wget https://github.com/mintsuki/flanterm/archive/${flanterm_commit}.tar.gz
tar -xf ${flanterm_commit}.tar.gz
popd popd
cp /tmp/printf-4.0.0/printf.c io/printf.c cp /tmp/printf-4.0.0/printf.c io/printf.c
cp /tmp/printf-4.0.0/printf.h include/printf.h cp /tmp/printf-4.0.0/printf.h include/printf.h
cp -r /tmp/flanterm-${flanterm_commit} flanterm
} }