blob: 8e443ed6c72e518bc09b53bd3009178ee76dd8d8 [file] [log] [blame]
Jeremy Kerrfb3f0162015-03-27 10:14:50 +08001################################################################################
2#
3# skiboot
4#
5################################################################################
6
Stewart Smith03d03342015-06-05 14:37:49 +10007SKIBOOT_VERSION = skiboot-5.0.3
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
29 $(TARGET_CONFIGURE_OPTS) SKIBOOT_VERSION=$(SKIBOOT_VERSION) \
30 $(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))