Ignore:
Timestamp:
Jan 26, 2017, 7:32:19 PM (2 years ago)
Author:
amain
Message:

lede: update patches, split patch 021_install_kernel_modules_and_merge_debwrt_config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/patches/lede/all/025_make_empty_rootfs

    r884 r924  
    1 --- trunk-HEAD/include/image.mk 2016-12-26 17:40:43.647766058 +0100
    2 +++ trunk-HEAD/include/image.mk.new     2016-12-26 17:57:14.866269381 +0100
    3 @@ -193,13 +193,32 @@
     1diff --git a/include/image.mk b/include/image.mk
     2index 81519cd..c4021ed 100644
     3--- a/include/image.mk
     4+++ b/include/image.mk
     5@@ -200,13 +200,32 @@ endef
    46 $(eval $(foreach S,$(JFFS2_BLOCKSIZE),$(call Image/mkfs/jffs2/template,$(S))))
    57 $(eval $(foreach S,$(NAND_BLOCKSIZE),$(call Image/mkfs/jffs2-nand/template,$(S))))
     
    79-define Image/mkfs/squashfs
    810+ifneq ($(CONFIG_BOOT_METHOD_SCRIPT),)
    9 +    define Image/mkfs/squashfs
     11+       define Image/mkfs/squashfs
    1012+       # kexec and LABEL= boot
    1113+       @mkdir -p $(call mkfs_target_dir,$(1))/overlay
     
    1618                -nopad -noappend -root-owned \
    1719                -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \
    18                 -processors $(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1) \
     20                -processors 1 \
    1921                $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
    2022-endef
    21 +    endef
     23+       endef
    2224+else
    23 +    define Image/mkfs/squashfs
     25+       define Image/mkfs/squashfs
    2426+       # boot direclty from device
    2527+       mkdir -p $(TMP_DIR)/debwrt-empty-rootfs/overlay
     
    2729+       # create image file $@[used to be $(KDIR)/root.squashfs] from $(TMP_DIR)/debwrt-empty-rootfs/
    2830+       $(STAGING_DIR_HOST)/bin/mksquashfs4 $(TMP_DIR)/debwrt-empty-rootfs/ $@ \
    29 +               -nopad -noappend -root-owned \
    30 +               -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \
    31 +               -processors $(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1) \
    32 +               $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
    33 +    endef
     31+               -nopad -noappend -root-owned \
     32+               -comp $(SQUASHFSCOMP) $(SQUASHFSOPT) \
     33+               -processors $(if $(CONFIG_PKG_BUILD_JOBS),$(CONFIG_PKG_BUILD_JOBS),1) \
     34+               $(if $(SOURCE_DATE_EPOCH),-fixed-time $(SOURCE_DATE_EPOCH))
     35+       endef
    3436+endif
    3537 
Note: See TracChangeset for help on using the changeset viewer.