Skip to content

Commit

Permalink
Tiny fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rssnsj committed Jul 21, 2015
1 parent 5576af0 commit 7cd4762
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ImageBuilder/Makefile
Expand Up @@ -53,7 +53,8 @@ define BeforeBuildImage
endef

define EnableWireless
@[ -n "$(WIFI)" ] || exit 0; openwrt-repack.sh $(1) -w -o $(1).out && mv $(1).out $(1)
@[ -n "$(WIFI)" ] || exit 0; \
F="$(1)"; openwrt-repack.sh $$F -w -o $$F.out && mv $$F.out $$F
endef

both: HC5761 HC5861
Expand All @@ -63,14 +64,14 @@ HC5761: $(PREPARED_TARGETS)
make -C $(BUILDER) image PROFILE=HiWiFi-HC5761 \
FILES="$(shell cd $(BUILDER); pwd)/target/linux/ramips/base-files" \
PACKAGES="$(OPKG_PACKAGES) $(OPKG_PACKAGES_HC5761)"
$(call EnableWireless,$(shell echo $(BUILDER)/bin/ramips/openwrt-ramips-*hc5761-*-sysupgrade.bin))
$(call EnableWireless,$(shell echo $(BUILDER)/bin/ramips/openwrt-ramips-*-hc5761-*-sysupgrade.bin))

HC5861: $(PREPARED_TARGETS)
$(call BeforeBuildImage)
make -C $(BUILDER) image PROFILE=HiWiFi-HC5861 \
FILES="$(shell cd $(BUILDER); pwd)/target/linux/ramips/base-files" \
PACKAGES="$(OPKG_PACKAGES) $(OPKG_PACKAGES_HC5861)"
$(call EnableWireless,$(shell echo $(BUILDER)/bin/ramips/openwrt-ramips-*hc5861-*-sysupgrade.bin))
$(call EnableWireless,$(shell echo $(BUILDER)/bin/ramips/openwrt-ramips-*-hc5861-*-sysupgrade.bin))

.patched:
mkdir -p $(BUILDER)/target/linux/ramips/patches-3.10
Expand Down

0 comments on commit 7cd4762

Please sign in to comment.