4 files modified
1 files deleted
1 files added
| | |
| | | |
| | | PROJ_PATH=`pwd` |
| | | |
| | | CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | |
| | | BOARD=sama5d4 |
| | | PACK_PATH=${PROJ_PATH}/tarballs |
| | | PATCH_PATH=${PROJ_PATH}/patches |
| | | PATCH_SUFIX=${BOARD}.patch |
| | | |
| | | |
| | | |
| | | ROOTFS_SRC=rootfs |
| | |
| | | |
| | | if [ -f ${PATCH_PATH}/${SRC_DIR}-${PATCH_SUFIX} ] ; then |
| | | show_banner "| patch for ${SRC_DIR} |" |
| | | |
| | | # update cross compiler |
| | | sed -i -e "s|^+CROSSTOOL=.*|+CROSSTOOL=${CROSSTOOL}|g" ${PATCH_PATH}/${SRC_DIR}-${PATCH_SUFIX} |
| | | |
| | | patch -p1 < ${PATCH_PATH}/${SRC_DIR}-${PATCH_SUFIX} |
| | | fi |
| | | else |
| | |
| | | function build_rootfs() |
| | | { |
| | | if [ ! -d ${ROOTFS_SRC} ] ; then |
| | | if [ `id -u` != 0 ] ; then |
| | | printf "\nERROR: decompress rootfs need root privilege, please use sudo!\n\n" |
| | | exit ; |
| | | fi |
| | | |
| | | tar -xJf ${PACK_PATH}/${ROOTFS_SRC}.tar.xz |
| | | printf "\nWARNNING: decompress rootfs need root privilege, please input sudo passwd!\n\n" |
| | | sudo tar -xJf ${PACK_PATH}/${ROOTFS_SRC}.tar.xz |
| | | fi |
| | | |
| | | show_banner "| start build rootfs image... |" |
| | |
| | | +IMGS_PATH=../images |
| | | +IMG_NAME=bootstrap-${BOARD}.bin |
| | | + |
| | | +CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | +JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l` |
| | | + |
| | | + |
| | |
| | | + |
| | | +#INITRAMFS=YES |
| | | + |
| | | +CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | +JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l` |
| | | + |
| | | +set -e |
| | |
| | | +IMGS_PATH=../images |
| | | +IMG_NAME=u-boot-${BOARD}.bin |
| | | + |
| | | +CROSSTOOL=/opt/crosstool/cortex-a7/bin/arm-linux-gnueabi- |
| | | +CROSSTOOL=/opt/buildroot/cortex-a5/bin/arm-linux- |
| | | +JOBS=`cat /proc/cpuinfo |grep "processor"|wc -l` |
| | | + |
| | | + |