Skip to content

Commit

Permalink
Makefiles to build firmwares and buildtools
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasseemoo committed Nov 3, 2016
1 parent 3f42904 commit d50a0c2
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
all: buildtools firmwares

firmwares: buildtools FORCE
@printf "\033[0;31m EXTRACTING FLASHPATCHES AND UCODE\033[0m\n"
$(Q)make -C $@

buildtools: FORCE
@printf "\033[0;31m BUILDING BUILDTOOLS\033[0m\n"
$(Q)make -C $@

FORCE:
12 changes: 12 additions & 0 deletions buildtools/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
all: flash_patch_extractor ucode_extractor

flash_patch_extractor: FORCE
@printf "\033[0;31m BUILDING\033[0m %s\n" $@
$(Q)make -C $@

ucode_extractor: FORCE
@printf "\033[0;31m BUILDING\033[0m %s\n" $@
$(Q)make -C $@

FORCE:

9 changes: 9 additions & 0 deletions firmwares/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SUBDIRS = $(dir $(wildcard */Makefile))

all: $(SUBDIRS)

$(SUBDIRS): FORCE
@printf "\033[0;31m EXECUTING MAKE FOR CHIP VERSION\033[0m %s\n" $@
$(Q)make -C $@

FORCE:
11 changes: 11 additions & 0 deletions firmwares/bcm4330/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SUBDIRS = $(dir $(wildcard */definitions.mk))

all: $(SUBDIRS)

$(SUBDIRS): FORCE
ifndef (,$(wildcard $(addprefix $@, Makefile)))
@printf "\033[0;31m EXECUTING MAKE FOR FIRMWARE VERSION\033[0m %s\n" $@
$(Q)make -C $@
endif

FORCE:
11 changes: 11 additions & 0 deletions firmwares/bcm4339/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SUBDIRS = $(dir $(wildcard */definitions.mk))

all: $(SUBDIRS)

$(SUBDIRS): FORCE
ifndef (,$(wildcard $(addprefix $@, Makefile)))
@printf "\033[0;31m EXECUTING MAKE FOR FIRMWARE VERSION\033[0m %s\n" $@
$(Q)make -C $@
endif

FORCE:
11 changes: 11 additions & 0 deletions firmwares/bcm43438/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SUBDIRS = $(dir $(wildcard */definitions.mk))

all: $(SUBDIRS)

$(SUBDIRS): FORCE
ifndef (,$(wildcard $(addprefix $@, Makefile)))
@printf "\033[0;31m EXECUTING MAKE FOR FIRMWARE VERSION\033[0m %s\n" $@
$(Q)make -C $@
endif

FORCE:
11 changes: 11 additions & 0 deletions firmwares/bcm4358/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
SUBDIRS = $(dir $(wildcard */definitions.mk))

all: $(SUBDIRS)

$(SUBDIRS): FORCE
ifndef (,$(wildcard $(addprefix $@, Makefile)))
@printf "\033[0;31m EXECUTING MAKE FOR FIRMWARE VERSION\033[0m %s\n" $@
$(Q)make -C $@
endif

FORCE:

0 comments on commit d50a0c2

Please sign in to comment.