Skip to content

Commit

Permalink
fix:88x2bu make it bulid against the correct kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
karubabu committed Oct 28, 2018
1 parent d7b1d2c commit 946da91
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion net-misc/rtl88x2bu/rtl88x2bu-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ BUILD_TARGETS="modules"

src_prepare() {
eapply_user
sed -i -e 's/EXTRA_CFLAGS += -Werror/#EXTRA_CFLAGS += -Werror/' Makefile || die "Sed failed!"
sed -i -e "s/EXTRA_CFLAGS += -Werror/# EXTRA_CFLAGS += -Werror/" Makefile || die "Sed failed!"
sed -i -e "s:-C \$(KSRC):-C /lib/modules/${KV_FULL}/build:" Makefile || die "Sed faild!"
}

pkg_setup() {
Expand All @@ -45,6 +46,7 @@ pkg_setup() {

src_compile() {
# BUILD_PARAMS="KERNELDIR=${KV_DIR}"
BUILD_PARAMS="KERNELDIR=${KERNEL_DIR}"
linux-mod_src_compile
}

Expand Down

0 comments on commit 946da91

Please sign in to comment.