include $(GLUONDIR)/targets/$(GLUON_TARGET)/profiles.mk
||(echo-e'Please set GLUON_TARGET to a valid target. Gluon supports the following targets:$(subst $(space),\n * ,$(GLUON_TARGETS))';false)
CheckExternal:=test-d$(GLUON_ORIGOPENWRTDIR)||(echo'You don'"'"'t seem to have obtained the external repositories needed by Gluon; please call `make update` first!';false)
CheckExternal:=test-d$(GLUON_ORIGOPENWRTDIR)||(echo'You don'"'"'t seem to have obtained the external repositories needed by Gluon; please call `make update` first!';false)
...
@@ -75,6 +61,7 @@ CheckExternal := test -d $(GLUON_ORIGOPENWRTDIR) || (echo 'You don'"'"'t seem to
...
@@ -75,6 +61,7 @@ CheckExternal := test -d $(GLUON_ORIGOPENWRTDIR) || (echo 'You don'"'"'t seem to
prepare-target:FORCE
prepare-target:FORCE
@$(CheckExternal)
@$(CheckExternal)
@$(CheckTarget)
+@$(GLUONMAKE_EARLY) prepare-target
+@$(GLUONMAKE_EARLY) prepare-target
...
@@ -87,11 +74,13 @@ prepare: prepare-target
...
@@ -87,11 +74,13 @@ prepare: prepare-target
clean dirclean download images:FORCE
clean dirclean download images:FORCE
@$(CheckExternal)
@$(CheckExternal)
@$(CheckTarget)
+@$(GLUONMAKE_EARLY) maybe-prepare-target
+@$(GLUONMAKE_EARLY) maybe-prepare-target
+@$(GLUONMAKE)$@
+@$(GLUONMAKE)$@
toolchain/% package/% target/%:FORCE
toolchain/% package/% target/% image/%:FORCE
@$(CheckExternal)
@$(CheckExternal)
@$(CheckTarget)
+@$(GLUONMAKE_EARLY) maybe-prepare-target
+@$(GLUONMAKE_EARLY) maybe-prepare-target
+@$(GLUONMAKE)$@
+@$(GLUONMAKE)$@
...
@@ -99,8 +88,19 @@ manifest: FORCE
...
@@ -99,8 +88,19 @@ manifest: FORCE
[-n'$(GLUON_BRANCH)']||(echo'Please set GLUON_BRANCH to create a manifest.';false)
[-n'$(GLUON_BRANCH)']||(echo'Please set GLUON_BRANCH to create a manifest.';false)
echo'$(GLUON_PRIORITY)' | grep-qE'^([0-9]*\.)?[0-9]+$$'||(echo'Please specify a numeric value for GLUON_PRIORITY to create a manifest.';false)
echo'$(GLUON_PRIORITY)' | grep-qE'^([0-9]*\.)?[0-9]+$$'||(echo'Please specify a numeric value for GLUON_PRIORITY to create a manifest.';false)