Stewart Smith | b2bcc83 | 2015-08-20 13:38:33 +1000 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # petitboot |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Stewart Smith | 9c66bc5 | 2015-09-11 18:36:22 +1000 | [diff] [blame] | 7 | PETITBOOT_VERSION = 5acb43464206348b7cced9508852fdd2989aea58 |
| 8 | PETITBOOT_SITE = git://github.com/open-power/petitboot.git |
| 9 | PETITBOOT_DEPENDENCIES = ncurses udev host-bison host-flex lvm2 |
Stewart Smith | b2bcc83 | 2015-08-20 13:38:33 +1000 | [diff] [blame] | 10 | PETITBOOT_LICENSE = GPLv2 |
| 11 | PETITBOOT_LICENSE_FILES = COPYING |
| 12 | |
| 13 | PETITBOOT_AUTORECONF = YES |
| 14 | PETITBOOT_AUTORECONF_OPTS = -i |
| 15 | PETITBOOT_GETTEXTIZE = YES |
| 16 | PETITBOOT_CONF_OPTS += --with-ncurses --without-twin-x11 --without-twin-fbdev \ |
| 17 | --localstatedir=/var \ |
| 18 | HOST_PROG_KEXEC=/usr/sbin/kexec \ |
| 19 | HOST_PROG_SHUTDOWN=/usr/libexec/petitboot/bb-kexec-reboot \ |
| 20 | $(if $(BR2_PACKAGE_BUSYBOX),--with-tftp=busybox) |
| 21 | |
| 22 | ifdef PETITBOOT_DEBUG |
| 23 | PETITBOOT_CONF_OPTS += --enable-debug |
| 24 | endif |
| 25 | |
| 26 | ifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y) |
| 27 | PETITBOOT_CONF_OPTS += --with-ncursesw MENU_LIB=-lmenuw FORM_LIB=-lformw |
| 28 | endif |
| 29 | |
| 30 | PETITBOOT_PRE_CONFIGURE_HOOKS += PETITBOOT_PRE_CONFIGURE_BOOTSTRAP |
| 31 | |
| 32 | define PETITBOOT_POST_INSTALL |
| 33 | $(INSTALL) -D -m 0755 $(@D)/utils/bb-kexec-reboot \ |
| 34 | $(TARGET_DIR)/usr/libexec/petitboot |
| 35 | $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/petitboot/boot.d |
| 36 | $(INSTALL) -D -m 0755 $(@D)/utils/hooks/01-create-default-dtb \ |
| 37 | $(TARGET_DIR)/etc/petitboot/boot.d/ |
| 38 | $(INSTALL) -D -m 0755 $(@D)/utils/hooks/20-set-stdout \ |
| 39 | $(TARGET_DIR)/etc/petitboot/boot.d/ |
| 40 | |
| 41 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/S14silence-console \ |
| 42 | $(TARGET_DIR)/etc/init.d/ |
| 43 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/S15pb-discover \ |
| 44 | $(TARGET_DIR)/etc/init.d/ |
| 45 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/kexec-restart \ |
| 46 | $(TARGET_DIR)/usr/sbin/ |
| 47 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/petitboot-console-ui.rules \ |
| 48 | $(TARGET_DIR)/etc/udev/rules.d/ |
| 49 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/removable-event-poll.rules \ |
| 50 | $(TARGET_DIR)/etc/udev/rules.d/ |
Samuel Mendoza-Jonas | c775f29 | 2015-09-14 13:10:27 +1000 | [diff] [blame^] | 51 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/63-md-raid-arrays.rules \ |
| 52 | $(TARGET_DIR)/etc/udev/rules.d/ |
| 53 | $(INSTALL) -D -m 0755 $(BR2_EXTERNAL)/package/petitboot/65-md-incremental.rules \ |
| 54 | $(TARGET_DIR)/etc/udev/rules.d/ |
Stewart Smith | b2bcc83 | 2015-08-20 13:38:33 +1000 | [diff] [blame] | 55 | |
| 56 | ln -sf /usr/sbin/pb-udhcpc \ |
| 57 | $(TARGET_DIR)/usr/share/udhcpc/default.script.d/ |
| 58 | endef |
| 59 | |
| 60 | PETITBOOT_POST_INSTALL_TARGET_HOOKS += PETITBOOT_POST_INSTALL |
| 61 | |
| 62 | $(eval $(autotools-package)) |