image: per-device rootfs: first remove, then install packages
Some DEVICE_PACKAGES definitions replace one package variant with another (e.g. wpad-mini is replaced with wpad). To avoid file conflicts, first remove, then install packages. Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
This commit is contained in:
parent
26b4216f95
commit
593dfac909
@ -287,13 +287,13 @@ target-dir-%: FORCE
|
|||||||
$(CP) $(TARGET_DIR_ORIG) $(mkfs_cur_target_dir)
|
$(CP) $(TARGET_DIR_ORIG) $(mkfs_cur_target_dir)
|
||||||
-mv $(mkfs_cur_target_dir)/etc/opkg $(mkfs_cur_target_dir).opkg
|
-mv $(mkfs_cur_target_dir)/etc/opkg $(mkfs_cur_target_dir).opkg
|
||||||
echo 'src default file://$(PACKAGE_DIR_ALL)' > $(mkfs_cur_target_dir).conf
|
echo 'src default file://$(PACKAGE_DIR_ALL)' > $(mkfs_cur_target_dir).conf
|
||||||
|
$(if $(mkfs_packages_remove), \
|
||||||
|
$(call opkg,$(mkfs_cur_target_dir)) remove \
|
||||||
|
$(mkfs_packages_remove))
|
||||||
$(if $(call opkg_package_files,$(mkfs_packages_add)), \
|
$(if $(call opkg_package_files,$(mkfs_packages_add)), \
|
||||||
$(opkg_target) update && \
|
$(opkg_target) update && \
|
||||||
$(opkg_target) install \
|
$(opkg_target) install \
|
||||||
$(call opkg_package_files,$(mkfs_packages_add)))
|
$(call opkg_package_files,$(mkfs_packages_add)))
|
||||||
$(if $(mkfs_packages_remove), \
|
|
||||||
$(call opkg,$(mkfs_cur_target_dir)) remove \
|
|
||||||
$(mkfs_packages_remove))
|
|
||||||
$(call prepare_rootfs,$(mkfs_cur_target_dir))
|
$(call prepare_rootfs,$(mkfs_cur_target_dir))
|
||||||
-mv $(mkfs_cur_target_dir).opkg $(mkfs_cur_target_dir)/etc/opkg
|
-mv $(mkfs_cur_target_dir).opkg $(mkfs_cur_target_dir)/etc/opkg
|
||||||
rm -f $(mkfs_cur_target_dir).conf
|
rm -f $(mkfs_cur_target_dir).conf
|
||||||
|
Loading…
Reference in New Issue
Block a user