diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2022-09-14 12:53:55 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2022-09-17 10:31:26 +0200 |
commit | b3e9af495c79f6c8c68c0eb36df67dfa5ede4e16 (patch) | |
tree | 487a5f325636bc1e0df29b2de8b9cdd01e590704 /packages | |
parent | b8cfe1d6d3c4f52d3bbaf3e4beb80903f9310830 (diff) |
Add OpenWrt CI via Github Actions.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/openwrt/net/nDPId-testing/001-enable-in-source-build.patch (renamed from packages/openwrt/net/nDPId-testing/patches/001-enable-in-source-build.patch) | 0 | ||||
-rw-r--r-- | packages/openwrt/net/nDPId-testing/Makefile | 14 |
2 files changed, 11 insertions, 3 deletions
diff --git a/packages/openwrt/net/nDPId-testing/patches/001-enable-in-source-build.patch b/packages/openwrt/net/nDPId-testing/001-enable-in-source-build.patch index 86432dc57..86432dc57 100644 --- a/packages/openwrt/net/nDPId-testing/patches/001-enable-in-source-build.patch +++ b/packages/openwrt/net/nDPId-testing/001-enable-in-source-build.patch diff --git a/packages/openwrt/net/nDPId-testing/Makefile b/packages/openwrt/net/nDPId-testing/Makefile index 8ab38193b..fcb0a491e 100644 --- a/packages/openwrt/net/nDPId-testing/Makefile +++ b/packages/openwrt/net/nDPId-testing/Makefile @@ -4,7 +4,11 @@ PKG_NAME:=nDPId-testing PKG_VERSION:=1.0 PKG_RELEASE:=$(AUTORELEASE) -SOURCE_DIR:=../../../.. +ifneq ($(wildcard /artifacts),) +PKG_DIRECTORY:=/artifacts +else +PKG_DIRECTORY:=../../../.. +endif PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) @@ -61,6 +65,9 @@ endef endif define Build/Prepare + @echo 'tar: $(DL_DIR)/$(PKG_SOURCE)' + @echo 'PKG_DIRECTORY=$(PKG_DIRECTORY)' + @echo 'PKG_SOURCE_SUBDIR=$(PKG_SOURCE_SUBDIR)' tar \ --exclude-tag-all='gcov.css' \ --exclude-tag-all='cmake_install.cmake' \ @@ -71,9 +78,10 @@ define Build/Prepare --exclude-vcs \ --exclude-vcs-ignores \ --transform 's,^,$(PKG_SOURCE_SUBDIR)/,' \ - -czf "$(DL_DIR)/$(PKG_SOURCE)" "$(SOURCE_DIR)" + -czf "$(DL_DIR)/$(PKG_SOURCE)" -C "$(PKG_DIRECTORY)" . + tar -tzf "$(DL_DIR)/$(PKG_SOURCE)" $(PKG_UNPACK) - $(Build/Patch) + cd '$(PKG_BUILD_DIR)' && patch -p1 < $(PKG_BUILD_DIR)/packages/openwrt/net/nDPId-testing/001-enable-in-source-build.patch env \ CC="$(TARGET_CC)" \ AR="$(TARGET_AR)" \ |