arm-sdk

os build toolkit for various embedded devices
git clone https://git.parazyd.org/arm-sdk
Log | Files | Refs | Submodules | README | LICENSE

commit e3242724ce915466f07e0f60b230fbc7ecbdc2cb
parent 69a06b38e8e3443bc32232492ffeb1ee9db45af0
Author: parazyd <parazyd@dyne.org>
Date:   Mon, 10 Oct 2016 22:17:06 +0200

refactor n900 script for new style

Diffstat:
Mboards/nokia-n900.sh | 18++++++++++--------
1 file changed, 10 insertions(+), 8 deletions(-)

diff --git a/boards/nokia-n900.sh b/boards/nokia-n900.sh @@ -27,7 +27,7 @@ arrs+=(custmodules extra_packages) device_name="n900" arch="armhf" size=1337 -inittab="T1:12345:respawn:/sbin/agetty -L ttyS0 115200 vt100" +#inittab="T1:12345:respawn:/sbin/agetty -L ttyS0 115200 vt100" parted_type="dos" parted_boot="fat32 2048s 264191s" @@ -47,6 +47,9 @@ prebuild() { notice "executing $device_name prebuild" write-fstab + copy-zram-init + + mkdir -p $R/tmp/kernels/$device_name } postbuild() { @@ -58,22 +61,21 @@ postbuild() { build_kernel_armhf() { fn build_kernel_armhf req=(R arch device_name gitkernel gitbranch MAKEOPTS) - req+=(strapdir sunxi_tools sunxi_uboot sunxi_boards) + req+=(strapdir) req+=(loopdevice) ckreq || return 1 - prebuild || zerr - notice "building $arch kernel" - mkdir -p $R/tmp/kernels/$device_name + + prebuild || zerr get-kernel-sources pushd $R/tmp/kernels/$device_name/${device_name}-linux #wget -O .config $linux_defconfig make rx51_defconfig - make $MAKEOPTS zImage modules + make $MAKEOPTS zImage modules || zerr sudo -E PATH="$PATH" \ - make INSTALL_MOD_PATH=$strapdir modules_install + make INSTALL_MOD_PATH=$strapdir modules_install || zerr popd sudo rm -rf $strapdir/lib/firmware @@ -86,7 +88,7 @@ build_kernel_armhf() { #make mrproper make rx51_defconfig sudo -E PATH="$PATH" \ - make modules_prepare + make modules_prepare || zerr popd postbuild || zerr