update build shell script to support fakeroot
| | |
| | | { |
| | | "board":"LoRaGW", |
| | | "version":"linux4sam-6.1", |
| | | "giturl":"http://master.iot-yun.club:2211", |
| | | "giturl":"http://master.weike-iot.com:2211", |
| | | "crosstool":"/opt/buildroot/gcc-armel-5.5-v2019.02/bin/arm-linux-" |
| | | } |
| | | } |
| | |
| | | |
| | | #echo "Parition size ${partition_size}MiB and LEB=$LEB_CNT" |
| | | set -x |
| | | sudo mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp} |
| | | fakeroot mkfs.ubifs -F -d ${ROOTFS_SRC} -m ${PAGE_SIZE} -e ${LEB_SIZE} -c $LEB_CNT -o ${ubimg_tmp} |
| | | set +x |
| | | |
| | | # vol_size smaller than the actual size of the partition to leave room for Ubifs internal data. |
| | |
| | | make -j${JOBS} ARCH=${ARCH} CROSS_COMPILE=${CROSS_COMPILE} |
| | | |
| | | pr_info "mkimage -f linuxrom-${BOARD}.its ${IMG_KER}" |
| | | mkimage -f linuxrom-${BOARD}.its ${IMG_KER} > /dev/null |
| | | ../bootloader/u-boot-at91/tools/mkimage -f linuxrom-${BOARD}.its ${IMG_KER} > /dev/null |
| | | chmod a+x ${IMG_KER} |
| | | |
| | | set -x |
| | |
| | | systools="coreutils jq wget curl tree gawk sed unzip cpio bc lzop zstd rsync kmod kpartx \ |
| | | desktop-file-utils iputils-ping xterm diffstat chrpath asciidoc docbook-utils help2man \ |
| | | build-essential gcc g++ make cmake automake groff socat flex texinfo bison texi2html \ |
| | | git cvs subversion mercurial autoconf autoconf-archive parted dosfstools \ |
| | | git cvs subversion mercurial autoconf autoconf-archive parted dosfstools fakeroot \ |
| | | python3 python3-pip python3-pexpect python3-git python3-jinja2 \ |
| | | lib32z1 libssl-dev libncurses-dev libgl1-mesa-dev libglu1-mesa-dev libsdl1.2-dev \ |
| | | u-boot-tools mtd-utils device-tree-compiler binfmt-support " |