1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/*: adapt to new state file targets

Prepare for handling pkg state with files. So it requires having the
path defined before declaring targets. In addition, it cleans up the
old git-download target.
This commit is contained in:
Gaëtan Harter 2019-10-02 12:47:02 +02:00 committed by Bas Stottelaar
parent 831898f735
commit ca5d13cc2a
51 changed files with 120 additions and 214 deletions

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/aabadie/cayenne-lpp
PKG_VERSION=0.1.1
PKG_LICENSE=LGPLv2.1
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,40 +3,42 @@ PKG_URL=https://github.com/cn-uofbasel/ccn-lite/
PKG_VERSION=e37b02c5cb20e9acccea2394be40f7e570a66a4b
PKG_LICENSE=ISC
.PHONY: all ..cmake_version_supported
include $(RIOTBASE)/pkg/pkg.mk
.PHONY: ..cmake_version_supported
CMAKE_MINIMAL_VERSION = 3.6.0
RIOT_CFLAGS = $(INCLUDES)
ifeq (llvm,$(TOOLCHAIN))
RIOT_CFLAGS += -Wno-char-subscripts
endif
TOOLCHAIN_FILE=$(PKG_BUILDDIR)/xcompile-toolchain.cmake
TOOLCHAIN_FILE = $(PKG_BUILDDIR)/xcompile-toolchain.cmake
all: $(PKG_BUILDDIR)/src/Makefile
$(MAKE) -C $(PKG_BUILDDIR)/src && \
cp $(PKG_BUILDDIR)/src/lib/libccnl-riot.a $(BINDIR)/ccn-lite.a
all: $(BINDIR)/ccn-lite.a
$(PKG_BUILDDIR)/src/Makefile: $(TOOLCHAIN_FILE)
cd $(PKG_BUILDDIR)/src && \
cmake -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
-DCCNL_RIOT=1 -DRIOT_CFLAGS="$(RIOT_CFLAGS)" -DBUILD_TESTING=OFF .
$(TOOLCHAIN_FILE): git-download
$(BINDIR)/ccn-lite.a: $(PKG_BUILDDIR)/bin/lib/libccnl-riot.a
cp $< $@
$(PKG_BUILDDIR)/bin/lib/libccnl-riot.a: $(PKG_BUILDDIR)/bin/Makefile
$(MAKE) -C $(PKG_BUILDDIR)/bin
$(PKG_BUILDDIR)/bin/Makefile: $(PKG_PREPARED) $(TOOLCHAIN_FILE) | ..cmake_version_supported
cmake -B$(PKG_BUILDDIR)/bin -H$(PKG_BUILDDIR)/src \
-DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
-DCCNL_RIOT=1 -DRIOT_CFLAGS="$(RIOT_CFLAGS)" -DBUILD_TESTING=OFF
$(TOOLCHAIN_FILE): FORCE
$(RIOTTOOLS)/cmake/generate-xcompile-toolchain.sh > $(TOOLCHAIN_FILE)
git-download: | ..cmake_version_supported
..cmake_version_supported:
@ # Remove '-rcX' from version as they are not well handled
$(Q)\
CMAKE_VERSION=$$(cmake --version | sed -n '1 {s/cmake version //;s/-rc.*//;p;}'); \
$(RIOTTOOLS)/has_minimal_version/has_minimal_version.sh "$${CMAKE_VERSION}" "$(CMAKE_MINIMAL_VERSION)" cmake
include $(RIOTBASE)/pkg/pkg.mk
ifneq (,$(filter -Wformat-nonliteral -Wformat=2, $(CFLAGS)))
CFLAGS += -Wno-format-nonliteral
endif

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/ctz/cifra
PKG_VERSION=cfa6df9ca0007abe3c70409d02b3779ac1742297
PKG_LICENSE=CC-0
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.cifra
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -2,11 +2,10 @@ PKG_NAME=cmsis-dsp
PKG_URL=https://github.com/ARM-software/CMSIS_5
PKG_VERSION=5.4.0
PKG_LICENSE=Apache-2.0
CFLAGS += -Wno-strict-aliasing -Wno-unused-parameter
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-strict-aliasing -Wno-unused-parameter
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME) all

View File

@ -36,8 +36,5 @@ $(OBJ): | $(CMSIS_BINDIRS)
$(CMSIS_BINDIRS):
@mkdir -p $@
# Reset the default goal.
.DEFAULT_GOAL :=
# Include RIOT settings and recipes
include $(RIOTBASE)/Makefile.base

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/cabo/cn-cbor
PKG_VERSION=f1cf9ffdf5cfab935a45900556f9b68af925c256
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.cn-cbor
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,6 +3,8 @@ PKG_URL=https://github.com/hso-esk/emb6.git
PKG_VERSION=14e4a3cfff01644e078870e14e16a1fe60dcc895
PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
# GCC 7.x fails on (intentional) fallthrough, thus disable implicit-fallthrough.
CFLAGS += -Wno-implicit-fallthrough
CFLAGS += -Wno-strict-aliasing
@ -16,8 +18,6 @@ EMB6_SUBMODULES:=$(filter-out emb6_contrib \
emb6_router \
emb6_sock_%,$(filter emb6_%,$(USEMODULE)))
.PHONY: all
all: $(EMB6_SUBMODULES)
"$(MAKE)" -C $(PKG_BUILDDIR)
@ -25,8 +25,6 @@ all: $(EMB6_SUBMODULES)
emb6_%:
"$(MAKE)" -C $(dir $(shell grep -lR "MODULE.*=.*\<$@\>" $(PKG_BUILDDIR)))
include $(RIOTBASE)/pkg/pkg.mk
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += -Wno-tautological-compare
CFLAGS += -Wno-parentheses-equality

View File

@ -4,10 +4,8 @@ PKG_VERSION=34f371c7735fc6fc8e714a74a7a73a61d3ed5633
PKG_LICENSE=BSD-1-Clause
MODULE_MAKEFILE := $(CURDIR)/Makefile.fatfs
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
@cp $(MODULE_MAKEFILE) $(PKG_BUILDDIR)/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,6 +3,8 @@ PKG_URL=https://github.com/basilfx/RIOT-gecko-sdk
PKG_VERSION=06b00b68333ea05db1c78fe6626dcfe005a80cb6
PKG_LICENSE=Zlib
include $(RIOTBASE)/pkg/pkg.mk
ifneq ($(CPU),efm32)
$(error This package can only be used with EFM32 CPUs)
endif
@ -11,9 +13,5 @@ ifneq (llvm,$(TOOLCHAIN))
CFLAGS += -Wno-int-in-bool-context
endif
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/dist
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/mitls/hacl-c
PKG_VERSION=aac05f5094fc92569169d5a2af54c12387160634
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/atomicobject/heatshrink.git
PKG_VERSION=7d419e1fa4830d0b919b9b6a91fe2fb786cf3280
PKG_LICENSE=ISC-License
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.heatshrink
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,7 +3,7 @@ PKG_URL=https://github.com/jerryscript-project/jerryscript.git
PKG_VERSION=6e94414f9c3ad9b77c4635a0ca9e796752a205f0
PKG_LICENSE=Apache-2.0
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-implicit-fallthrough
@ -14,5 +14,3 @@ endif
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.jerryscript all
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/zserge/jsmn
PKG_VERSION=6784c826d9674915a4d89649c6288e6aecb4110d
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.jsmn
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,10 +3,8 @@ PKG_URL = https://github.com/BLAKE2/libb2
PKG_VERSION = 60ea749837362c226e8501718f505ab138e5c19d # v0.98
PKG_LICENSE = CC0-1.0
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src \
-f $(RIOTPKG)/libb2/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,16 +3,14 @@ PKG_URL=https://github.com/obgm/libcoap
PKG_VERSION=ef41ce5d02d64cec0751882ae8fd95f6c32bc018
PKG_LICENSE=BSD-2-Clause
include $(RIOTBASE)/pkg/pkg.mk
# GCC 7.x fails on (intentional) fallthrough, thus disable implicit-fallthrough.
CFLAGS += -Wno-implicit-fallthrough
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += -Wno-format-nonliteral
endif
all:
"$(MAKE)" -C $(PKG_BUILDDIR)

View File

@ -3,10 +3,8 @@ PKG_URL=https://github.com/bergzand/libcose
PKG_VERSION=8b5f651c3203682a2d98121cd3e5c844cb2b4c36
PKG_LICENSE=LGPL
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.libcose
"$(MAKE)" -C $(PKG_BUILDDIR)/src/crypt -f $(CURDIR)/Makefile.libcose_crypt
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,10 +3,8 @@ PKG_VERSION := 7f9c966b5c473770dc93940e3e6e5323f3c1ad69
PKG_URL := https://github.com/PetteriAimonen/libfixmath
PKG_LICENSE := MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
$(Q)cp $(CURDIR)/Makefile.$(PKG_NAME) $(PKG_BUILDDIR)/$(PKG_NAME)/Makefile
$(Q)cp $(CURDIR)/Makefile.$(PKG_NAME)-unittests $(PKG_BUILDDIR)/unittests/Makefile
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,13 +3,11 @@ PKG_URL = https://github.com/jedisct1/libhydrogen
PKG_VERSION = 39eb529905ce118b674a7723c0d2b48074b9986d
PKG_LICENSE = ISC
include $(RIOTBASE)/pkg/pkg.mk
# This warning is triggered on non-32bit platforms
CFLAGS += -Wno-type-limits
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BUILDDIR) \
-f $(RIOTPKG)/libhydrogen/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -4,9 +4,7 @@ PKG_URL=https://github.com/ARMmbed/littlefs.git
PKG_VERSION=7e110b44c0e796dc56e2fe86587762d685653029
PKG_LICENSE=Apache-2.0
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.littlefs
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/leandrolanzieri/lora-serialization
PKG_VERSION=d88577a18706ea66431b5f037475b65f43fa88ca
PKG_LICENSE=LGPLv2.1
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -4,10 +4,8 @@ PKG_URL=https://github.com/lua/lua.git
PKG_VERSION=e354c6355e7f48e087678ec49e340ca0696725b1
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all: Makefile.lua
@cp Makefile.lua $(PKG_BUILDDIR)
"$(MAKE)" -C $(PKG_BUILDDIR) -f Makefile.lua
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -4,12 +4,14 @@ PKG_URL=https://git.savannah.nongnu.org/git/lwip.git
PKG_VERSION=159e31b689577dbf69cf0683bbaffbd71fa5ee10
PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
LWIP_MODULES = lwip_api lwip_core lwip_ipv4 lwip_ipv6 \
lwip_netif lwip_netif_ppp lwip_polarssl
LWIP_USEMODULE = $(filter $(LWIP_MODULES),$(USEMODULE))
LWIP_MODULE_MAKEFILE = $(RIOTBASE)/Makefile.base
.PHONY: all $(LWIP_MODULES)
.PHONY: $(LWIP_MODULES)
CFLAGS += -Wno-address
@ -40,5 +42,3 @@ lwip_netif_ppp:
lwip_polarssl:
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp/polarssl)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/kmackay/micro-ecc.git
PKG_VERSION=b6c0cdbe7d20af48b0c2a909a66ff00b093d1542
PKG_LICENSE=BSD-2-Clause
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/1248/microcoap.git
PKG_VERSION=ef272895925f0d4c563725fe0102966f544a0fdc
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -5,10 +5,8 @@ PKG_LICENSE=MIT
CFLAGS += -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-error
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
@mkdir -p $(PKG_BUILDDIR)/tmp
BUILD=$(PKG_BUILDDIR) "$(MAKE)" -C $(PKG_BUILDDIR)/ports/riot
include $(RIOTBASE)/pkg/pkg.mk
BUILD=$(PKG_BUILDDIR) "$(MAKE)" -C $(PKG_BUILDDIR)/ports/riot

View File

@ -3,10 +3,8 @@ PKG_URL=https://github.com/kosma/minmea
PKG_VERSION=ae4dd9442a9041345d5ef108f062e7e4ec6954f2
PKG_LICENSE=WTFPL
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
@cp Makefile.$(PKG_NAME) $(PKG_BUILDDIR)/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/LoupVaillant/Monocypher
PKG_VERSION=d9cc2aea29158971ed4b7dc074efdcb35e7183d5
PKG_LICENSE=CC-0
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
$(Q)"$(MAKE)" -C $(PKG_BUILDDIR)/src
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,10 +3,8 @@ PKG_URL = https://github.com/bergzand/nanocbor
PKG_VERSION = 3a672f79b2458a96393447e50a41174f741eadc5
PKG_LICENSE = LGPL-2.1
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all: git-download
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src \
-f $(RIOTPKG)/nanocbor/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/nanopb/nanopb
PKG_VERSION=493adf3616bee052649c63c473f8355630c2797f # nanopb-0.3.9.4
PKG_LICENSE=MIT
.PHONY: all
all: git-download
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.nanopb
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.nanopb

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/named-data-iot/ndn-riot
PKG_VERSION=34c5eb8adf198049f0a56048825b505c561a8874
PKG_LICENSE=LGPLv2.1
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,6 +3,8 @@ PKG_URL = https://github.com/apache/mynewt-nimble.git
PKG_VERSION = 946cfb7ff27fcf3adacebcd50c159b89d854fbf2
PKG_LICENSE = Apache-2.0
include $(RIOTBASE)/pkg/pkg.mk
TDIR = $(RIOTPKG)/$(PKG_NAME)
PDIR = $(PKG_BUILDDIR)
@ -86,5 +88,3 @@ nimble_scanlist:
nimble_scanner:
"$(MAKE)" -C $(TDIR)/scanner
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,6 +3,8 @@ PKG_URL=https://github.com/OLSR/OONF.git
PKG_VERSION=v0.3.0
PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
MODULE:=$(PKG_NAME)
# GCC 7.x fails on (intentional) fallthrough, thus disable implicit-fallthrough.
@ -10,8 +12,6 @@ CFLAGS += -Wno-implicit-fallthrough
COMBINED_ARCHIVE = $(BINDIR)/$(MODULE).a
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BUILDDIR)
"$(MAKE)" $(COMBINED_ARCHIVE)
@ -37,7 +37,6 @@ $(BINDIR)/$(MODULE).mri:
$(file >$@,$(call MRI_TEMPLATE,$(COMBINED_ARCHIVE),$(PARTIAL_ARCHIVES)))
@true
include $(RIOTBASE)/pkg/pkg.mk
ifneq (,$(filter -Wformat-nonliteral -Wformat=2, $(CFLAGS)))
CFLAGS += -Wno-format-nonliteral
endif

View File

@ -4,6 +4,8 @@ PKG_VERSION=thread-reference-20180926
PKG_LICENSE=BSD-3-Clause
PKG_BUILDDIR ?= $(PKGDIRBASE)/$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk
ifneq (,$(filter openthread-ftd,$(USEMODULE)))
TD = ftd
$(info Compile OpenThread for FTD device)
@ -23,8 +25,6 @@ OPENTHREAD_ARGS += $(CLI_ARG) $(JOINER_ARG) --enable-application-coap
CONFIG_FILE = OPENTHREAD_PROJECT_CORE_CONFIG_FILE='\"platform_config.h\"'
$(info $$OPENTHREAD_ARGS is [${OPENTHREAD_ARGS}])
.PHONY: all
OPENTHREAD_COMMON_FLAGS = -fdata-sections -ffunction-sections -Os
OPENTHREAD_COMMON_FLAGS += -Wno-implicit-fallthrough -Wno-unused-parameter
@ -48,5 +48,3 @@ all:
ifneq (,$(filter openthread-cli,$(USEMODULE)))
cp $(PKG_BUILDDIR)/output/lib/libopenthread-cli-$(TD).a ${BINDIR}/openthread-cli.a
endif
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/RIOT-OS/qDSA.git
PKG_VERSION=dd2392b0c81ce4187fd3e1e2d3e0a4767f75782e
PKG_LICENSE=PD
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/$(QDSA_IMPL)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,41 +3,38 @@ PKG_URL=https://github.com/relic-toolkit/relic.git
PKG_VERSION=0b0442a8218df8d309266923f2dd5b9ae3b318ce
PKG_LICENSE=LGPL-2.1
.PHONY: all ..cmake_version_supported
include $(RIOTBASE)/pkg/pkg.mk
.PHONY: ..cmake_version_supported
CMAKE_MINIMAL_VERSION = 3.6.0
CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-newline-eof
TOOLCHAIN_FILE=$(PKG_BUILDDIR)/xcompile-toolchain.cmake
TOOLCHAIN_FILE = $(PKG_BUILDDIR)/xcompile-toolchain.cmake
all: $(PKG_BUILDDIR)/Makefile
$(MAKE) -C $(PKG_BUILDDIR) && \
cp $(PKG_BUILDDIR)/lib/librelic_s.a $(BINDIR)/$(PKG_NAME).a
all: $(BINDIR)/$(PKG_NAME).a
$(BINDIR)/$(PKG_NAME).a: $(PKG_BUILDDIR)/lib/librelic_s.a
cp $< $@
$(PKG_BUILDDIR)/lib/librelic_s.a: $(PKG_BUILDDIR)/Makefile
$(MAKE) -C $(PKG_BUILDDIR)
# Pass 'COMP' with a target specific export to not have issues with the shell
# escaping evaluation.
COMP = $(filter-out -Werror -Werror=old-style-definition -Werror=strict-prototypes -std=gnu99,$(CFLAGS))
$(PKG_BUILDDIR)/Makefile: export COMP ?=
$(PKG_BUILDDIR)/Makefile: $(PKG_PREPARED) $(TOOLCHAIN_FILE) | ..cmake_version_supported
cmake -B$(PKG_BUILDDIR) -H$(PKG_BUILDDIR) \
-DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
-DCHECK=off -DTESTS=0 -DBENCH=0 -DSHLIB=off -Wno-dev $(RELIC_CONFIG_FLAGS)
$(PKG_BUILDDIR)/Makefile: $(TOOLCHAIN_FILE)
cd $(PKG_BUILDDIR) && \
cmake -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
-DCHECK=off -DTESTS=0 -DBENCH=0 -DSHLIB=off -Wno-dev $(RELIC_CONFIG_FLAGS) .
$(TOOLCHAIN_FILE): git-download
$(TOOLCHAIN_FILE): FORCE
$(RIOTTOOLS)/cmake/generate-xcompile-toolchain.sh > $(TOOLCHAIN_FILE)
git-download: | ..cmake_version_supported
..cmake_version_supported:
@ # Remove '-rcX' from version as they are not well handled
$(Q)\
CMAKE_VERSION=$$(cmake --version | sed -n '1 {s/cmake version //;s/-rc.*//;p;}'); \
$(RIOTTOOLS)/has_minimal_version/has_minimal_version.sh "$${CMAKE_VERSION}" "$(CMAKE_MINIMAL_VERSION)" cmake
clean::
@rm -rf $(BINDIR)/$(PKG_NAME).a
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,7 +3,7 @@ PKG_URL=https://github.com/Lora-net/LoRaMac-node.git
PKG_VERSION=1cdd9ccec4c9f05b616e7112059be4a9e358c571
PKG_LICENSE=BSD-3-Clause
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
@cp Makefile.loramac $(PKG_BUILDDIR)/Makefile
@ -12,5 +12,3 @@ all:
@cp Makefile.loramac_crypto $(PKG_BUILDDIR)/src/system/crypto/Makefile
@cp Makefile.loramac_arch $(PKG_BUILDDIR)/src/boards/mcu/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/pellepl/spiffs.git
PKG_VERSION=287148c46587089c4543a21eef2d6e9e14b88364
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.spiffs
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/fabriziop/TalkingLED
PKG_VERSION=8ae4f2d0b736aa338f24e097dbaf876fbb385dbd
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.talking_leds
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL = https://gitlab.com/mtausig/tiny-asn1.git
PKG_VERSION = 5155ee9c8f0908af955ca2026c349ba8a5e12bc2
PKG_LICENSE = LGPL-3
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -4,9 +4,7 @@ PKG_URL=https://github.com/intel/tinycbor
PKG_VERSION=d94ca09aa91f5b3c581527aa8bca179a82b79874
PKG_LICENSE=MIT
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.tinycbor
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,10 +3,8 @@ PKG_URL=https://github.com/01org/tinycrypt
PKG_VERSION=6a22712bebbf2fc60d9fc6192dddefd5ad1933e3
PKG_LICENSE=BSD-3-Clause
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/lib/source/ \
-f $(RIOTPKG)/tinycrypt/Makefile.$(PKG_NAME)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,21 +3,19 @@ PKG_URL=https://github.com/eclipse/tinydtls.git
PKG_VERSION=7a0420bfe3c041789cc0fe87822832f2fd12d0c3
PKG_LICENSE=EPL-1.0,EDL-1.0
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-implicit-fallthrough
# following is require due to known issue with newlib 2.4.x, see bug report:
# http://lists-archives.com/cygwin/97008-gettimeofday-not-defined.html
CFLAGS += -D_XOPEN_SOURCE=600
.PHONY: all
all:
@cp $(PKG_BUILDDIR)/Makefile.riot $(PKG_BUILDDIR)/Makefile
@cp $(PKG_BUILDDIR)/aes/Makefile.riot $(PKG_BUILDDIR)/aes/Makefile
@cp $(PKG_BUILDDIR)/ecc/Makefile.riot $(PKG_BUILDDIR)/ecc/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk
ifeq (llvm,$(TOOLCHAIN))
CFLAGS += -Wno-format-nonliteral
endif

View File

@ -3,11 +3,8 @@ PKG_URL=https://github.com/mattconte/tlsf
PKG_VERSION=a1f743ffac0305408b39e791e0ffb45f6d9bc777
PKG_LICENSE=BSD
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all: Makefile.tlsf
@cp Makefile.tlsf $(PKG_BUILDDIR)/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,9 +3,7 @@ PKG_URL=https://github.com/RIOT-OS/tweetnacl
PKG_VERSION=7ea05c7098a16c87fa66e9166ce301666f3f2623
PKG_LICENSE=PD
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
$(Q)"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.riot
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,14 +3,12 @@ PKG_URL=https://github.com/olikraus/u8g2
PKG_VERSION=f08ff974c03e5c848bc5d2ae3fddb6a97897881a
PKG_LICENSE=BSD-2-Clause
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
cp $(RIOTBASE)/pkg/u8g2/src/Makefile $(PKG_BUILDDIR)/Makefile
cp $(RIOTBASE)/pkg/u8g2/src/csrc/Makefile $(PKG_BUILDDIR)/csrc/Makefile
cp $(RIOTBASE)/pkg/u8g2/src/csrc/u8g2_riotos.c $(PKG_BUILDDIR)/csrc/u8g2_riotos.c
cp $(RIOTBASE)/pkg/u8g2/src/sys/sdl/common/Makefile $(PKG_BUILDDIR)/sys/sdl/common/Makefile
cp $(RIOTBASE)/pkg/u8g2/src/sys/utf8/common/Makefile $(PKG_BUILDDIR)/sys/utf8/common/Makefile
cp -u src/Makefile $(PKG_BUILDDIR)/Makefile
cp -u src/csrc/Makefile $(PKG_BUILDDIR)/csrc/Makefile
cp -u src/csrc/u8g2_riotos.c $(PKG_BUILDDIR)/csrc/u8g2_riotos.c
cp -u src/sys/sdl/common/Makefile $(PKG_BUILDDIR)/sys/sdl/common/Makefile
cp -u src/sys/utf8/common/Makefile $(PKG_BUILDDIR)/sys/utf8/common/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,10 +3,12 @@ PKG_URL=https://github.com/adamdunkels/ubasic
PKG_VERSION=cc07193c231e21ecb418335aba5b199a08d4685c
PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
UBASIC_MODULES = ubasic_tests
UBASIC_USEMODULE = $(filter $(UBASIC_MODULES),$(USEMODULE))
.PHONY: all ubasic ubasic%
.PHONY: ubasic ubasic%
all: ubasic
@ -17,5 +19,3 @@ ubasic: $(UBASIC_USEMODULE)
ubasic%:
$(call make_module,$@,$(PKG_BUILDDIR))
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,13 +3,11 @@ PKG_URL=https://github.com/olikraus/ucglib
PKG_VERSION=bf48515702dd7c87cbacdd17989738f33f003df2
PKG_LICENSE=BSD-2-Clause
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
cp $(RIOTBASE)/pkg/ucglib/src/Makefile $(PKG_BUILDDIR)/Makefile
cp $(RIOTBASE)/pkg/ucglib/src/csrc/Makefile $(PKG_BUILDDIR)/csrc/Makefile
cp $(RIOTBASE)/pkg/ucglib/src/csrc/ucg_riotos.c $(PKG_BUILDDIR)/csrc/ucg_riotos.c
cp $(RIOTBASE)/pkg/ucglib/src/sys/sdl/dev/Makefile $(PKG_BUILDDIR)/sys/sdl/dev/Makefile
cp -u src/Makefile $(PKG_BUILDDIR)/Makefile
cp -u src/csrc/Makefile $(PKG_BUILDDIR)/csrc/Makefile
cp -u src/csrc/ucg_riotos.c $(PKG_BUILDDIR)/csrc/ucg_riotos.c
cp -u src/sys/sdl/dev/Makefile $(PKG_BUILDDIR)/sys/sdl/dev/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,12 +3,10 @@ PKG_URL=https://github.com/smlng/uMorse
PKG_VERSION=1dc14abdba22cca2f7efc053b2bce327bc7db97e
PKG_LICENSE=MIT
CFLAGS += -D_XOPEN_SOURCE=600
include $(RIOTBASE)/pkg/pkg.mk
.PHONY: all
CFLAGS += -D_XOPEN_SOURCE=600
all:
@cp Makefile.umorse $(PKG_BUILDDIR)/Makefile
"$(MAKE)" -C $(PKG_BUILDDIR)
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -5,12 +5,9 @@ PKG_LICENSE=Apache2.0
PKG_BASEDIR = $(PKG_BUILDDIR)/src/uTensor
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BASEDIR)/core -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BASEDIR)/util -f $(CURDIR)/Makefile.$(PKG_NAME).util
"$(MAKE)" -C $(PKG_BASEDIR)/ops -f $(CURDIR)/Makefile.$(PKG_NAME).ops
include $(RIOTBASE)/pkg/pkg.mk

View File

@ -3,12 +3,13 @@ PKG_URL=https://github.com/eclipse/wakaama.git
PKG_VERSION=da74b3c91570b9716fbb424e90935806b2b29814
PKG_LICENSE=EDL-1.0,EPL-1.0
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all: patch
all:
"$(MAKE)" -C $(PKG_BUILDDIR)
patch: git-download
$(PKG_PREPARED): $(PKG_BUILDDIR)/copied
$(PKG_BUILDDIR)/copied: $(PKG_PATCHED) FORCE
mkdir -p "$(PKG_BUILDDIR)"
# copy the Wakaama core files
cp $(PKG_BUILDDIR)/core/*.c $(PKG_BUILDDIR)/core/*.h $(PKG_BUILDDIR)
@ -20,6 +21,4 @@ patch: git-download
cp $(PKG_BUILDDIR)/examples/client/object_access_control.c $(PKG_BUILDDIR)
echo 'MODULE:=wakaama' > $(PKG_BUILDDIR)/Makefile
echo 'include $$(RIOTBASE)/Makefile.base' >> $(PKG_BUILDDIR)/Makefile
include $(RIOTBASE)/pkg/pkg.mk
echo 'include $$(RIOTBASE)/Makefile.base' >> $(PKG_BUILDDIR)/Makefile

View File

@ -1,11 +1,10 @@
PKG_NAME=wolfssl
PKG_URL=https://github.com/wolfssl/wolfssl.git
# Current version: v4.1.0+
PKG_VERSION=eaeaaf12c11dd52ab0cd6833252ed559656e9826
PKG_VERSION=eaeaaf12c11dd52ab0cd6833252ed559656e9826 # v4.1.0+
PKG_LICENSE=GPLv2
.PHONY: all
include $(RIOTBASE)/pkg/pkg.mk
all: # Nothing to do here when building
prepare:
@ -14,5 +13,3 @@ prepare:
touch $(PKG_BUILDDIR)/wolfssl.a
cp Makefile.wolfcrypt-test $(PKG_BUILDDIR)/wolfcrypt/test/Makefile
cp Makefile.wolfcrypt-benchmark $(PKG_BUILDDIR)/wolfcrypt/benchmark/Makefile
include $(RIOTBASE)/pkg/pkg.mk