[OpenWrt-Devel] [PATCH] x86: fix offer f2fs/ext4 based overlays

Paul Spooren mail at aparcar.org
Wed Mar 25 00:58:42 EDT 2020

With the recent rework of the x86 image creation the f2fs/ext4 based
overlays dissappeared as their are not copied by default.

This commit follows the implementation of malta and armvirt to copy the
overlays as well.

Signed-off-by: Paul Spooren <mail at aparcar.org>
 target/linux/x86/image/Makefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/target/linux/x86/image/Makefile b/target/linux/x86/image/Makefile
index c2961e5b9c..81a8f73efc 100644
--- a/target/linux/x86/image/Makefile
+++ b/target/linux/x86/image/Makefile
@@ -118,6 +118,10 @@ define Device/Default
+define Image/Build/gzip
+	gzip -f9n $(BIN_DIR)/$(IMG_ROOTFS)-$(1).img
 $(eval $(call Image/gzip-ext4-padded-squashfs))
 ifeq ($(SUBTARGET),64)
@@ -136,5 +140,11 @@ ifeq ($(SUBTARGET),legacy)
   include legacy.mk
+define Image/Build
+	$(call Image/Build/$(1))
+	$(CP) $(KDIR)/root.$(1) $(BIN_DIR)/$(IMG_ROOTFS)-$(1).img
+	$(call Image/Build/gzip/$(1))
 $(eval $(call BuildImage))

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list