[openwrt/openwrt] bcm53xx: build a single device per profile

LEDE Commits lede-commits at lists.infradead.org
Thu Oct 26 00:21:05 PDT 2023


rmilecki pushed a commit to openwrt/openwrt.git, branch openwrt-23.05:
https://git.openwrt.org/ba300c8a1c807ecdd26545ca74285b81e972b718

commit ba300c8a1c807ecdd26545ca74285b81e972b718
Author: Rani Hod <rani.hod at gmail.com>
AuthorDate: Sat Sep 30 22:22:13 2023 +0300

    bcm53xx: build a single device per profile
    
    So far every build of a single bcm53xx Target Profile (it means: when
    NOT using CONFIG_TARGET_MULTI_PROFILE) resulted in all target devices
    images being built. Now it only builds the one matching selected
    profile.
    
    Fixes: #13572
    
    Suggested-by: Jonas Gorski <jonas.gorski at gmail.com>
    Signed-off-by: Rani Hod <rani.hod at gmail.com>
    [rmilecki: update commit subject + body & move PROFILES line]
    Signed-off-by: Rafał Miłecki <rafal at milecki.pl>
    (cherry picked from commit 802a5f5cb4a7b42d25e82b787d7ab1323a20183f)
---
 target/linux/bcm53xx/image/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/bcm53xx/image/Makefile b/target/linux/bcm53xx/image/Makefile
index 5158b432b3..f3c1b89adf 100644
--- a/target/linux/bcm53xx/image/Makefile
+++ b/target/linux/bcm53xx/image/Makefile
@@ -137,6 +137,7 @@ USB2_PACKAGES += kmod-usb-ledtrig-usbport
 USB3_PACKAGES := $(USB2_PACKAGES) kmod-usb3 kmod-phy-bcm-ns-usb3
 
 define Device/Default
+  PROFILES = Generic $$(DEVICE_NAME)
   # .dtb files are prefixed by SoC type, e.g. bcm4708- which is not included in device/image names
   # extract the full dtb name based on the device info
   DEVICE_DTS := $(patsubst %.dtb,%,$(notdir $(wildcard $(if $(IB),$(KDIR),$(DTS_DIR))/*-$(subst _,-,$(1)).dtb)))




More information about the lede-commits mailing list