summaryrefslogtreecommitdiff
path: root/mk/rootfs.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-17 19:13:37 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-17 19:13:37 +0100
commit53d22bb88e82c1d8dd19db418ca12c664e341ba4 (patch)
treee1f35a46f56d1c8c0f8e8bc63b43dc8da63e4d2a /mk/rootfs.mk
parentb47f6f464d38ad18716e4b270231812b123dcf67 (diff)
parentc6fa9771807b4438e35df864de9a01fb768d33d2 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'mk/rootfs.mk')
-rw-r--r--mk/rootfs.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/rootfs.mk b/mk/rootfs.mk
index 3093f532f..e5c4c7089 100644
--- a/mk/rootfs.mk
+++ b/mk/rootfs.mk
@@ -8,6 +8,8 @@ FS_CMDLINE:=$(3)
endif
endef
+ADK_TARGET_ROOTFS_USB_DEVICE:=$(strip $(subst ",, $(ADK_TARGET_ROOTFS_USB_DEVICE)))
+
ifeq ($(ADK_LINUX_MIPS_RB532),y)
ROOTFS:= root=/dev/sda2
MTDDEV:= root=/dev/mtdblock1
@@ -22,7 +24,7 @@ ROOTFS:= root=/dev/mmcblk0p2 rootwait
endif
$(eval $(call rootfs_template,ext2-block,EXT2_BLOCK,$(ROOTFS)))
-$(eval $(call rootfs_template,usb,USB,root=/dev/sdb1 rootdelay=3))
+$(eval $(call rootfs_template,usb,USB,root=$(ADK_TARGET_ROOTFS_USB_DEVICE) rootdelay=3))
$(eval $(call rootfs_template,archive,ARCHIVE))
$(eval $(call rootfs_template,initramfs,INITRAMFS))
$(eval $(call rootfs_template,initramfs-piggyback,INITRAMFS_PIGGYBACK))