source: branches/contrib/openwrt/patches/backfire/025_make_empty_rootfs @ 349

Last change on this file since 349 was 349, checked in by ehem, 10 years ago

Rework the openwrt/patch target. Instead of patching with a hand-rolled
list of patches, scan the appropriate directories for patch files. Patch
filenames now MUST match the pattern [0-9]+(-[0-9]*:[0-9]*)_<name>. The
lead digits specify order of application, lower numbers are applied
first. If present, the two subsequent numbers indicate a range of
Subversion revisions that a given patch applies to. If a number is
absent, the range is interpreted to include all older revisions or all
newer revisions as appropriate.

Adjust openwrt/unpatch target to match (patches are now removed in
reverse order). Adjust the generate script to match.

File size: 636 bytes
Line 
1--- include/image.mk.org        2010-06-26 12:39:55.741248267 +0200
2+++ include/image.mk    2010-06-26 12:38:15.301415960 +0200
3@@ -99,7 +99,9 @@
4   ifneq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),)
5     define Image/mkfs/squashfs
6                @mkdir -p $(TARGET_DIR)/overlay
7-               $(MKSQUASHFS_CMD) $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned $(SQUASHFS_OPTS)
8+               @mkdir -p $(TMP_DIR)/debwrt-empty-rootfs/overlay
9+               @touch $(TMP_DIR)/debwrt-empty-rootfs/debwrt-empty-rootfs
10+               $(MKSQUASHFS_CMD) $(TMP_DIR)/debwrt-empty-rootfs $(KDIR)/root.squashfs -nopad -noappend -root-owned $(SQUASHFS_OPTS)
11                $(call Image/Build,squashfs)
12     endef
13   endif
Note: See TracBrowser for help on using the repository browser.