| | |
| | | |
| | | BR_VER=buildroot-2021.02.7 |
| | | BR_PAK=${BR_VER}-packets |
| | | BR_TAR=${BR_PAK}.tar.bz2 |
| | | |
| | | BR_TAR=${BR_PAK}.tar.bz2 |
| | | BR_CONF=${BR_VER}-cortexA7.config |
| | | |
| | | # This packet and configure file support QT, opencv... |
| | | #BR_TAR=${BR_PAK}-multimedia.tar.bz2 |
| | | #BR_CONF=${BR_VER}-cortexA7-multimedia.config |
| | | |
| | | JOBS=`cat /proc/cpuinfo | grep processor | wc -l` |
| | | |
| | |
| | | printf "\n\n -- decompress ${BR_VER} -- \n\n" |
| | | tar -xjf ${BR_PAK}/buildroot/${BR_VER}.tar.bz2 |
| | | |
| | | mv ${BR_PAK} ${BR_VER}/dl |
| | | mv ${BR_PAK} ${BR_VER}/tarballs |
| | | } |
| | | |
| | | function do_patch() |
| | |
| | | |
| | | cd $BR_VER |
| | | |
| | | cp dl/buildroot/$BR_CONF .config |
| | | cp tarballs/buildroot/$BR_CONF .config |
| | | cp tarballs/busybox/busybox.config package/busybox/ |
| | | sed -i "s|^BR2_HOST_DIR=.*|BR2_HOST_DIR=\"${INST_PATH}\"|g" .config |
| | | |
| | | cd - |