mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-06-09 18:02:04 +08:00

* rules: fix broken commitcount on alpine system To generate commitcount we use grep --max-count. This is not present on alpine grep and cause wrong generation. Use -m as it's just the short version of --max-count and more portable. Fixes: #11200 Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> * image-commands.mk: Be consistent in command invocation Most/all other tools use the staging dir prefix, gzip should as well. Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Acked-by: Christian Marangi <ansuelsmth@gmail.com> * image: fix device profile specific COMPILE targets Commit a01d23e75 ("image: always rebuild kernel loaders") is a step in the right direction, but exposed some issues and regressions in the makefile. Some of the files made by device specific COMPILE targets start with an "append" command (i.e. >> instead of > redirection) and if the file already exists, the target file is the input to itself before the first recipe-specified input. Fixes: a01d23e75 ("image: always rebuild kernel loaders") Fixes: a7fb589e8 ("image: always rebuild kernel loaders") Signed-off-by: Michael Pratt <mcpratt@pm.me> * trusted-firmware-a.mk: use correct CPE ID There are 2 different CPE IDs on the NVD website: cpe:/a:arm:trusted_firmware-a cpe:/o:arm:arm_trusted_firmware The ID as currently used in trusted-firmware-a.mk does not exist. The CPE ID using the arm_trusted_firmware product name only lists a few records for versions 2.2 and 2.3 on the NVD site. The CPE ID using the trusted_firmware-a product name lists many more records, and actually has a CVE linked to it. Therefore, use the CPE ID using the trusted_firmware-a product name. Fixes: 104d60fe94ce ("trusted-firmware-a.mk: add PKG_CPE_ID") Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> * fritz-tools: fritz_tffs_nand: exclude oob code when disabled Skip unnecessary stuff if checking the oob data is disabled. Signed-off-by: Andre Heider <a.heider@gmail.com> * fritz-tools: fritz_tffs_nand: get rid of struct tffs_sectors This doesn't help and "[0]" gets in the way of bounds checks. Signed-off-by: Andre Heider <a.heider@gmail.com> * fritz-tools: fritz_tffs_nand: cache already read sector ids This speeds up the tool significantly, especially when using the "-a" argument. Signed-off-by: Andre Heider <a.heider@gmail.com> * iproute2: add missing libbpf dependency This patch adds libbpf to the dependencies of tc-mod-iptables. The package tc-mod-iptables is missing libbpf as a dependency, which leads to the build failure described in bug #9491 LIBBPF_FORCE=on set, but couldn't find a usable libbpf The build dependency is already automatically added because some other packages from iproute2 depend on libbpf, but bpftools has multiple build variants. With multiple build variants none gets build by default and the build system will not build bpftools before iproute2. Fixes: #9491 Signed-off-by: Kien Truong <duckientruong@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * iproute2: update to 6.0.0 Release Notes: https://lore.kernel.org/netdev/20221004082610.56b04719@hermes.local/t/ Remove upstreamed patch: - 010-ipstats-Add-param.h-for-musl.patch Refreshed: - 140-keep_libmnl_optional.patch - 145-keep_libelf_optional.patch - 150-keep_libcap_optional.patch - 155-keep_tirpc_optional.patch - 170-ip_tiny.patch - 190-fix-nls-rpath-link.patch - 200-drop_libbsd_dependency.patch - 300-selinux-configurable.patch Signed-off-by: Nick Hainke <vincent@systemli.org> * iproute2: update to 6.1.0 Announcement: https://lore.kernel.org/netdev/20221214094130.7b11ec2e@hermes.local/T/#t Refresh patch: - 170-ip_tiny.patch Signed-off-by: Nick Hainke <vincent@systemli.org> * tools/xz: update to 5.2.10 Update to latest version. Signed-off-by: Nick Hainke <vincent@systemli.org> * Revert "Revert "tools/upx: remove (#10622)"" This reverts commit d3e16f203a8d238ebcf8d40e7453e8b375248e08. * kernel: Make use of KERNEL_MAKE Make use of KERNEL_MAKE in kernel packages were easily possible. This moves some more code to common places and reduces the number of lines. It is defined like this: KERNEL_MAKE = $(MAKE) $(KERNEL_MAKEOPTS) KERNEL_MAKEOPTS = -C $(LINUX_DIR) $(KERNEL_MAKE_FLAGS) Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * toolchain: gcc: backport patches to fix build with glibc 2.36 glibc 2.36 changed the definition of enum fsconfig_command, it now collides with the same definition from sys/mount.h. Remove the include of linux/fs.h This still compiled with musl too. This backports a patch which is already in the stable branch of GCC 11 and GCC 12. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * toolchain: glibc: Update to glibc 2.36 This updates to glibc to version 2.36. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> * tools/llvm: update to 15.0.6 Release Notes: https://discourse.llvm.org/t/llvm-15-0-0-release/65099 https://discourse.llvm.org/t/llvm-15-0-1-released/65380 https://discourse.llvm.org/t/llvm-15-0-2-released/65695 https://discourse.llvm.org/t/llvm-15-0-3-released/66036 https://discourse.llvm.org/t/llvm-15-0-4-released/66337 https://discourse.llvm.org/t/llvm-15-0-5-release/66616 https://discourse.llvm.org/t/llvm-15-0-6-released/66899 Remove HOST_BUILD_PARALLEL as it's default now. Signed-off-by: Linhui Liu <liulinhui36@gmail.com> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: Olliver Schinagl <oliver@schinagl.nl> Signed-off-by: Michael Pratt <mcpratt@pm.me> Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Signed-off-by: Andre Heider <a.heider@gmail.com> Signed-off-by: Kien Truong <duckientruong@gmail.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Nick Hainke <vincent@systemli.org> Signed-off-by: Linhui Liu <liulinhui36@gmail.com> Co-authored-by: Christian Marangi <ansuelsmth@gmail.com> Co-authored-by: Olliver Schinagl <oliver@schinagl.nl> Co-authored-by: Michael Pratt <mcpratt@pm.me> Co-authored-by: Stijn Tintel <stijn@linux-ipv6.be> Co-authored-by: Andre Heider <a.heider@gmail.com> Co-authored-by: Kien Truong <duckientruong@gmail.com> Co-authored-by: Nick Hainke <vincent@systemli.org> Co-authored-by: Hauke Mehrtens <hauke@hauke-m.de>
184 lines
4.6 KiB
Makefile
184 lines
4.6 KiB
Makefile
#
|
|
# Copyright (C) 2006-2014 OpenWrt.org
|
|
#
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
# See /LICENSE for more information.
|
|
#
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
PKG_NAME:=broadcom-wl
|
|
PKG_VERSION:=5.10.56.27.3
|
|
PKG_RELEASE:=10
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)_$(ARCH).tar.bz2
|
|
PKG_SOURCE_URL:=@OPENWRT
|
|
|
|
ifeq ($(ARCH),mipsel)
|
|
PKG_HASH:=26a8c370f48fc129d0731cfd751c36cae1419b0bc8ca35781126744e60eae009
|
|
endif
|
|
ifeq ($(ARCH),mips)
|
|
PKG_HASH:=ca6a86ca3e3e9c85b6dbb665b35bcbf338c37829c1b2f1994487d55664886045
|
|
endif
|
|
|
|
PKG_EXTMOD_SUBDIRS:=driver driver-mini glue
|
|
|
|
PKG_USE_MIPS16:=0
|
|
PKG_FLAGS:=nonshared
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/broadcom-wl/Default
|
|
SECTION:=kernel
|
|
CATEGORY:=Kernel modules
|
|
DEPENDS:=@(PACKAGE_kmod-brcm-wl||PACKAGE_kmod-brcm-wl-mini)
|
|
SUBMENU:=Proprietary BCM43xx WiFi driver
|
|
SUBMENUDEP:=(TARGET_bcm47xx||TARGET_bcm63xx)
|
|
endef
|
|
|
|
define KernelPackage/brcm-wl/Default
|
|
$(call Package/broadcom-wl/Default)
|
|
SECTION:=kernel
|
|
DEPENDS:=@(TARGET_bcm47xx||TARGET_bcm63xx) +wireless-tools
|
|
TITLE:=Kernel driver for BCM43xx chipsets
|
|
FILES:=$(PKG_BUILD_DIR)/driver$(1)/wl.ko $(PKG_BUILD_DIR)/glue/wl_glue.ko
|
|
AUTOLOAD:=$(call AutoProbe,wl)
|
|
endef
|
|
|
|
define KernelPackage/brcm-wl/Default/description
|
|
This package contains the proprietary wireless driver for the Broadcom
|
|
BCM43xx chipset.
|
|
endef
|
|
|
|
define KernelPackage/brcm-wl
|
|
$(call KernelPackage/brcm-wl/Default,)
|
|
TITLE+= (normal version)
|
|
endef
|
|
|
|
define KernelPackage/brcm-wl/description
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
|
endef
|
|
|
|
define KernelPackage/brcm-wl-mini
|
|
$(call KernelPackage/brcm-wl/Default,-mini)
|
|
TITLE+= (Legacy version)
|
|
endef
|
|
|
|
define KernelPackage/brcm-wl-mini/description
|
|
$(call KernelPackage/brcm-wl/Default/description)
|
|
endef
|
|
|
|
define Package/wlc
|
|
$(call Package/broadcom-wl/Default)
|
|
TITLE:=wl driver setup utility
|
|
endef
|
|
|
|
define Package/wlc/description
|
|
This package contains an utility for initializing the proprietary Broadcom
|
|
wl driver.
|
|
endef
|
|
|
|
define Package/wl
|
|
$(call Package/broadcom-wl/Default)
|
|
TITLE:=Proprietary Broadcom wl driver config utility
|
|
endef
|
|
|
|
define Package/wl/description
|
|
This package contains the proprietary utility (wl) for configuring the
|
|
proprietary Broadcom wl driver.
|
|
endef
|
|
|
|
define Package/nas
|
|
$(call Package/broadcom-wl/Default)
|
|
TITLE:=Proprietary Broadcom WPA/WPA2 authenticator
|
|
endef
|
|
|
|
define Package/nas/description
|
|
This package contains the proprietary WPA/WPA2 authenticator (nas) for the
|
|
proprietary Broadcom wl driver.
|
|
endef
|
|
|
|
MAKE_KMOD := $(KERNEL_MAKE) \
|
|
PATH="$(TARGET_PATH)" \
|
|
M="$(PKG_BUILD_DIR)/kmod" \
|
|
|
|
define Build/Prepare
|
|
$(call Build/Prepare/Default)
|
|
$(CP) $(PKG_BUILD_DIR)/driver $(PKG_BUILD_DIR)/driver-mini
|
|
$(CP) ./src/glue $(PKG_BUILD_DIR)/glue
|
|
endef
|
|
|
|
define Build/Compile
|
|
# Compile glue driver
|
|
$(MAKE_KMOD) -C "$(LINUX_DIR)" \
|
|
M="$(PKG_BUILD_DIR)/glue" \
|
|
modules
|
|
|
|
# Compile the kernel part
|
|
$(MAKE_KMOD) \
|
|
M="$(PKG_BUILD_DIR)/driver" \
|
|
MODFLAGS="-DMODULE -mlong-calls" \
|
|
KBUILD_EXTRA_SYMBOLS="$(PKG_BUILD_DIR)/glue/Module.symvers" \
|
|
modules
|
|
|
|
$(MAKE_KMOD) \
|
|
M="$(PKG_BUILD_DIR)/driver-mini" \
|
|
MODFLAGS="-DMODULE -mlong-calls" \
|
|
BUILD_TYPE="wl_apsta_mini" \
|
|
KBUILD_EXTRA_SYMBOLS="$(PKG_BUILD_DIR)/glue/Module.symvers" \
|
|
modules
|
|
|
|
# Compile libshared
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/shared \
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
CFLAGS="$(TARGET_CFLAGS) -I. -I$(PKG_BUILD_DIR)/driver/include" \
|
|
all
|
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/wlc \
|
|
-I$(PKG_BUILD_DIR)/shared -I$(PKG_BUILD_DIR)/driver/include \
|
|
./src/wlc.c $(PKG_BUILD_DIR)/shared/libshared.a
|
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/nas \
|
|
$(PKG_BUILD_DIR)/nas_exe.o \
|
|
$(PKG_BUILD_DIR)/shared/libshared.a
|
|
|
|
$(TARGET_CC) -o $(PKG_BUILD_DIR)/wl \
|
|
$(PKG_BUILD_DIR)/wl_exe.o \
|
|
$(PKG_BUILD_DIR)/shared/libshared.a
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
$(CP) $(PKG_BUILD_DIR)/shared/libshared.a $(1)/usr/lib/
|
|
endef
|
|
|
|
define Package/wlc/install
|
|
$(CP) ./files/* $(1)/
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wlc $(1)/sbin/
|
|
endef
|
|
|
|
define Package/wlc/postinst
|
|
#!/bin/sh
|
|
[ -n "$${IPKG_INSTROOT}" ] || /etc/init.d/wlunbind enable || true
|
|
endef
|
|
|
|
define Package/wl/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/wl $(1)/usr/sbin/
|
|
endef
|
|
|
|
define Package/nas/install
|
|
$(INSTALL_DIR) $(1)/usr/sbin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/nas $(1)/usr/sbin/
|
|
$(LN) nas $(1)/usr/sbin/nas4not
|
|
$(LN) nas $(1)/usr/sbin/nas4wds
|
|
endef
|
|
|
|
$(eval $(call KernelPackage,brcm-wl))
|
|
$(eval $(call KernelPackage,brcm-wl-mini))
|
|
$(eval $(call BuildPackage,wlc))
|
|
$(eval $(call BuildPackage,wl))
|
|
$(eval $(call BuildPackage,nas))
|