3 # Get lots of predefined environment variables and shell functions.
5 source sources
/include.sh ||
exit 1
7 .
/download.sh ||
exit 1
10 if [ -z "$CROSS" ]; then
13 export CC
="${CROSS}gcc"
17 [ -z $
(which "$CC") ] && echo "Compiler '$CC' not found in \$PATH." && exit 1
25 rm -f "$TOP/initramfs-files"
26 blank_tempdir
"$STAGING_DIR"
27 ln -s "usr/lib" "$STAGING_DIR/lib"
28 blank_tempdir
"$ROOT_DIR"
31 if [[ ! -d "$ROOT_DIR" ||
! -d "$ROOT_DIR/usr" ]]
33 mkdir
-p "$ROOT_DIR"/{tmp
,proc
,sys
,dev
,home
/root
} || dienow
34 for i
in bin sbin lib etc
36 mkdir
-p "$ROOT_DIR/usr/$i" || dienow
37 ln -s "usr/$i" "$ROOT_DIR/$i" || dienow
50 build_package linux-headers
53 build_package kexec-tools
57 build_package freetype
65 build_package elementary
66 build_package dropbear
67 build_package dialog-elementary
69 echo "Build complete now run ./initramfs.sh"