source: trunk/openwrt/patches/trunk/025_make_empty_rootfs @ 517

Last change on this file since 517 was 517, checked in by amain, 6 years ago

Merge contrib branch 340:516. Main features added:

  • updated plugin architecture
  • improved patch system
  • bitten continous integration support
  • sever build fixed over time to remain in sync with OpenWrt
File size: 1.2 KB
Line 
1--- openwrt/include/image.mk.org        2012-02-15 20:30:10.713220246 +0100
2+++ openwrt/include/image.mk    2012-02-15 20:41:49.980687722 +0100
3@@ -87,12 +87,26 @@
4   endif
5 
6   ifneq ($(CONFIG_TARGET_ROOTFS_SQUASHFS),)
7+  ifneq ($(CONFIG_BOOT_METHOD_SCRIPT),)
8     define Image/mkfs/squashfs
9+               # boot direclty from device
10                @mkdir -p $(TARGET_DIR)/overlay
11+               mkdir -p $(TMP_DIR)/debwrt-empty-rootfs/overlay
12+               touch $(TMP_DIR)/debwrt-empty-rootfs/debwrt-empty-rootfs
13+               $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TMP_DIR)/debwrt-empty-rootfs/ $(KDIR)/root.squashfs -nopad -noappend -root-owned -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) -processors $(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1)
14+    endef
15+  else
16+    define Image/mkfs/squashfs
17+               # kexec and LABEL= boot
18+               @mkdir -p $(TARGET_DIR)/overlay
19+               ls -l $(TARGET_DIR)
20+               # remove /lib/modules to prevent the image from getting to big
21+               rm -rf $(TARGET_DIR)/lib/modules
22                $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TARGET_DIR) $(KDIR)/root.squashfs -nopad -noappend -root-owned -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) -processors $(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1)
23                $(call Image/Build,squashfs)
24     endef
25   endif
26+  endif
27 
28   ifneq ($(CONFIG_TARGET_ROOTFS_UBIFS),)
29     define Image/mkfs/ubifs
Note: See TracBrowser for help on using the repository browser.