blob: 3eee05e12afac9f8baa438028e02991ce77331e1 [file] [log] [blame]
Jeremy Kerrfb3f0162015-03-27 10:14:50 +08001################################################################################
2#
3# skiboot
4#
5################################################################################
6
Stewart Smith6b53efb2015-07-28 11:40:29 +10007SKIBOOT_VERSION = skiboot-5.1.0-beta1
Jeremy Kerrfb3f0162015-03-27 10:14:50 +08008SKIBOOT_SITE = $(call github,open-power,skiboot,$(SKIBOOT_VERSION))
9SKIBOOT_INSTALL_IMAGES = YES
10SKIBOOT_INSTALL_TARGET = NO
11
12SKIBOOT_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
17ifeq ($(BR2_TARGET_SKIBOOT_EMBED_PAYLOAD),y)
18SKIBOOT_MAKE_OPTS += KERNEL="$(BINARIES_DIR)/$(LINUX_IMAGE_NAME)"
19
20ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
21SKIBOOT_DEPENDENCIES += linux26-rebuild-with-initramfs
22else
23SKIBOOT_DEPENDENCIES += linux
24endif
25
26endif
27
28define SKIBOOT_BUILD_CMDS
Stewart Smithbdbcb262015-07-30 18:29:28 +100029 $(TARGET_CONFIGURE_OPTS) SKIBOOT_VERSION=`cat $(SKIBOOT_VERSION_FILE)` \
Jeremy Kerrfb3f0162015-03-27 10:14:50 +080030 $(MAKE) $(SKIBOOT_MAKE_OPTS) -C $(@D) all
31endef
32
33define SKIBOOT_INSTALL_IMAGES_CMDS
34 $(INSTALL) -D -m 755 $(@D)/skiboot.lid $(BINARIES_DIR)
35endef
36
37$(eval $(generic-package))