From 4266453f5f2031d5252af02ca135a482b8e5e4f0 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Tue, 22 Mar 2016 18:29:46 +0100 Subject: [PATCH] pkg: openwsn: adapt to use pkg.mk --- pkg/openwsn/Makefile | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/pkg/openwsn/Makefile b/pkg/openwsn/Makefile index b02298c323..89ef5075cd 100644 --- a/pkg/openwsn/Makefile +++ b/pkg/openwsn/Makefile @@ -1,31 +1,10 @@ PKG_NAME=openwsn PKG_URL=https://github.com/openwsn-berkeley/openwsn-fw.git PKG_VERSION=ff25e5d0ae5d344ed793a724d60532fb917bf1f8 -PKG_DIR=$(CURDIR)/$(PKG_NAME) -.PHONY: all clean patch reset +.PHONY: all -all: patch +all: download "$(MAKE)" -C $(PKG_DIR) -patch: $(PKG_DIR)/Makefile - -$(PKG_DIR)/Makefile: $(PKG_DIR)/.git/config - cd "$(PKG_DIR)" && git am --ignore-whitespace $(CURDIR)/*.patch - -$(PKG_DIR)/.git/config: - test -d "$(PKG_DIR)" || $(GITCACHE) clone "$(PKG_URL)" "$(PKG_VERSION)" "$(PKG_DIR)" - -clean:: - @echo "Cleaning up OpenWSN package..." - @cd "$(PKG_DIR)" 2> /dev/null > /dev/null && \ - git clean -x -f && \ - git am --abort ; \ - git reset --hard "$(PKG_VERSION)" && \ - $(MAKE) patch || true - -distclean:: - rm -rf "$(PKG_DIR)" - -Makefile.include: - @true +include $(RIOTBASE)/pkg/pkg.mk -- GitLab