From bfbb55ed6430f6b4d9bb49d4f2592ef9a5713e75 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 29 Dec 2014 03:08:09 -0500 Subject: refactor (again): new download script, separate architectures, modules --- Makefile.d/build-release.mk | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Makefile.d/build-release.mk (limited to 'Makefile.d/build-release.mk') diff --git a/Makefile.d/build-release.mk b/Makefile.d/build-release.mk new file mode 100644 index 0000000..09c0808 --- /dev/null +++ b/Makefile.d/build-release.mk @@ -0,0 +1,53 @@ + +dist_utils = \ + bucts \ + flashrom_normal \ + flashrom_lenovobios_macronix \ + flashrom_lenovobios_sst \ + cbfstool \ + nvramtool +dist_files = \ + $(MAKEFILE_LIST) \ + configure configure.ac \ + tmp/.gitignore \ + powertop.trisquel6 \ + powertop.trisquel6.init \ + powertop.trisquel7 \ + powertop.trisquel7.init \ + deps-trisquel \ + flash_lenovobios_stage1 \ + flash_lenovobios_stage2 \ + flash_libreboot6 \ + flash_macbook21applebios \ + flash_x60_libreboot5 +dist_dirs = docs bin resources + +distdir: PHONY \ + libreboot-$(VERSION)/version.txt \ + $(addprefix libreboot-$(VERSION)/utils/$(arch)/,$(dist_utils)) \ + $(addprefix libreboot-$(VERSION)/,$(dist_files) $(dist_dirs)) + +libreboot-$(VERSION)/utils/$(arch)/bucts: src/bucts/bucts + mkdir -p $(@D) + cp $< $@ +libreboot-$(VERSION)/utils/$(arch)/flashrom_%: src/flashrom/flashrom_% + mkdir -p $(@D) + cp $< $@ +libreboot-$(VERSION)/utils/$(arch)/cbfstool: src/coreboot/util/cbfstool/cbfstool + mkdir -p $(@D) + cp $< $@ +libreboot-$(VERSION)/utils/$(arch)/nvramtool: src/coreboot/util/nvramtool/nvramtool + mkdir -p $(@D) + cp $< $@ +$(addprefix libreboot-$(VERSION)/,$(dist_files)): \ +libreboot-$(VERSION)/%: % + mkdir -p $(@D) + cp $< $@ +$(addprefix libreboot-$(VERSION)/,$(dist_dirs)): \ +libreboot-$(VERSION)/%: % + mkdir -p $(@D) + cp -r $< $@ + +libreboot-$(VERSION)/version.txt: PHONY + mkdir -p $(@D) + echo $(VERSION) > $@ -- cgit v1.2.3