summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobert Marko2025-04-11 22:32:23 +0000
committerRobert Marko2025-10-22 16:17:40 +0000
commit4b7728ba8b1105845eeb76f495142ce6e6a89f75 (patch)
tree8674be0d81da1af175606d7a9dec94d10fcdc397
parent4ead11296a30276d5aafb0a326bad18a61fd74b5 (diff)
downloadopenwrt-4b7728ba8b1105845eeb76f495142ce6e6a89f75.tar.gz
bcm63xx-cfe: install into image staging dir
Currently, bcm63xx-cfe is being installed into kernel build dir, however that does not work for Image Builder as only certain artifacts from kernel build dir are included in Image Builder. So, simply install bcm63xx-cfe into image staging dir so its artifacts can be used in Image Builder as well. Fixes: #18408 Fixes: #18409 Link: https://github.com/openwrt/openwrt/pull/18463 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 4a7de50769101962fd9ecc15465f6a11f0e81f9f)
-rw-r--r--package/kernel/bcm63xx-cfe/Makefile6
-rw-r--r--target/linux/bcm4908/image/Makefile2
-rw-r--r--target/linux/bmips/image/Makefile2
3 files changed, 5 insertions, 5 deletions
diff --git a/package/kernel/bcm63xx-cfe/Makefile b/package/kernel/bcm63xx-cfe/Makefile
index 8b6fa8010c..18f52a0cda 100644
--- a/package/kernel/bcm63xx-cfe/Makefile
+++ b/package/kernel/bcm63xx-cfe/Makefile
@@ -35,9 +35,9 @@ define Package/bcm63xx-cfe/install
endef
define Build/InstallDev
- rm -rf $(KERNEL_BUILD_DIR)/$(PKG_NAME)
- mkdir -p $(KERNEL_BUILD_DIR)/$(PKG_NAME)
- $(CP) -r $(PKG_BUILD_DIR)/* $(KERNEL_BUILD_DIR)/$(PKG_NAME)
+ rm -rf $(STAGING_DIR_IMAGE)/$(PKG_NAME)
+ mkdir -p $(STAGING_DIR_IMAGE)/$(PKG_NAME)
+ $(CP) -r $(PKG_BUILD_DIR)/* $(STAGING_DIR_IMAGE)/$(PKG_NAME)
endef
$(eval $(call BuildPackage,bcm63xx-cfe))
diff --git a/target/linux/bcm4908/image/Makefile b/target/linux/bcm4908/image/Makefile
index 658ec810d1..678881fda8 100644
--- a/target/linux/bcm4908/image/Makefile
+++ b/target/linux/bcm4908/image/Makefile
@@ -33,7 +33,7 @@ define Build/bcm4908img
cp -r $(DEVICE_NAME)/* $@-bootfs/
touch $@-bootfs/1-openwrt
cp $(DTS_DIR)/$(firstword $(DEVICE_DTS)).dtb $@-bootfs/94908.dtb
- cp $(KDIR)/bcm63xx-cfe/$(subst _,$(comma),$(DEVICE_NAME))/cferam.000 $@-bootfs/
+ cp $(STAGING_DIR_IMAGE)/bcm63xx-cfe/$(subst _,$(comma),$(DEVICE_NAME))/cferam.000 $@-bootfs/
cp $(IMAGE_KERNEL) $@-bootfs/vmlinux.lz
$(STAGING_DIR_HOST)/bin/mkfs.jffs2 --pad=0x800000 --little-endian --squash-uids \
diff --git a/target/linux/bmips/image/Makefile b/target/linux/bmips/image/Makefile
index b79974931d..95cf35bb52 100644
--- a/target/linux/bmips/image/Makefile
+++ b/target/linux/bmips/image/Makefile
@@ -136,7 +136,7 @@ define Build/cfe-jffs2-cferam
# will have version 0 and let cferam be the second (version 1).
touch $@-cferam/1-openwrt
# Add cferam as the last file in the JFFS2 partition
- cp $(KDIR)/bcm63xx-cfe/$(CFE_RAM_FILE) $@-cferam/$(CFE_RAM_JFFS2_NAME)
+ cp $(STAGING_DIR_IMAGE)/bcm63xx-cfe/$(CFE_RAM_FILE) $@-cferam/$(CFE_RAM_JFFS2_NAME)
# The JFFS2 partition creation should result in the following
# layout: