build: use per-target files directory
authorStijn Tintel <[email protected]>
Tue, 18 Oct 2022 13:50:46 +0000 (16:50 +0300)
committerStijn Tintel <[email protected]>
Thu, 15 Jun 2023 09:23:53 +0000 (12:23 +0300)
include/image.mk
package/Makefile

index fae4d32a8bb99dd8bd3d8401754702585ccf74c4..e2dc4c6754999f24185d027dc0a196a9c1ee224a 100644 (file)
@@ -333,7 +333,7 @@ target-dir-%: FORCE
                        $(call opkg_package_files,$(mkfs_packages_add)))
        -$(CP) -T $(mkfs_cur_target_dir).opkg/ $(mkfs_cur_target_dir)/etc/opkg/
        rm -rf $(mkfs_cur_target_dir).opkg $(mkfs_cur_target_dir).conf
-       $(call prepare_rootfs,$(mkfs_cur_target_dir),$(TOPDIR)/files)
+       $(call prepare_rootfs,$(mkfs_cur_target_dir),$(TOPDIR)/files/$(TARGET))
 
 $(KDIR)/root.%: kernel_prepare
        $(call Image/mkfs/$(word 1,$(target_params)),$(target_params))
index 4b8df7f484de6e63e276c0cecf8aad5cdd96035c..5d9c21865294a1ecdc381c09a9dce9ceab333bd2 100644 (file)
@@ -79,7 +79,7 @@ $(curdir)/install: $(TMP_DIR)/.build $(curdir)/merge $(if $(CONFIG_TARGET_PER_DE
 
        $(CP) $(TARGET_DIR) $(TARGET_DIR_ORIG)
 
-       $(call prepare_rootfs,$(TARGET_DIR),$(TOPDIR)/files)
+       $(call prepare_rootfs,$(TARGET_DIR),$(TOPDIR)/files/$(TARGET))
 
 $(curdir)/index: FORCE
        @echo Generating package index...