# this reduced package only builds fw_printenv and fw_setenv. PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH=https://github.com/u-boot/u-boot/archive/v${PKGVER}.tar.gz MAKEDEPENDS= function do_config { $FLXMAKE defconfig CROSS_COMPILE=$FLXCROSS } function do_compile_only { $FLXPMAKE envtools CROSS_COMPILE=$FLXCROSS } function do_prepack { mkdir -p $ROOTDIR/sbin || exit 1 cp tools/env/fw_printenv $ROOTDIR/sbin/ || exit 1 ln -s fw_printenv $ROOTDIR/sbin/fw_setenv || exit 1 mkdir -p $ROOTDIR/etc || exit 1 printf "#mtddev offset env_size erase_size\n" >> $ROOTDIR/etc/fw_env.config || exit 1 printf "#/dev/mtd1 0x00000 0x20000 0x20000\n" >> $ROOTDIR/etc/fw_env.config || exit 1 set_default_perm $ROOTDIR }