Skip to content

Commit

Permalink
image: fix ar71xx legacy images
Browse files Browse the repository at this point in the history
If TARGET_PER_DEVICE_ROOTFS and DEVICE_PACKAGES are used for ar71xx
legacy images:

- an already jffs2 padded squashfs rootfs is overwritten
  with an unpadded/raw one.

- the squashfs-raw and squashfs-64k rootfs are not replaced by the
  ones including the DEVICE_PACKAGES

Call Image/Build/squashfs after the DEVICE_PACKAGES are added to the
base squashfs rootfs to fix the issues.

Fixes: FS#904

Signed-off-by: Mathias Kresin <[email protected]>
  • Loading branch information
mkresin committed Jul 15, 2017
1 parent 4531bc4 commit 9fe9175
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/image-legacy.mk
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ endef
ifdef TARGET_PER_DEVICE_ROOTFS
define Image/Build/Profile/Filesystem
cp $(KDIR)/root.$(2)+pkg=$(3) $(KDIR)/root.$(2)
$(call Image/Build/$(2),$(2))
$(call Image/Build/Profile,$(1),$(2))
endef
else
Expand Down

0 comments on commit 9fe9175

Please sign in to comment.