summaryrefslogtreecommitdiffstats
path: root/openpower
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2016-10-18 17:43:08 +0200
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2017-04-19 13:39:01 +1000
commitac84eb015ad6fffc873ef3f42cc9fe412418e16f (patch)
treeed33c03e25c725ac00d9359be62a1498b24857ff /openpower
parentdc85cb42038a71a206ed76cfb215d1fa22fbce4b (diff)
downloadtalos-op-build-ac84eb015ad6fffc873ef3f42cc9fe412418e16f.tar.gz
talos-op-build-ac84eb015ad6fffc873ef3f42cc9fe412418e16f.zip
Make installing 30-dtb-updates depend on BR2_PACKAGE_DTC
30-dtb-updates is only created when dtc is selected. Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Naming and hook update fixed by: Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'openpower')
-rw-r--r--openpower/package/petitboot/petitboot.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/openpower/package/petitboot/petitboot.mk b/openpower/package/petitboot/petitboot.mk
index 5d28fc76..2835be3b 100644
--- a/openpower/package/petitboot/petitboot.mk
+++ b/openpower/package/petitboot/petitboot.mk
@@ -44,8 +44,6 @@ define PETITBOOT_POST_INSTALL
$(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/petitboot/boot.d
$(INSTALL) -D -m 0755 $(@D)/utils/hooks/01-create-default-dtb \
$(TARGET_DIR)/etc/petitboot/boot.d/
- $(INSTALL) -D -m 0755 $(@D)/utils/hooks/30-dtb-updates \
- $(TARGET_DIR)/etc/petitboot/boot.d/
$(INSTALL) -D -m 0755 $(@D)/utils/hooks/90-sort-dtb \
$(TARGET_DIR)/etc/petitboot/boot.d/
@@ -72,6 +70,15 @@ define PETITBOOT_POST_INSTALL
$(MAKE) -C $(@D)/po DESTDIR=$(TARGET_DIR) install
endef
+define PETITBOOT_POST_INSTALL_DTB
+ $(INSTALL) -D -m 0755 $(@D)/utils/hooks/30-dtb-updates \
+ $(TARGET_DIR)/etc/petitboot/boot.d/
+endef
+
PETITBOOT_POST_INSTALL_TARGET_HOOKS += PETITBOOT_POST_INSTALL
+ifeq ($(BR2_PACKAGE_DTC),y)
+ PETITBOOT_POST_INSTALL_TARGET_HOOKS += PETITBOOT_POST_INSTALL_DTB
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud