Last change
on this file since 556 was
556,
checked in by amain, 9 years ago
|
openwrt: fix trunk build issues
|
File size:
1.2 KB
|
Line | |
---|
1 | --- openwrt/include/image.mk.org |
---|
2 | +++ openwrt/include/image.mk |
---|
3 | @@ -122,12 +122,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.