summaryrefslogtreecommitdiffstats
path: root/target/generic/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'target/generic/Makefile.in')
-rw-r--r--target/generic/Makefile.in16
1 files changed, 16 insertions, 0 deletions
diff --git a/target/generic/Makefile.in b/target/generic/Makefile.in
index 084acf48b..31f4a0c3b 100644
--- a/target/generic/Makefile.in
+++ b/target/generic/Makefile.in
@@ -10,10 +10,26 @@ endif
TARGET_GENERIC_GETTY:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT))
TARGET_GENERIC_GETTY_BAUDRATE:=$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE))
+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
+
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
+ifneq ($(BR2_TARGET_GENERIC_HOSTNAME),)
+TARGETS += target-generic-hostname
+endif
+
+ifneq ($(BR2_TARGET_GENERIC_ISSUE),)
+TARGETS += target-generic-issue
+endif
+
ifeq ($(BR2_TARGET_GENERIC_GETTY),y)
TARGETS += target-generic-getty
endif