summaryrefslogtreecommitdiffstats
path: root/openpower/package/skiboot
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.ibm.com>2018-11-21 21:07:56 -0600
committerReza Arbab <arbab@linux.ibm.com>2018-11-21 21:26:55 -0600
commit9e1c47b06fe31f540df03795f9e208858ce15f52 (patch)
tree229e556fefdf4628ea89defe7affb0b963eb8c2b /openpower/package/skiboot
parent26708d8249ab95fdfcdb9f9ca2758bfaa5d32ad3 (diff)
downloadblackbird-op-build-9e1c47b06fe31f540df03795f9e208858ce15f52.tar.gz
blackbird-op-build-9e1c47b06fe31f540df03795f9e208858ce15f52.zip
skiboot: Enable use of a custom repository
We already have BR2_SKIBOOT_CUSTOM_VERSION. It would be nice if we could also specify the repository, to test op-build configs with a developmental skiboot. Add CUSTOM_GIT and CUSTOM_REPO_URL options (like the similarly-named kernel options) allowing us to do BR2_SKIBOOT_CUSTOM_VERSION=y BR2_SKIBOOT_CUSTOM_VERSION_VALUE="sha" BR2_SKIBOOT_CUSTOM_GIT=y BR2_SKIBOOT_CUSTOM_REPO_URL="ssh://git@github.com/user/skiboot.git" Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Diffstat (limited to 'openpower/package/skiboot')
-rw-r--r--openpower/package/skiboot/Config.in7
-rw-r--r--openpower/package/skiboot/skiboot.mk6
2 files changed, 13 insertions, 0 deletions
diff --git a/openpower/package/skiboot/Config.in b/openpower/package/skiboot/Config.in
index a8c73f01..0b1b1aca 100644
--- a/openpower/package/skiboot/Config.in
+++ b/openpower/package/skiboot/Config.in
@@ -35,6 +35,13 @@ config BR2_SKIBOOT_VERSION
default BR2_SKIBOOT_CUSTOM_VERSION_VALUE \
if BR2_SKIBOOT_CUSTOM_VERSION
+config BR2_SKIBOOT_CUSTOM_GIT
+ bool "Custom git repository"
+
+config BR2_SKIBOOT_CUSTOM_REPO_URL
+ string "URL of custom repository"
+ depends on BR2_SKIBOOT_CUSTOM_GIT
+
endif
endmenu
diff --git a/openpower/package/skiboot/skiboot.mk b/openpower/package/skiboot/skiboot.mk
index b14855f3..74c66233 100644
--- a/openpower/package/skiboot/skiboot.mk
+++ b/openpower/package/skiboot/skiboot.mk
@@ -6,7 +6,13 @@
SKIBOOT_VERSION = $(call qstrip,$(BR2_SKIBOOT_VERSION))
+ifeq ($(BR2_SKIBOOT_CUSTOM_GIT),y)
+SKIBOOT_SITE = $(call qstrip,$(BR2_SKIBOOT_CUSTOM_REPO_URL))
+SKIBOOT_SITE_METHOD = git
+else
SKIBOOT_SITE = $(call github,open-power,skiboot,$(SKIBOOT_VERSION))
+endif
+
SKIBOOT_LICENSE = Apache-2.0
SKIBOOT_LICENSE_FILES = LICENCE
SKIBOOT_INSTALL_IMAGES = YES
OpenPOWER on IntegriCloud