aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/rb532/image/Makefile
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-01-05 18:01:36 +0100
committerFelix Fietkau <nbd@nbd.name>2017-01-07 17:50:57 +0100
commit5b6b0aa267bac03a8fb75d2e6c7dd98f384b7fea (patch)
tree04ef213ab2f30c1735ded656fe38de58fce8c4b6 /target/linux/rb532/image/Makefile
parentc2e6ca26e52d1675ed1d9c7edbde257817806176 (diff)
downloadupstream-5b6b0aa267bac03a8fb75d2e6c7dd98f384b7fea.tar.gz
upstream-5b6b0aa267bac03a8fb75d2e6c7dd98f384b7fea.tar.bz2
upstream-5b6b0aa267bac03a8fb75d2e6c7dd98f384b7fea.zip
rb532: convert to new loopback based overlay support
Disable block2mtd support Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/rb532/image/Makefile')
-rw-r--r--target/linux/rb532/image/Makefile20
1 files changed, 2 insertions, 18 deletions
diff --git a/target/linux/rb532/image/Makefile b/target/linux/rb532/image/Makefile
index 7ea6532e06..d529957dc7 100644
--- a/target/linux/rb532/image/Makefile
+++ b/target/linux/rb532/image/Makefile
@@ -43,34 +43,18 @@ ifeq ($(CONFIG_TARGET_ROOTFS_INITRAMFS),y)
endif
endef
-define Image/cmdline/jffs2-64k
-block2mtd.block2mtd=/dev/sda2,65536 root=/dev/mtdblock2 rootfstype=jffs2
-endef
-
-define Image/cmdline/jffs2-128k
-block2mtd.block2mtd=/dev/sda2,131072 root=/dev/mtdblock2 rootfstype=jffs2
-endef
-
-define Image/cmdline/ext4
-root=/dev/sda2 rootfstype=ext4
-endef
-
-define Image/cmdline/squashfs
-block2mtd.block2mtd=/dev/sda2,65536,rootfs root=/dev/mtdblock2 rootfstype=squashfs
-endef
-
define Image/cmdline/yaffs2
root=/dev/mtdblock1 rootfstype=yaffs2
endef
define Image/Build/squashfs
- $(call prepare_generic_squashfs,$(KDIR)/root.squashfs)
+ dd if=/dev/zero bs=128k count=1 >> $(KDIR)/root.squashfs
endef
define Image/Build
$(call Image/Build/$(1),$(1))
$(CP) $(KDIR)/vmlinux.elf $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel
- $(STAGING_DIR_HOST)/bin/patch-cmdline $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel '$(strip $(call Image/cmdline/$(1))) '
+ $(STAGING_DIR_HOST)/bin/patch-cmdline $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel 'root=/dev/sda2 '
./gen_image.sh $(BIN_DIR)/$(IMG_PREFIX)-combined-$(1).bin \
5 $(BIN_DIR)/$(IMG_PREFIX)-$(1).kernel \
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(KDIR)/root.$(1) \