Skip to content

Commit

Permalink
support TARGET specific file for openwrt
Browse files Browse the repository at this point in the history
  • Loading branch information
sarcasticadmin committed Aug 9, 2023
1 parent fb72bb3 commit dce766c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions openwrt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,10 @@ ifndef GOMPLATE
$(error "gomplate is not available please install it")
endif
$(GOMPLATE) -d openwrt=$(BUILD_SECRETS) -d keys_dir=$(KEYPATH) --input-dir=$(TMPL_SRC_DIR) --output-dir=$(TMPL_OUT_DIR)
# Check that TARGET specific dir exists
ifneq ($(wildcard $(TMPL_SRC_DIR)-$(TARGET)/.),)
$(GOMPLATE) -d openwrt=$(BUILD_SECRETS) -d keys_dir=$(KEYPATH) --input-dir=$(TMPL_SRC_DIR)-$(TARGET) --output-dir=$(TMPL_OUT_DIR)
endif
# TODO: should do this automatically for .sh file types
chmod 750 $(TMPL_OUT_DIR)/root/bin/config-version.sh
chmod 750 $(TMPL_OUT_DIR)/root/bin/wifi-details.sh
Expand Down

0 comments on commit dce766c

Please sign in to comment.