Browse Source

build: copy opkg keypair to target openwrt tree instead of linking it

Fixes #579
Matthias Schiffer 8 years ago
parent
commit
87dd5bb3bb
1 changed files with 3 additions and 2 deletions
  1. 3 2
      Makefile

+ 3 - 2
Makefile

@@ -262,8 +262,9 @@ MODULE_PREFIX = gluon-$(GLUON_SITE_CODE)-$(PREPARED_RELEASE)
 include $(INCLUDE_DIR)/target.mk
 
 build-key: FORCE
-	ln -sf $(GLUON_OPKG_KEY) $(BUILD_KEY)
-	ln -sf $(GLUON_OPKG_KEY).pub $(BUILD_KEY).pub
+	rm -f $(BUILD_KEY) $(BUILD_KEY).pub
+	cp $(GLUON_OPKG_KEY) $(BUILD_KEY)
+	cp $(GLUON_OPKG_KEY).pub $(BUILD_KEY).pub
 
 config: FORCE
 	+$(NO_TRACE_MAKE) scripts/config/conf OPENWRT_BUILD= QUIET=0