updated for build orangepi_zero_2w

This commit is contained in:
wt
2025-04-03 17:39:16 +07:00
parent 0210af212d
commit 641ab89367
11 changed files with 458 additions and 6560 deletions
+2 -2
View File
@@ -19,13 +19,13 @@ hostapd() {
sed -i "/CONFIG_EAP_TLS=y/s//#CONFIG_EAP_TLS=y/" defconfig
cp -v defconfig .config
CC=${CROSS_COMPILE}-gcc \
PKG_CONFIG_PATH=/opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/usr/lib/pkgconfig \
PKG_CONFIG_PATH=/opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/usr/lib/pkgconfig \
make ${makeflags}
check $? "Build ${pkgname}"
${CROSS_COMPILE}-strip hostapd hostapd_cli
check $? "Stripping ${pkgname} binary"
cp -v hostapd hostapd_cli $rootfspath/usr/bin/
cp -v /opt/toolchains/arm-buildroot-linux-uclibcgnueabihf/arm-buildroot-linux-uclibcgnueabihf/sysroot/lib/libatomic.so.1.2.0 \
cp -v /opt/toolchains/$CROSS_COMPILE/$CROSS_COMPILE/sysroot/lib/libatomic.so.1.2.0 \
$rootfspath/usr/lib
ln -sv libatomic.so.1.2.0 $rootfspath/usr/lib/libatomic.so.1
check $? "Install to rootfs ${pkgname}"