]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
bcm63xx-cfe: install into image staging dir 18463/head
authorRobert Marko <robimarko@gmail.com>
Fri, 11 Apr 2025 22:32:23 +0000 (00:32 +0200)
committerRobert Marko <robimarko@gmail.com>
Sun, 13 Apr 2025 08:44:19 +0000 (10:44 +0200)
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>
package/kernel/bcm63xx-cfe/Makefile
target/linux/bcm4908/image/Makefile
target/linux/bmips/image/Makefile

index 8b6fa8010c650ba2276956ec845048fcc9f2bad9..18f52a0cda45ddc79268b2ea19fcdccc33d7e7f2 100644 (file)
@@ -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))
index 658ec810d1b31fdc04faa9d26e41b97fbd04a525..678881fda856623dfff7f732ab7d3a5504705dd6 100644 (file)
@@ -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 \
index b79974931d48ce2689c9d968dd7f31b254c66637..95cf35bb524cf78fc8414cd9af3a98dc459f98c8 100644 (file)
@@ -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: