summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2023-05-12 20:35:46 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2023-05-12 20:35:46 +0200
commit721bf78ba02d9032a65b4c3c808785f36dcb85c5 (patch)
treec26064b212537828474b9df9c45c75d12ca13e19 /scripts
parent2c641c57ae131d8dfaaf75c1fcb4cfb6432b6588 (diff)
downloadi486tcc-linux-721bf78ba02d9032a65b4c3c808785f36dcb85c5.tar.gz
i486tcc-linux-721bf78ba02d9032a65b4c3c808785f36dcb85c5.tar.bz2
reactivated samurai
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build.sh19
-rwxr-xr-xscripts/download.sh4
2 files changed, 16 insertions, 7 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index 7003bc3..70ebf99 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -359,6 +359,18 @@ else
echo "stage1 nbd-client exists"
fi
+if [ ! -f "${BASE}/build/stage1/bin/samu" ]; then
+ rm -rf "samurai-${SAMURAI_VERSION}"
+ tar xf "${BASE}/downloads/samurai-${SAMURAI_VERSION}.tar.gz"
+ cd "samurai-${SAMURAI_VERSION}"
+ CC="${BASE}/build/stage1/bin/i386-tcc" LDFLAGS=-static \
+ make -j$CPUS samu
+ make -j$CPUS install DESTDIR="${BASE}/build/stage1" PREFIX=/
+ cd ..
+else
+ echo "stage1 samurai exists"
+fi
+
# TODO FROM HERE
# TODO: have some way to deal with dependencies and with the user
@@ -403,17 +415,11 @@ fi
#~ make CC=/data/work/i486/build/stage1/bin/i386-tcc LDFLAGS="-static ../lasagna/libasagna.a"
#~ make install
-
-
#~ cd ../strace
#~ CC=/data/work/i486/build/stage1/bin/i386-tcc ./configure --prefix=/data/work/i486/build/stage1 --enable-mpers=no --disable-dependency-tracking
#~ make
#~ # TODO: rtnl_link.c:968: error: Unexpected size of ivg.ivg_64(16 expected)
-#~ cd ../samurai
-#~ make CC=/data/work/i486/build/stage1/bin/i386-tcc LDFLAGS=-static
-#~ make install PREFIX=/data/work/i486/build/stage1
-
#~ cd ../editline
#~ ./autogen.sh
#~ CC=/data/work/i486/build/stage1/bin/i386-tcc ./configure --prefix=/data/work/i486/build/stage1 --enable-static
@@ -425,7 +431,6 @@ fi
#~ MYLDFLAGS=-static AR='/data/work/i486/build/stage0/bin/i386-tcc -ar' RANLIB=echo
#~ make install INSTALL_TOP=/data/work/i486/build/stage1
-
#~ cd ../iproute2
#~ PKG_CONFIG=false CC=/data/work/i486/build/stage1/bin/i386-tcc \
#~ ./configure --prefix=/data/work/i486/build/stage1
diff --git a/scripts/download.sh b/scripts/download.sh
index cdc0aa9..a5d9a42 100755
--- a/scripts/download.sh
+++ b/scripts/download.sh
@@ -133,6 +133,10 @@ if [ ! -f "${BASE}/downloads/nbd-${NBD_VERSION}.tar.gz" ]; then
wget -O "${BASE}/downloads/nbd-${NBD_VERSION}.tar.gz" "https://github.com/NetworkBlockDevice/nbd/releases/download/nbd-${NBD_VERSION}/nbd-${NBD_VERSION}.tar.xz"
fi
+if [ ! -f "${BASE}/downloads/samurai-${SAMURAI_VERSION}.tar.gz" ]; then
+ wget -O "${BASE}/downloads/samurai-${SAMURAI_VERSION}.tar.gz" "https://github.com/michaelforney/samurai/releases/download/${SAMURAI_VERSION}/samurai-${SAMURAI_VERSION}.tar.gz"
+fi
+
if [ ! -f "${BASE}/downloads/uflbbl-${UFLBBL_VERSION}.tar.gz" ]; then
cd "${BASE}/downloads/"
git clone git://git.andreasbaumann.cc/uflbbl.git "uflbbl-${UFLBBL_VERSION}"