blob: b14855f3db8bd7c2f88b364534c9fae6c186e345 [file] [log] [blame]
Jeremy Kerrfb3f0162015-03-27 10:14:50 +08001################################################################################
2#
3# skiboot
4#
5################################################################################
6
Stewart Smith1168cb42015-10-27 10:44:33 +11007SKIBOOT_VERSION = $(call qstrip,$(BR2_SKIBOOT_VERSION))
8
Jeremy Kerrfb3f0162015-03-27 10:14:50 +08009SKIBOOT_SITE = $(call github,open-power,skiboot,$(SKIBOOT_VERSION))
Stewart Smith1866e612016-07-28 09:50:28 +100010SKIBOOT_LICENSE = Apache-2.0
Stewart Smithb16ba5b2017-01-10 12:55:55 +110011SKIBOOT_LICENSE_FILES = LICENCE
Jeremy Kerrfb3f0162015-03-27 10:14:50 +080012SKIBOOT_INSTALL_IMAGES = YES
13SKIBOOT_INSTALL_TARGET = NO
14
15SKIBOOT_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
20ifeq ($(BR2_TARGET_SKIBOOT_EMBED_PAYLOAD),y)
21SKIBOOT_MAKE_OPTS += KERNEL="$(BINARIES_DIR)/$(LINUX_IMAGE_NAME)"
22
23ifeq ($(BR2_TARGET_ROOTFS_INITRAMFS),y)
Stewart Smith906bdba2015-08-26 16:05:20 +100024SKIBOOT_DEPENDENCIES += linux-rebuild-with-initramfs
Jeremy Kerrfb3f0162015-03-27 10:14:50 +080025else
26SKIBOOT_DEPENDENCIES += linux
27endif
28
29endif
30
31define SKIBOOT_BUILD_CMDS
Stewart Smithbdbcb262015-07-30 18:29:28 +100032 $(TARGET_CONFIGURE_OPTS) SKIBOOT_VERSION=`cat $(SKIBOOT_VERSION_FILE)` \
Jeremy Kerrfb3f0162015-03-27 10:14:50 +080033 $(MAKE) $(SKIBOOT_MAKE_OPTS) -C $(@D) all
34endef
35
36define SKIBOOT_INSTALL_IMAGES_CMDS
37 $(INSTALL) -D -m 755 $(@D)/skiboot.lid $(BINARIES_DIR)
38endef
39
40$(eval $(generic-package))