diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-29 03:08:09 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2014-12-29 03:08:09 -0500 |
commit | bfbb55ed6430f6b4d9bb49d4f2592ef9a5713e75 (patch) | |
tree | 763a032515d692ad787e0d5ef5b90e5339c18cfd /Makefile.d/build-release.mk | |
parent | 0264bd2989c282c8ffaa13e1c491aa529789565e (diff) |
refactor (again): new download script, separate architectures, modules
Diffstat (limited to 'Makefile.d/build-release.mk')
-rw-r--r-- | Makefile.d/build-release.mk | 53 |
1 files changed, 53 insertions, 0 deletions
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) > $@ |