1
1
mirror of https://github.com/telent/nixwrt.git synced 2024-10-05 19:57:26 +03:00

allow overriding secrets on command line

e.g   make  defalutroute image=phramware L2TP_PEER=10.0.0.1
This commit is contained in:
Daniel Barlow 2021-11-24 22:49:58 +00:00
parent a25d4b81cc
commit c8efab48df

View File

@ -63,7 +63,7 @@ export SSH_HOST_KEY=$(file < emu-host-key)
%:examples/%/config.nix examples/%/device.nix
test -f $(SECRETS)
env $(shell cat $(SECRETS)) $(NIX_BUILD_ARGS) \
env $(shell cat $(SECRETS)) $(MAKEOVERRIDES) $(NIX_BUILD_ARGS) \
$(ATTRS) \
-I nixwrt-config=`pwd`/$< \
-I nixwrt-device=`pwd`/$(<D)/device.nix \