|
@@ -46,6 +46,8 @@ else
|
|
|
PETITBOOT_CONF_OPTS += --without-fdt
|
|
|
endif
|
|
|
|
|
|
+PETITBOOT_GETTY_PORT = $(patsubst %,'%',$(call qstrip,$(BR2_PACKAGE_PETITBOOT_GETTY_PORT)))
|
|
|
+
|
|
|
define PETITBOOT_POST_INSTALL
|
|
|
$(INSTALL) -D -m 0755 $(@D)/utils/bb-kexec-reboot \
|
|
|
$(TARGET_DIR)/usr/libexec/petitboot/bb-kexec-reboot
|
|
@@ -55,6 +57,14 @@ define PETITBOOT_POST_INSTALL
|
|
|
$(TARGET_DIR)/etc/petitboot/boot.d/90-sort-dtb
|
|
|
$(INSTALL) -m 0755 -D $(PETITBOOT_PKGDIR)/S15pb-discover \
|
|
|
$(TARGET_DIR)/etc/init.d/S15pb-discover
|
|
|
+ $(INSTALL) -D -m 0755 $(PETITBOOT_PKGDIR)/pb-console \
|
|
|
+ $(TARGET_DIR)/etc/init.d/pb-console
|
|
|
+
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/udev/rules.d
|
|
|
+ (for port in $(PETITBOOT_GETTY_PORT); do \
|
|
|
+ printf 'SUBSYSTEM=="tty", KERNEL=="%s", RUN+="/etc/init.d/pb-console start $$name"\n' "$$port"; \
|
|
|
+ done) > $(TARGET_DIR)/etc/udev/rules.d/petitboot-console-ui.rules
|
|
|
+
|
|
|
mkdir -p $(TARGET_DIR)/usr/share/udhcpc/default.script.d/
|
|
|
ln -sf /usr/sbin/pb-udhcpc \
|
|
|
$(TARGET_DIR)/usr/share/udhcpc/default.script.d/
|