system: simplify BR2_ROOTFS_SKELETON_DEFAULT handling
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 6 Jan 2013 20:51:05 +0000 (21:51 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 6 Jan 2013 20:52:18 +0000 (21:52 +0100)
No functional change.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
system/system.mk

index 4e131b0821cfe8a2691a7467e3827a4df27b06c5..44a33ae61892c1281724df8ecdfa5b8d4a3eef0c 100644 (file)
@@ -50,15 +50,9 @@ endif
 
 ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
 TARGETS += target-root-passwd
-endif
 
 ifneq ($(TARGET_GENERIC_GETTY),)
-ifeq ($(BR2_ROOTFS_SKELETON_DEFAULT),y)
-ifeq ($(BR2_PACKAGE_SYSVINIT),y)
-TARGETS += target-generic-getty-sysvinit
-else
-TARGETS += target-generic-getty-busybox
-endif
+TARGETS += target-generic-getty-$(if $(BR2_PACKAGE_SYSVINIT),sysvinit,busybox)
 endif
 
 ifeq ($(BR2_TARGET_GENERIC_REMOUNT_ROOTFS_RW),y)