]> git.friedersdorff.com Git - max/initramfs.git/commitdiff
Add dropbear compilation
authorMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 16 May 2018 07:51:20 +0000 (08:51 +0100)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Wed, 16 May 2018 07:51:20 +0000 (08:51 +0100)
build_deps.sh

index 52502f894c05ef64c0518596670bf2a6b634623f..b275913f39a92d2d4a35ef7e158bf9181b0586d3 100755 (executable)
@@ -17,6 +17,9 @@ cryptsetup_ver="$(version ${cryptsetup})"
 lvm="LVM"
 lvm_ver="2.2.02.166"
 
+busybox="busybox"
+busybox_ver="$(version ${dropbear})"
+
 if [ -d ${wd} ]; then
   rm -rf ${wd}
 fi
@@ -77,4 +80,21 @@ CFLAGS="-fPIC" \
 make -j8
 make install DESTDIR=${wd}/lvm
 
+cd ${wd}
+
+cd ${dropbear}${dropbear}
+
+./configure --enable-static \
+  --disable-syslog \
+  --disable-utmp \
+  --disable-utmpx \
+  --disable-wtmp \
+  --disable-wtmpx \
+  --disable-harden \
+  --disable-zlib \
+  --disable-pam \
+  --disable-shadow
+
+make -j8
+make install DESTDIR=${wd}/dropbear