export NDK_PATH=</work/ndk>
export TOOLCHAIN=/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc
"${NDK_PATH}${TOOLCHAIN}" -Os bootmenu.c -o bootmenu -static -Wl,--gc-sections -Wl,--strip-all --sysroot=$NDK_PATH/platforms/android-13/arch-arm/
abootimg -x boot.img
mkdir initrd
cd initrd
cat ../initrd.img | gunzip | cpio -vid
find . | cpio --create --format='newc' | gzip > ../initrd_new.img
abootimg --create boot_new.img -f bootimg.cfg -k zImage -r initrd_new.img