Skip to content

Commit

Permalink
qca-mcs: drop ugly hack
Browse files Browse the repository at this point in the history
  • Loading branch information
aiamadeus committed Apr 16, 2022
1 parent 98e0222 commit af54dc2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 30 deletions.

This file was deleted.

33 changes: 16 additions & 17 deletions package/qca/nss/qca-mcs/Makefile → package/qca/qca-mcs/Makefile
Original file line number Diff line number Diff line change
@@ -1,27 +1,28 @@
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk

PKG_NAME:=qca-mcs
PKG_RELEASE:=1

PKG_SOURCE_URL:=https://source.codeaurora.org/quic/qsdk/oss/lklm/qca-mcs
PKG_SOURCE_PROTO:=git
PKG_SOURCE_DATE:=2021-10-28
PKG_SOURCE_URL:=https://source.codeaurora.org/quic/qsdk/oss/lklm/qca-mcs
PKG_SOURCE_VERSION:=31f5cd4b83da5a7c0fdca240b4e72677e4523b6e
PKG_MIRROR_HASH:=1b6997793b51cbeed9520d3183787aaf5ce283cf87ef6603c24cc342654dde61
PKG_MIRROR_HASH:=3e2e25025dc2e771aafe7d8b12f26ac831d123b34bdd7b7e84bd39c1e933491d

include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk

define KernelPackage/qca-mcs
SECTION:=kernel
CATEGORY:=Kernel modules
SUBMENU:=Network Support
URL:=http://www.qca.qualcomm.com
MAINTAINER:=Qualcomm Atheros, Inc.
TITLE:=QCA Multicast Snooping Support
DEPENDS:=
KCONFIG:=CONFIG_NETFILTER=y CONFIG_BRIDGE_NETFILTER=y
DEPENDS:=@(TARGET_ipq806x||TARGET_ipq807x)
KCONFIG:= \
CONFIG_NETFILTER=y \
CONFIG_BRIDGE_NETFILTER=y
FILES:=$(PKG_BUILD_DIR)/qca-mcs.ko
AUTOLOAD:=$(call AutoLoad,41,qca-mcs)
AUTOLOAD:=$(call AutoLoad,52,qca-mcs)
endef

define KernelPackage/qca-mcs/description
Expand All @@ -39,17 +40,15 @@ define Build/InstallDev
endef

QCA_MC_SNOOPING_MAKE_OPTS:= \
MC_SUPPORT_MLD=1
$(KERNEL_MAKE_FLAGS) \
CONFIG_SUPPORT_MLD=y \
MDIR=$(PKG_BUILD_DIR) \
KBUILDPATH=$(LINUX_DIR) \
KERNELPATH=$(LINUX_SRC_DIR) \
KERNELRELEASE=$(LINUX_RELEASE)

define Build/Compile
$(MAKE) $(PKG_JOBS) -C $(LINUX_DIR) \
$(KERNEL_MAKE_FLAGS) \
KBUILDPATH=$(LINUX_DIR) \
$(PKG_MAKE_FLAGS) \
M=$(PKG_BUILD_DIR) \
EXTRA_CFLAGS="$(EXTRA_CFLAGS)" \
$(strip $(QCA_MC_SNOOPING_MAKE_OPTS)) \
modules
$(MAKE) -C $(LINUX_DIR) M=$(PKG_BUILD_DIR) $(strip $(QCA_MC_SNOOPING_MAKE_OPTS))
endef

$(eval $(call KernelPackage,qca-mcs))

0 comments on commit af54dc2

Please sign in to comment.