summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-11-14 21:09:58 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-11-14 21:09:58 +0100
commitb4d61f0ee3485f89dd8560227c833dc948523ecf (patch)
tree3b032e4e2c209781fa33886488b41774b49e3f90 /mk
parent3e9ec766c9b289becc53fba5fc57eb20723eeab7 (diff)
consolidate x86/x86_64 support
use hardware profiles, instead of extra target dirs. fix dependencies.
Diffstat (limited to '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))