Jeremy Kerr | fb3f016 | 2015-03-27 10:14:50 +0800 | [diff] [blame] | 1 | ################################################################################ |
| 2 | # |
| 3 | # skiboot |
| 4 | # |
| 5 | ################################################################################ |
| 6 | |
Stewart Smith | 1168cb4 | 2015-10-27 10:44:33 +1100 | [diff] [blame] | 7 | SKIBOOT_VERSION = $(call qstrip,$(BR2_SKIBOOT_VERSION)) |
| 8 | |
Jeremy Kerr | fb3f016 | 2015-03-27 10:14:50 +0800 | [diff] [blame] | 9 | SKIBOOT_SITE = $(call github,open-power,skiboot,$(SKIBOOT_VERSION)) |
Stewart Smith | 1866e61 | 2016-07-28 09:50:28 +1000 | [diff] [blame] | 10 | SKIBOOT_LICENSE = Apache-2.0 |
Stewart Smith | b16ba5b | 2017-01-10 12:55:55 +1100 | [diff] [blame] | 11 | SKIBOOT_LICENSE_FILES = LICENCE |
Jeremy Kerr | fb3f016 | 2015-03-27 10:14:50 +0800 | [diff] [blame] | 12 | SKIBOOT_INSTALL_IMAGES = YES |
| 13 | SKIBOOT_INSTALL_TARGET = NO |
| 14 | |
| 15 | SKIBOOT_MAKE_OPTS += CC="$(TARGET_CC)" LD="$(TARGET_LD)" \ |
| 16 | AS="$(TARGET_AS)" AR="$(TARGET_AR)" NM="$(TARGET_NM)" \ |
| 17 | OBJCOPY="$(TARGET_OBJCOPY)" OBJDUMP="$(TARGET_OBJDUMP)" \ |
| 18 | SIZE="$(TARGET_CROSS)size" |
| 19 | |
| 20 | ifeq ($(BR2_TARGET_SKIBOOT_EMBED_PAYLOAD),y) |
| 21 | SKIBOOT_MAKE_OPTS += KERNEL="$(BINARIES_DIR)/$(LINUX_IMAGE_NAME)" |
| 22 | |
| 23 | ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y) |
Stewart Smith | 906bdba | 2015-08-26 16:05:20 +1000 | [diff] [blame] | 24 | SKIBOOT_DEPENDENCIES += linux-rebuild-with-initramfs |
Jeremy Kerr | fb3f016 | 2015-03-27 10:14:50 +0800 | [diff] [blame] | 25 | else |
| 26 | SKIBOOT_DEPENDENCIES += linux |
| 27 | endif |
| 28 | |
| 29 | endif |
| 30 | |
| 31 | define SKIBOOT_BUILD_CMDS |
Stewart Smith | bdbcb26 | 2015-07-30 18:29:28 +1000 | [diff] [blame] | 32 | $(TARGET_CONFIGURE_OPTS) SKIBOOT_VERSION=`cat $(SKIBOOT_VERSION_FILE)` \ |
Jeremy Kerr | fb3f016 | 2015-03-27 10:14:50 +0800 | [diff] [blame] | 33 | $(MAKE) $(SKIBOOT_MAKE_OPTS) -C $(@D) all |
| 34 | endef |
| 35 | |
| 36 | define SKIBOOT_INSTALL_IMAGES_CMDS |
| 37 | $(INSTALL) -D -m 755 $(@D)/skiboot.lid $(BINARIES_DIR) |
| 38 | endef |
| 39 | |
| 40 | $(eval $(generic-package)) |