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