diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2009-09-30 21:53:22 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2009-09-30 21:53:22 +0200 |
commit | d65976fe26cbf2ef69d5a3bf324349475b5b1b68 (patch) | |
tree | cfe76c46de811f2eb290b2d32b365b008ddb604c /target/generic/Makefile.in | |
parent | 912ea81ad4a2f1b6a87c9cebfefdbbf1f60f526a (diff) | |
download | buildroot-novena-d65976fe26cbf2ef69d5a3bf324349475b5b1b68.tar.gz buildroot-novena-d65976fe26cbf2ef69d5a3bf324349475b5b1b68.zip |
buildroot: reinstate /etc/{hostname,issue} kconfig when using generic target
These got lost in the recent cleanup, but are handy for minimal rootfs
customization.
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'target/generic/Makefile.in')
-rw-r--r-- | target/generic/Makefile.in | 16 |
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 |