[FS#3719] Openwrt image builder instructions for FILES_REMOVE parameter don't seem to work any more.

OpenWrt Bugs openwrt-bugs at lists.openwrt.org
Fri Apr 2 13:05:53 BST 2021


THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.

A new Flyspray task has been opened.  Details are below. 

User who did this - bifferos (bifferos) 

Attached to Project - OpenWrt/LEDE Project
Summary - Openwrt image builder instructions for FILES_REMOVE parameter don't seem to work any more.
Task Type - Bug Report
Category - Documentation
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - Low
Priority - Very Low
Reported Version - openwrt-19.07
Due in Version - Undecided
Due Date - Undecided
Details - I'm attempting to use the x86 image builder for 19.07.7
https://downloads.openwrt.org/releases/19.07.7/targets/x86/64/openwrt-imagebuilder-19.07.7-x86-64.Linux-x86_64.tar.xz

There are some instructions in the documentation at:
https://openwrt.org/docs/guide-user/additional-software/imagebuilder

They say to patch the makefile:

 ifneq ($(USER_FILES),)
 	$(MAKE) copy_files
 endif
+
+ifneq ($(FILES_REMOVE),)
+	@echo
+	@echo Remove useless files
+
+	while read filename; do				\
+	    rm -rfv "$(TARGET_DIR)$$filename";	\
+	done < $(FILES_REMOVE);
+endif
+
 	$(MAKE) package_postinst
 	$(MAKE) build_image

But the Makefile layout seems to have changed since the instructions were written so it isn't clear where to add this.

This is a really handy feature, so I hope the developers will eventually include this to avoid the need to patch the makefile.




 

More information can be found at the following URL:
https://bugs.openwrt.org/index.php?do=details&task_id=3719

You are receiving this message because you have requested it from the Flyspray bugtracking system.  If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.



More information about the openwrt-bugs mailing list