- Timestamp:
- Aug 15, 2025, 4:56:30 PM (4 months ago)
- Branches:
- freewrt_2_0
- Children:
- c41db42
- Parents:
- 0e691c1
- Location:
- target
- Files:
-
- 3 edited
- 3 moved
-
Config.in (modified) (2 diffs)
-
image/brcm/Makefile (modified) (2 diffs)
-
linux/brcm-6.12/Makefile (modified) (2 diffs)
-
linux/brcm-6.12/squashfs/config/config.squashfs (moved) (moved from target/linux/brcm-6.12/squashfs-overlay/config/config.squashfs_overlay )
-
linux/brcm-6.12/squashfs/files/etc/init.d/S20jffsclean (moved) (moved from target/linux/brcm-6.12/squashfs-overlay/files/etc/init.d/S20jffsclean )
-
linux/brcm-6.12/squashfs/files/sbin/mount_root (moved) (moved from target/linux/brcm-6.12/squashfs-overlay/files/sbin/mount_root )
Legend:
- Unmodified
- Added
- Removed
-
target/Config.in
r0e691c1 r78d1618 10 10 choice 11 11 prompt "Target Firmware type" 12 default FWRT_TARGET_ROOTFS_SQUASHFS _OVERLAY12 default FWRT_TARGET_ROOTFS_SQUASHFS 13 13 14 14 config FWRT_TARGET_ROOTFS_JFFS2 … … 16 16 select FWRT_PACKAGE_MTD 17 17 select FWRT_PACKAGE_FWCF 18 depends on FWRT_LINUX_BRCM19 18 help 20 19 Build firmware images with a writable jffs2 root filesystem. 21 20 22 config FWRT_TARGET_ROOTFS_SQUASHFS _OVERLAY23 bool "read-only root filesystem and overlay fs (squashfs-overlay)"21 config FWRT_TARGET_ROOTFS_SQUASHFS 22 bool "read-only root filesystem (squashfs)" 24 23 select FWRT_PACKAGE_MTD 25 24 select FWRT_PACKAGE_FWCF 26 depends on FWRT_LINUX_BRCM27 25 help 28 26 Build firmware images with a read-only and highly compressed 29 (squashfs with lzma compression) root filesystem and a overlay 30 filesystem for a pseudo writable root filesystem. Only differences 31 to the read-only image are kept on a writable jffs2 partition. 27 (squashfs with zstd compression) root filesystem. 32 28 33 29 endchoice -
target/image/brcm/Makefile
r0e691c1 r78d1618 45 45 endif 46 46 47 ifeq ($(FWRT_TARGET_ROOTFS_SQUASHFS _OVERLAY),y)48 $(KDIR)/root.squashfs -overlay:49 rm -f $(KDIR)/root.squashfs -overlay47 ifeq ($(FWRT_TARGET_ROOTFS_SQUASHFS),y) 48 $(KDIR)/root.squashfs: 49 rm -f $(KDIR)/root.squashfs 50 50 $(STAGING_DIR)/bin/mksquashfs $(KDIR)/root \ 51 $(KDIR)/root.squashfs -overlay$(SQUASHFS_OPTS) $(MAKE_TRACE)51 $(KDIR)/root.squashfs $(SQUASHFS_OPTS) $(MAKE_TRACE) 52 52 endif 53 53 … … 61 61 cp $(BUILD_DIR)/loader.elf $(BIN_DIR)/boot/bootloader-$(BOARD)-$(KERNEL).elf 62 62 63 ifeq ($(FS),squashfs -overlay)63 ifeq ($(FS),squashfs) 64 64 $(STAGING_DIR)/$(FWRT_PREFIX)-$(BOARD)-$(KERNEL)-$(FS).trx: $(KDIR)/loader.tmp.gz $(KDIR)/root.$(FS) $(KDIR)/vmlinux.lzma 65 65 $(STAGING_DIR)/bin/trx -o $@ $(KDIR)/loader.tmp.gz $(KDIR)/vmlinux.lzma -a 1024 $(KDIR)/root.$(FS) $(MAKE_TRACE) -
target/linux/brcm-6.12/Makefile
r0e691c1 r78d1618 86 86 # otherwise use generic root filesystem specific for this board 87 87 88 # squashfs with mini-fo overlay89 ifeq ($(FS),squashfs -overlay)90 MODELCONFIG:=$(shell test -f $(MODEL)/config/config.squashfs _overlay&& echo y 2>/dev/null)91 ifneq ($(strip $(MODELCONFIG)),) 92 include $(MODEL)/config/config.squashfs _overlay93 else 94 include $(FS)/config/config.squashfs _overlay88 # squashfs 89 ifeq ($(FS),squashfs) 90 MODELCONFIG:=$(shell test -f $(MODEL)/config/config.squashfs && echo y 2>/dev/null) 91 ifneq ($(strip $(MODELCONFIG)),) 92 include $(MODEL)/config/config.squashfs 93 else 94 include $(FS)/config/config.squashfs 95 95 endif 96 96 endif … … 136 136 [ -d ../generic-$(KERNEL)/patches ] && $(PATCH) $(LINUX_DIR) ../generic-$(KERNEL)/patches $(MAKE_TRACE) 137 137 #-[ -d ./patches ] && $(PATCH) $(LINUX_DIR) ./patches $(MAKE_TRACE) 138 ifeq ($(FS),squashfs -overlay)139 ifneq ($(strip $(MODELCONFIG)),) 140 $(CP) $(MODEL)/config/config.squashfs _overlay$(LINUX_DIR)/.config141 else 142 $(CP) $(FS)/config/config.squashfs _overlay$(LINUX_DIR)/.config138 ifeq ($(FS),squashfs) 139 ifneq ($(strip $(MODELCONFIG)),) 140 $(CP) $(MODEL)/config/config.squashfs $(LINUX_DIR)/.config 141 else 142 $(CP) $(FS)/config/config.squashfs $(LINUX_DIR)/.config 143 143 endif 144 144 endif
Note:
See TracChangeset
for help on using the changeset viewer.
