summaryrefslogtreecommitdiffstats
path: root/openpower/package/petitboot/petitboot.mk
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-07-15 16:32:48 +1000
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-07-18 14:24:57 +1000
commitb515dbd11ab6f7feb67aee38b3099c8ba709ee3e (patch)
treeed7096dd43ee1efd203b41b6b97144bb10b73695 /openpower/package/petitboot/petitboot.mk
parentd38455d5c5b93a45b3d7fc69bd7a7b4bd6b70e9f (diff)
downloadblackbird-op-build-b515dbd11ab6f7feb67aee38b3099c8ba709ee3e.tar.gz
blackbird-op-build-b515dbd11ab6f7feb67aee38b3099c8ba709ee3e.zip
openpower/petitboot: Export PETITBOOT_VERSION to autoconf
Petitboot determines its version string at autoreconf; export PETITBOOT_VERSION so that Petitboot can inherit the version string created by op-build. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'openpower/package/petitboot/petitboot.mk')
-rw-r--r--openpower/package/petitboot/petitboot.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpower/package/petitboot/petitboot.mk b/openpower/package/petitboot/petitboot.mk
index 55f04b32..8e9782eb 100644
--- a/openpower/package/petitboot/petitboot.mk
+++ b/openpower/package/petitboot/petitboot.mk
@@ -19,6 +19,8 @@ PETITBOOT_CONF_OPTS += --with-ncurses --without-twin-x11 --without-twin-fbdev \
HOST_PROG_SHUTDOWN=/usr/libexec/petitboot/bb-kexec-reboot \
$(if $(BR2_PACKAGE_BUSYBOX),--with-tftp=busybox)
+PETITBOOT_AUTORECONF_ENV += PETITBOOT_VERSION=`cat $(PETITBOOT_VERSION_FILE) | cut -d '-' -f 2-`
+
ifdef PETITBOOT_DEBUG
PETITBOOT_CONF_OPTS += --enable-debug
endif
OpenPOWER on IntegriCloud