From a7ea7fe2e43b1a8fde1eed87f07cd2966635667e Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Sat, 26 Aug 2023 11:01:58 +0200 Subject: [PATCH] build with ksrc --- .github/workflows/crosscompile_Rock5.yml | 2 +- Makefile | 16 ---------------- build_chroot.sh => buildcross.sh | 22 +++++++--------------- 3 files changed, 8 insertions(+), 32 deletions(-) rename build_chroot.sh => buildcross.sh (74%) diff --git a/.github/workflows/crosscompile_Rock5.yml b/.github/workflows/crosscompile_Rock5.yml index e30e88b..19d8199 100644 --- a/.github/workflows/crosscompile_Rock5.yml +++ b/.github/workflows/crosscompile_Rock5.yml @@ -23,4 +23,4 @@ jobs: - name: Building rtl8812au in CHROOT run: | ls -a - sudo bash ./build_chroot.sh + sudo bash ./buildcross.sh diff --git a/Makefile b/Makefile index 4b38379..fe50db0 100755 --- a/Makefile +++ b/Makefile @@ -299,22 +299,6 @@ _BTC_FILES += hal/btc/halbtc8192e1ant.o \ hal/btc/halbtc8821c2ant.o endif -ifeq ($(CONFIG_RTL8812AU),y) - # List of object files - obj-y += \ - hal/btc/halbtc8723d2ant.o \ - hal/btc/halbtc8822b1ant.o \ - hal/btc/halbtc8822b2ant.o \ - hal/btc/halbtc8821c1ant.o \ - hal/btc/halbtc8821c2ant.o - - # Display the TopDIR and file contents - @echo "TopDIR: $(TopDIR)" - @echo "Files:" - @echo $(obj-y) -endif - - include $(TopDIR)/drivers/net/wireless/rtl8812au/hal/phydm/phydm.mk ########### HAL_RTL8812A_RTL8821A ################################# diff --git a/build_chroot.sh b/buildcross.sh similarity index 74% rename from build_chroot.sh rename to buildcross.sh index 695cfec..0d07768 100644 --- a/build_chroot.sh +++ b/buildcross.sh @@ -24,24 +24,16 @@ PACKAGE_ARCH=arm64 export CROSS_COMPILE=arm-linux-aarch64- cd .. +#prepping kernel +git clone https://github.com/OpenHD/RK_Kernel kernel --depth=1 + + #build driver mkdir package -export KERNEL_VERSION="5.10.66-27-rockchip-gea60d388902d" +export KERNEL_VERSION="5.10.110-99-rockchip" export CROSS_COMPILE=crosscompiler/gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu- -make KSRC=${LINUX_DIR} -j $J_CORES M=$(pwd) modules || exit 1 +make KSRC= kernel -j $J_CORES M=$(pwd) modules || exit 1 mkdir -p package/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/realtek/rtl8812au install -p -m 644 88XXau_wfb.ko "package/lib/modules/${KERNEL_VERSION}/kernel/drivers/net/wireless/88XXau_wfb.ko" -fpm -a arm64 -s dir -t deb -n rtl8812au -v 2.5-$(date '+%m%d%H%M') -C ./packagedir/ -p rtl8812au.deb -mkdir -p /opt/out/ -cp -v *.dep /opt/out/ -echo "copied deb file" -echo "push to cloudsmith" -git describe --exact-match HEAD >/dev/null 2>&1 -echo "Pushing the package to OpenHD 2.3 repository" -ls -a -API_KEY=$(cat cloudsmith_api_key.txt) -DISTRO=$(cat distro.txt) -FLAVOR=$(cat flavor.txt) -cloudsmith push deb --api-key "$API_KEY" openhd/openhd-2-3-evo/${DISTRO}/${FLAVOR} *.deb || exit 1 - +fpm -a arm64 -s dir -t deb -n rtl8812au -v 2.5-$(date '+%m%d%H%M') -C ./packagedir/ -p rtl8812au.deb \ No newline at end of file