aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/qca-ssdk/Makefile
diff options
context:
space:
mode:
authorRobert Marko <robimarko@gmail.com>2023-05-23 14:55:48 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-05-23 23:52:58 +0200
commit4a6847ce4e4a8034738484a0ff4cb012fa1b295e (patch)
tree92121d70e450de1983bec682e8c1e488f5edb805 /package/kernel/qca-ssdk/Makefile
parent7df43979d102fac7b4f5ca519512c601709aac3b (diff)
downloadupstream-4a6847ce4e4a8034738484a0ff4cb012fa1b295e.tar.gz
upstream-4a6847ce4e4a8034738484a0ff4cb012fa1b295e.tar.bz2
upstream-4a6847ce4e4a8034738484a0ff4cb012fa1b295e.zip
kernel: qca-ssdk: backport support for building as kernel module
Currently, SSDK is rather special in the sense that its not being built as a proper out of tree module at all but rather like a userspace application and that involves a lot of make magic which unfortunately broke with make version 4.4 and newer. Luckily QCA finally added a way to build SSDK as an out of tree module and it uses the kernel buildsystem which makes it compile with make 4.4 as well. So lets backport the support for it and switch to using it. Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 957f1ee85eb243c5c7397b1e3842a3c61a6b852f)
Diffstat (limited to 'package/kernel/qca-ssdk/Makefile')
-rw-r--r--package/kernel/qca-ssdk/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/package/kernel/qca-ssdk/Makefile b/package/kernel/qca-ssdk/Makefile
index 62c60fc1be..92f7b66490 100644
--- a/package/kernel/qca-ssdk/Makefile
+++ b/package/kernel/qca-ssdk/Makefile
@@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=qca-ssdk
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_URL:=https://git.codelinaro.org/clo/qsdk/oss/lklm/qca-ssdk.git
PKG_SOURCE_PROTO:=git
@@ -37,6 +37,8 @@ else
TOOLCHAIN_BIN_PATH=$(TOOLCHAIN_DIR)/bin
endif
+LNX_CONFIG_OPTS = LNX_MAKEOPTS='$(KERNEL_MAKEOPTS)' MODULE_TYPE=KSLIB modules
+
MAKE_FLAGS+= \
TARGET_NAME=$(CONFIG_TARGET_NAME) \
TOOL_PATH=$(TOOLCHAIN_BIN_PATH) \
@@ -47,7 +49,7 @@ MAKE_FLAGS+= \
TARGET_SUFFIX=$(CONFIG_TARGET_SUFFIX) \
GCC_VERSION=$(GCC_VERSION) \
EXTRA_CFLAGS=-fno-stack-protector -I$(STAGING_DIR)/usr/include \
- $(KERNEL_MAKE_FLAGS)
+ $(LNX_CONFIG_OPTS)
ifeq ($(CONFIG_TARGET_BOARD), "ipq807x")
MAKE_FLAGS+= CHIP_TYPE=HPPE PTP_FEATURE=disable SWCONFIG_FEATURE=disable