Skip to content
Permalink
Browse files

Makefile: initial work on patches per directory

  • Loading branch information...
SvenRoederer committed Jun 20, 2019
1 parent cb0c500 commit 37a4a3adb6339fa0a6a9ebe3995a1af5e3d27844
Showing with 7 additions and 2 deletions.
  1. +7 −2 Makefile
@@ -68,7 +68,11 @@ openwrt-update: stamp-clean-openwrt-updated .stamp-openwrt-updated

# patches require updated openwrt working copy
$(OPENWRT_DIR)/patches: | .stamp-openwrt-updated
ln -s $(FW_DIR)/patches $@
ln -s $(FW_DIR)/patches/openwrt $@

# patches require updated openwrt working copy
$(OPENWRT_DIR)/feeds/luci/patches: | .stamp-feeds-updated
ln -s $(FW_DIR)/patches/packages/luci $@

# feeds
$(OPENWRT_DIR)/feeds.conf: .stamp-openwrt-updated feeds.conf
@@ -84,7 +88,7 @@ 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
.stamp-pre-patch: .stamp-feeds-updated $(wildcard $(FW_DIR)/patches/*) | $(OPENWRT_DIR)/patches $(OPENWRT_DIR)/feeds/luci/patches
touch $@

# patch openwrt working copy
@@ -94,6 +98,7 @@ patch: stamp-clean-patched .stamp-patched
rm -rf $(OPENWRT_DIR)/tmp
$(UMASK); cd $(OPENWRT_DIR); ./scripts/feeds update
$(UMASK); cd $(OPENWRT_DIR); ./scripts/feeds install -a
cd $(OPENWRT_DIR)/feeds/luci; quilt push -a
touch $@

.stamp-build_rev: .FORCE

0 comments on commit 37a4a3a

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