Skip to content
Permalink
Browse files

Makefile: new target: "autobuild"

* when "is_buildbot" is set use this target by default
* "autobuild" will do individual make-calls to reevaluate the GLUON_PACKAGES
  variable. Doing this in one call, will not reevaluate cause a bad packages-
  list as of a missing "features"-file of a feed
  • Loading branch information...
SvenRoederer committed Nov 2, 2019
1 parent d4a7183 commit c7053023e6e9cd582301c6281c98355fc72301a5
Showing with 10 additions and 0 deletions.
  1. +10 −0 Makefile
@@ -36,7 +36,12 @@ ifeq ($(wildcard $(FW_DIR)/configs/$(TARGET).config),)
$(error config for $(TARGET) not defined)
endif

ifeq ($(IS_BUILDBOT),yes)
$(info running on buildbot --> using make target "autobuild")
default: autobuild
else
default: debug-files
endif

## -- GLUON -- ##

@@ -270,6 +275,11 @@ ifdef IS_BUILDBOT
endif
touch $@

autobuild:
$(MAKE) $(GLUON_SITEDIR)/site.mk
$(MAKE) gluon-update
$(MAKE) debug-files

debug-files: $(GLUON_TMPDIR)/images_$(GLUON_TARGET).txt
[ -d $(FW_TARGET_DIR)/debug ] || mkdir -p $(FW_TARGET_DIR)/debug
cp $(OPENWRT_DIR)/.config $(FW_TARGET_DIR)/debug/openwrt.config || true

0 comments on commit c705302

Please sign in to comment.
You can’t perform that action at this time.