Skip to content
Browse files

Makefile: make target .stamp-pre-patch create empty patches dir per feed

for later linking
  • Loading branch information...
SvenRoederer committed Jun 23, 2019
1 parent d8b2c99 commit 4f829f176bdc836ae048df750dc710bc0fb1b689
Showing with 4 additions and 2 deletions.
  1. +4 −2 Makefile
@@ -92,7 +92,9 @@ feeds-update: stamp-clean-feeds-updated .stamp-feeds-updated

# prepare patch
pre-patch: stamp-clean-pre-patch .stamp-pre-patch
.stamp-pre-patch: .stamp-feeds-updated $(wildcard $(FW_DIR)/patches/*) | $(OPENWRT_DIR)/patches $(wildcard $(OPENWRT_DIR)/feeds/*/patches)
.stamp-pre-patch: .stamp-feeds-updated $(wildcard $(FW_DIR)/patches/*) | $(OPENWRT_DIR)/patches $(wildcard patches/packages/*/*)
# ensure that an (empty) patches-directory per feed exists
$(foreach feed,$(FEEDS),$(shell [ -d $(FW_DIR)/patches/packages/$(feed) ] || mkdir $(FW_DIR)/patches/packages/$(feed)))
touch $@

# patch openwrt working copy
@@ -111,7 +113,7 @@ patch-feeds: $(OPENWRT_DIR)/feeds.conf $(PATCH_FEEDS_TARGET)
$(info patching all feeds: $(FEEDS))
touch .stamp-patch-feeds

patch-feed-%: $(wildcard patches/packages/%/*) .stamp-feeds-updated patch-openwrt $(OPENWRT_DIR)/feeds/%/patches
patch-feed-%: $(wildcard patches/packages/%/*) patch-openwrt .stamp-feeds-updated $(OPENWRT_DIR)/feeds/%/patches
$(info this is $@)
cd $(OPENWRT_DIR)/feeds/$*; quilt push -a

0 comments on commit 4f829f1

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