diff --git a/builds/any/installer/grub/builds/Makefile b/builds/any/installer/grub/builds/Makefile index a89a27cd..933f727f 100644 --- a/builds/any/installer/grub/builds/Makefile +++ b/builds/any/installer/grub/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 \ + --initrd onl-loader-initrd:$(ARCH) onl-loader-initrd-$(ARCH).cpio.gz \ + --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 --initrd onl-loader-initrd:$(ARCH) onl-loader-initrd-$(ARCH).cpio.gz --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"