From aea86e872629811d9e7865b1ad708c99a5ca2460 Mon Sep 17 00:00:00 2001 From: "Carl D. Roth" Date: Thu, 17 Nov 2016 12:20:51 -0800 Subject: [PATCH] Added sample hook scripts to u-boot installer --- builds/any/installer/uboot/builds/Makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/builds/any/installer/uboot/builds/Makefile b/builds/any/installer/uboot/builds/Makefile index b6073d5c..800463e4 100644 --- a/builds/any/installer/uboot/builds/Makefile +++ b/builds/any/installer/uboot/builds/Makefile @@ -10,8 +10,20 @@ endif include $(ONL)/make/versions/version-onl.mk INSTALLER_NAME=$(FNAME_PRODUCT_VERSION)_ONL-OS_$(FNAME_BUILD_ID)_$(UARCH)_$(BOOTMODE)_INSTALLER +MKINSTALLER_OPTS = \ + --arch $(ARCH) \ + --boot-config boot-config \ + --add-dir config \ + --fit onl-loader-fit:$(ARCH) onl-loader-fit.itb \ + --swi onl-swi:$(ARCH) \ + --preinstall-script $(ONL)/builds/any/installer/sample-preinstall.sh \ + --postinstall-script $(ONL)/builds/any/installer/sample-postinstall.sh \ + --preinstall-plugin $(ONL)/builds/any/installer/sample-preinstall.py \ + --postinstall-plugin $(ONL)/builds/any/installer/sample-postinstall.py \ + # THIS LINE INTENTIONALLY LEFT BLANK + __installer: - $(ONL)/tools/mkinstaller.py --arch $(ARCH) --boot-config boot-config --add-dir config --fit onl-loader-fit:$(ARCH) onl-loader-fit.itb --swi onl-swi:$(ARCH) --out $(INSTALLER_NAME) + $(ONL)/tools/mkinstaller.py $(MKINSTALLER_OPTS) --out $(INSTALLER_NAME) md5sum "$(INSTALLER_NAME)" | awk '{ print $$1 }' > "$(INSTALLER_NAME).md5sum"