2005-02-17 18:29:57 +01:00
|
|
|
# Default target skeleton stuff, may be overridden
|
2006-11-15 07:52:00 +01:00
|
|
|
TARGET_SKELETON=target/generic/target_skeleton
|
2007-02-15 17:49:39 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX_SKELETON),y)
|
|
|
|
TARGET_SKELETON=target/generic/target_busybox_skeleton
|
|
|
|
endif
|
|
|
|
|
2009-10-06 15:08:55 +02:00
|
|
|
TARGET_GENERIC_HOSTNAME:=$(call qstrip,$(BR2_TARGET_GENERIC_HOSTNAME))
|
|
|
|
TARGET_GENERIC_ISSUE:=$(call qstrip,$(BR2_TARGET_GENERIC_ISSUE))
|
2009-07-30 17:35:13 +02:00
|
|
|
TARGET_GENERIC_GETTY:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT))
|
|
|
|
TARGET_GENERIC_GETTY_BAUDRATE:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE))
|
2009-03-20 22:59:43 +01:00
|
|
|
|
2009-09-30 21:53:22 +02:00
|
|
|
target-generic-hostname:
|
|
|
|
mkdir -p $(TARGET_DIR)/etc
|
|
|
|
echo "$(TARGET_GENERIC_HOSTNAME)" > $(TARGET_DIR)/etc/hostname
|
|
|
|
|
|
|
|
target-generic-issue:
|
|
|
|
mkdir -p $(TARGET_DIR)/etc
|
|
|
|
echo "$(TARGET_GENERIC_ISSUE)" > $(TARGET_DIR)/etc/issue
|
|
|
|
|
2009-03-20 22:59:43 +01:00
|
|
|
target-generic-getty:
|
|
|
|
$(SED) '/# GENERIC_SERIAL$$/s~^.*#~$(TARGET_GENERIC_GETTY)::respawn:/sbin/getty -L $(TARGET_GENERIC_GETTY) $(TARGET_GENERIC_GETTY_BAUDRATE) vt100 #~' \
|
|
|
|
$(TARGET_DIR)/etc/inittab
|
|
|
|
|
2009-10-06 15:08:55 +02:00
|
|
|
ifneq ($(TARGET_GENERIC_HOSTNAME),)
|
2009-09-30 21:53:22 +02:00
|
|
|
TARGETS += target-generic-hostname
|
|
|
|
endif
|
|
|
|
|
2009-10-06 15:08:55 +02:00
|
|
|
ifneq ($(TARGET_GENERIC_ISSUE),)
|
2009-09-30 21:53:22 +02:00
|
|
|
TARGETS += target-generic-issue
|
|
|
|
endif
|
|
|
|
|
2009-03-20 22:59:43 +01:00
|
|
|
ifeq ($(BR2_TARGET_GENERIC_GETTY),y)
|
|
|
|
TARGETS += target-generic-getty
|
|
|
|
endif
|