Skip to content

Commit

Permalink
build with ksrc
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Aug 26, 2023
1 parent 1ba58b2 commit a7ea7fe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/crosscompile_Rock5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ jobs:
- name: Building rtl8812au in CHROOT
run: |
ls -a
sudo bash ./build_chroot.sh
sudo bash ./buildcross.sh
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 #################################
Expand Down
22 changes: 7 additions & 15 deletions build_chroot.sh → buildcross.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a7ea7fe

Please sign in to comment.