mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #14289 from aabadie/pr/pkg/global_pkg_dir
pkg: store packages sources in a global package directory
This commit is contained in:
commit
c0925294d8
6
Makefile
6
Makefile
@ -22,7 +22,11 @@ clean:
|
||||
@echo "Cleaning all build products for the current board"
|
||||
@for dir in $(APPLICATION_DIRS); do "$(MAKE)" -C$$dir clean; done
|
||||
|
||||
distclean: docclean
|
||||
pkg-clean:
|
||||
@echo "Cleaning all package sources"
|
||||
rm -rf build/pkg
|
||||
|
||||
distclean: docclean pkg-clean
|
||||
@echo "Cleaning all build products"
|
||||
@for dir in $(APPLICATION_DIRS); do "$(MAKE)" -C$$dir distclean; done
|
||||
|
||||
|
@ -45,7 +45,7 @@ BUILD_DIR ?= $(RIOTBASE)/build
|
||||
APPDIR ?= $(CURDIR)
|
||||
BINDIRBASE ?= $(APPDIR)/bin
|
||||
BINDIR ?= $(BINDIRBASE)/$(BOARD)
|
||||
PKGDIRBASE ?= $(BINDIRBASE)/pkg/$(BOARD)
|
||||
PKGDIRBASE ?= $(RIOTBASE)/build/pkg
|
||||
DLCACHE ?= $(RIOTTOOLS)/dlcache/dlcache.sh
|
||||
DLCACHE_DIR ?= $(RIOTBASE)/.dlcache
|
||||
|
||||
|
8
dist/tools/bossa-1.8/Makefile
vendored
8
dist/tools/bossa-1.8/Makefile
vendored
@ -2,14 +2,16 @@ PKG_NAME = bossa
|
||||
PKG_URL = https://github.com/shumatech/BOSSA
|
||||
PKG_VERSION = 26154375695f345491bba158d57177aa231d6765
|
||||
PKG_LICENSE = BSD-3-Clause
|
||||
PKG_BUILDDIR = $(CURDIR)/bin
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@echo "[INFO] compiling bossac from source now"
|
||||
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_BUILDDIR) strip-bossac
|
||||
@mv $(PKG_BUILDDIR)/bossac $(CURDIR)/bossac
|
||||
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILD_DIR) -C $(PKG_BUILD_DIR) strip-bossac
|
||||
@mv $(PKG_BUILD_DIR)/bossac $(CURDIR)/bossac
|
||||
|
||||
distclean::
|
||||
@rm -f $(CURDIR)/bossac
|
||||
|
8
dist/tools/bossa-1.9/Makefile
vendored
8
dist/tools/bossa-1.9/Makefile
vendored
@ -2,14 +2,16 @@ PKG_NAME = bossa
|
||||
PKG_URL = https://github.com/shumatech/BOSSA
|
||||
PKG_VERSION = 1.9.1
|
||||
PKG_LICENSE = BSD-3-Clause
|
||||
PKG_BUILDDIR = $(CURDIR)/bin
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@echo "[INFO] compiling bossac from source now"
|
||||
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_BUILDDIR) strip-bossac
|
||||
@mv $(PKG_BUILDDIR)/bossac $(CURDIR)/bossac
|
||||
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILD_DIR) -C $(PKG_BUILD_DIR) strip-bossac
|
||||
@mv $(PKG_BUILD_DIR)/bossac $(CURDIR)/bossac
|
||||
|
||||
distclean::
|
||||
@rm -f $(CURDIR)/bossac
|
||||
|
8
dist/tools/bossa-nrf52/Makefile
vendored
8
dist/tools/bossa-nrf52/Makefile
vendored
@ -2,14 +2,16 @@ PKG_NAME = bossa
|
||||
PKG_URL = https://github.com/arduino/BOSSA
|
||||
PKG_VERSION = 52e0a4a28721296e64083de7780b30580e0fad16
|
||||
PKG_LICENSE = BSD-3-Clause
|
||||
PKG_BUILDDIR = $(CURDIR)/bin
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@echo "[INFO] compiling bossac from source now"
|
||||
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_BUILDDIR) strip-bossac
|
||||
@mv $(PKG_BUILDDIR)/bossac $(CURDIR)/bossac
|
||||
@env -u CXX COMMON_CXXFLAGS="-std=c++11" $(MAKE) BINDIR=$(PKG_BUILD_DIR) -C $(PKG_BUILD_DIR) strip-bossac
|
||||
@mv $(PKG_BUILD_DIR)/bossac $(CURDIR)/bossac
|
||||
|
||||
distclean::
|
||||
@rm -f $(CURDIR)/bossac
|
||||
|
2
dist/tools/cc2538-bsl/Makefile
vendored
2
dist/tools/cc2538-bsl/Makefile
vendored
@ -7,4 +7,4 @@ PKG_BUILDDIR=$(CURDIR)/bin
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
cp $(PKG_BUILDDIR)/cc2538-bsl.py .
|
||||
cp $(PKG_SOURCE_DIR)/cc2538-bsl.py .
|
||||
|
8
dist/tools/edbg/Makefile
vendored
8
dist/tools/edbg/Makefile
vendored
@ -2,7 +2,9 @@ PKG_NAME=edbg
|
||||
PKG_URL=https://github.com/ataradov/edbg
|
||||
PKG_VERSION=99d15460fcff723f73b16c29c8ca14bff4b33b20
|
||||
PKG_LICENSE=BSD-3-Clause
|
||||
PKG_BUILDDIR=$(CURDIR)/bin
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
@ -10,5 +12,5 @@ all:
|
||||
# Start edbg build in a clean environment, so variables set by RIOT's build process
|
||||
# for cross compiling a specific target platform are reset and edbg can
|
||||
# be built cleanly for the native platform.
|
||||
env -i PATH="$(PATH)" TERM="$(TERM)" "$(MAKE)" -C "$(PKG_BUILDDIR)"
|
||||
mv $(PKG_BUILDDIR)/edbg .
|
||||
env -i PATH="$(PATH)" TERM="$(TERM)" "$(MAKE)" -C "$(PKG_BUILD_DIR)"
|
||||
mv $(PKG_BUILD_DIR)/edbg .
|
||||
|
2
dist/tools/flatc/.gitignore
vendored
2
dist/tools/flatc/.gitignore
vendored
@ -1,2 +1,2 @@
|
||||
flatc
|
||||
bin
|
||||
bin/
|
||||
|
15
dist/tools/flatc/Makefile
vendored
15
dist/tools/flatc/Makefile
vendored
@ -1,16 +1,13 @@
|
||||
PKG_NAME=flatc
|
||||
PKG_NAME=flatbuffers
|
||||
PKG_URL=https://github.com/google/flatbuffers
|
||||
PKG_VERSION=9e7e8cbe9f675123dd41b7c62868acad39188cae
|
||||
PKG_LICENSE=Apache2.0
|
||||
|
||||
PKG_BUILDDIR=$(CURDIR)/bin
|
||||
|
||||
FLATC_SOURCE_DIR = $(PKG_BUILDDIR)
|
||||
FLATC_BUILD_DIR = $(PKG_BUILDDIR)/build
|
||||
|
||||
# manually set some RIOT env vars, so this Makefile can be called stand-alone
|
||||
RIOTBASE ?= $(CURDIR)/../../..
|
||||
RIOTTOOLS ?= $(CURDIR)/..
|
||||
PKGDIRBASE ?= $(RIOTBASE)/build/pkg
|
||||
PKG_BUILD_DIR ?= $(CURDIR)/bin
|
||||
|
||||
CMAKE_OPTIONS = \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
@ -26,9 +23,9 @@ endif
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@env -i PATH="$(PATH)" cmake -G "Unix Makefiles" $(CMAKE_OPTIONS) -H"$(FLATC_SOURCE_DIR)" -B"$(FLATC_BUILD_DIR)"
|
||||
"$(MAKE)" -C "$(FLATC_BUILD_DIR)"
|
||||
@mv "$(FLATC_BUILD_DIR)"/flatc $(CURDIR)/flatc
|
||||
@env -i PATH="$(PATH)" cmake -G "Unix Makefiles" $(CMAKE_OPTIONS) -H"$(PKG_SOURCE_DIR)" -B"$(PKG_BUILD_DIR)"
|
||||
"$(MAKE)" -C "$(PKG_BUILD_DIR)"
|
||||
@mv "$(PKG_BUILD_DIR)"/flatc $(CURDIR)/flatc
|
||||
|
||||
distclean::
|
||||
@rm -f $(CURDIR)/flatc
|
||||
|
7
dist/tools/kconfiglib/Makefile
vendored
7
dist/tools/kconfiglib/Makefile
vendored
@ -2,15 +2,14 @@ PKG_NAME=kconfiglib
|
||||
PKG_URL=https://github.com/ulfalizer/Kconfiglib
|
||||
PKG_VERSION=82f59179b1b35fcd8b6d188453b283599ea70518
|
||||
PKG_LICENSE=ISC
|
||||
PKG_BUILDDIR=$(CURDIR)/bin
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
$(Q)cp $(PKG_BUILDDIR)/kconfiglib.py $(PKG_BUILDDIR)/menuconfig.py \
|
||||
$(PKG_BUILDDIR)/genconfig.py $(PKG_BUILDDIR)/examples/merge_config.py \
|
||||
$(Q)cp $(PKG_SOURCE_DIR)/kconfiglib.py $(PKG_SOURCE_DIR)/menuconfig.py \
|
||||
$(PKG_SOURCE_DIR)/genconfig.py $(PKG_SOURCE_DIR)/examples/merge_config.py \
|
||||
.
|
||||
|
||||
remove:
|
||||
$(Q)$(RM) -r $(PKG_BUILDDIR) kconfiglib.py menuconfig.py genconfig.py \
|
||||
$(Q)$(RM) -r $(PKG_SOURCE_DIR) kconfiglib.py menuconfig.py genconfig.py \
|
||||
merge_config.py
|
||||
|
18
dist/tools/mosquitto_rsmb/Makefile
vendored
18
dist/tools/mosquitto_rsmb/Makefile
vendored
@ -2,32 +2,34 @@ PKG_NAME = mosquitto_rsmb
|
||||
PKG_URL = https://github.com/eclipse/mosquitto.rsmb
|
||||
PKG_VERSION = 9b99a3be9a26635b93aec8fa2ed744e8c49e7262
|
||||
PKG_LICENSE = EPL-1.0
|
||||
PKG_BUILDDIR = $(CURDIR)/bin
|
||||
|
||||
# set default configuration file
|
||||
RSMB_CFG ?= $(CURDIR)/config.cnf
|
||||
|
||||
# manually set some RIOT env vars, so this Makefile can be called stand-alone
|
||||
RIOTBASE ?= $(CURDIR)/../../..
|
||||
RIOTTOOLS ?= $(CURDIR)/..
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
# Include pkg.mk after setting RIOTBASE otherwise it is not found when this
|
||||
# Makefile is called stand-alone
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
# set default configuration file
|
||||
RSMB_CFG ?= $(CURDIR)/config.cnf
|
||||
|
||||
all:
|
||||
# Start mosquitto_rsmb build in a clean environment, so variables set by RIOT's
|
||||
# build process for cross compiling a specific target platform are reset and
|
||||
# mosquitto_rsmb can be built cleanly for the host platform.
|
||||
env -i PATH=$(PATH) TERM=$(TERM) "$(MAKE)" -C $(PKG_BUILDDIR)/rsmb/src
|
||||
cp $(PKG_BUILDDIR)/rsmb/src/broker_mqtts $(CURDIR)/mosquitto_rsmb
|
||||
cp $(PKG_BUILDDIR)/rsmb/src/Messages.1.* $(CURDIR)/
|
||||
env -i PATH=$(PATH) TERM=$(TERM) "$(MAKE)" -C $(PKG_BUILD_DIR)/rsmb/src
|
||||
cp $(PKG_BUILD_DIR)/rsmb/src/broker_mqtts $(CURDIR)/mosquitto_rsmb
|
||||
cp $(PKG_BUILD_DIR)/rsmb/src/Messages.1.* $(CURDIR)/
|
||||
|
||||
run:
|
||||
@$(CURDIR)/mosquitto_rsmb $(RSMB_CFG)
|
||||
|
||||
clean::
|
||||
@rm -rf $(CURDIR)/bin
|
||||
@rm -rf $(PKG_BUILD_DIR)
|
||||
@rm -f $(CURDIR)/mosquitto_rsmb
|
||||
@rm -f $(CURDIR)/Messages.1.*
|
||||
@rm -f $(CURDIR)/FFDC.CWNAN.*.dmp
|
||||
|
6
dist/tools/pic32prog/Makefile
vendored
6
dist/tools/pic32prog/Makefile
vendored
@ -4,6 +4,8 @@ PKG_VERSION = b9f8db3b352804392b02b42475fc42874ac8bf04
|
||||
PKG_LICENSE = GPL-2
|
||||
PKG_BUILDDIR = bin
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
# Building it requires some dependencies, on ubuntu:
|
||||
@ -12,8 +14,8 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@echo "[INFO] compiling pic32prog from source now"
|
||||
@env -i PATH=$(PATH) TERM=$(TERM) make -C $(PKG_BUILDDIR)
|
||||
@mv $(PKG_BUILDDIR)/pic32prog pic32prog
|
||||
@env -i PATH=$(PATH) TERM=$(TERM) make -C $(PKG_BUILD_DIR)
|
||||
@mv $(PKG_BUILD_DIR)/pic32prog pic32prog
|
||||
|
||||
distclean::
|
||||
@rm -f pic32prog
|
||||
|
6
dist/tools/setsid/Makefile
vendored
6
dist/tools/setsid/Makefile
vendored
@ -4,12 +4,14 @@ PKG_VERSION = e5b851df41591021baf5cf88d4e41572baf8e08b
|
||||
PKG_LICENSE = BSD-2-Clause
|
||||
PKG_BUILDDIR = $(CURDIR)/bin
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@echo "[INFO] compiling setsid from source now"
|
||||
$(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_BUILDDIR)
|
||||
@mv $(PKG_BUILDDIR)/setsid $(CURDIR)/setsid
|
||||
$(MAKE) BINDIR=$(PKG_BUILDDIR) -C $(PKG_SOURCE_DIR)
|
||||
@mv $(PKG_SOURCE_DIR)/setsid $(CURDIR)/setsid
|
||||
|
||||
distclean::
|
||||
@rm -f $(CURDIR)/setsid
|
||||
|
7
dist/tools/teensy-loader-cli/Makefile
vendored
7
dist/tools/teensy-loader-cli/Makefile
vendored
@ -1,6 +1,5 @@
|
||||
PKG_NAME=teensy-loader-cli
|
||||
PKG_LICENSE=GPL-3
|
||||
PKG_BUILDDIR=$(CURDIR)/bin
|
||||
|
||||
# get sources from repository
|
||||
ifeq ($(OS),Darwin)
|
||||
@ -12,8 +11,10 @@ else
|
||||
PKG_VERSION=76921edbdd81ae99b869b104404c16c06b0a266f
|
||||
endif
|
||||
|
||||
PKG_SOURCE_DIR = $(CURDIR)/bin
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
env -i PATH=$(PATH) TERM=$(TERM) "$(MAKE)" -C $(PKG_BUILDDIR)
|
||||
mv $(PKG_BUILDDIR)/teensy_loader_cli ./teensy_loader
|
||||
env -i PATH=$(PATH) TERM=$(TERM) "$(MAKE)" -C $(PKG_SOURCE_DIR)
|
||||
mv $(PKG_SOURCE_DIR)/teensy_loader_cli ./teensy_loader
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE= # license of the package
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
$(MAKE) -C $(CURDIR)/$(PKG_NAME)
|
||||
$(MAKE) -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -5,7 +5,7 @@ PKG_EXT = zip
|
||||
PKG_LICENSE = PD
|
||||
PKG_SHA512 = dbfb4285837ab2ea3d99c448b22877cc7a139ccbaebb1de367e2bec1fd562fe629b389d86603915448078b8fd7e631c8fc9a7d126eb889a1ba0c17611369b190
|
||||
|
||||
PKG_BUILDDIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
||||
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
||||
PKG_ZIPFILE = $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||
|
||||
ifneq ($(RIOTBASE),)
|
||||
@ -14,12 +14,12 @@ endif
|
||||
|
||||
.PHONY: all clean distclean
|
||||
|
||||
prepare: $(PKG_BUILDDIR)/
|
||||
prepare: $(PKG_SOURCE_DIR)/
|
||||
|
||||
all: $(PKG_BUILDDIR)/
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
all: $(PKG_SOURCE_DIR)/
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
||||
$(PKG_BUILDDIR)/: $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||
$(PKG_SOURCE_DIR)/: $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||
test "$(PKG_SHA512) $(PKG_ZIPFILE)" = "$$(sha512sum "${PKG_ZIPFILE}")"
|
||||
$(Q)$(UNZIP_HERE) -D -d $(PKGDIRBASE) $<
|
||||
|
||||
@ -29,7 +29,7 @@ $(PKG_ZIPFILE):
|
||||
|
||||
clean::
|
||||
# Reset package to checkout state.
|
||||
rm -rf $(PKG_BUILDDIR)
|
||||
rm -rf $(PKG_SOURCE_DIR)
|
||||
|
||||
distclean::
|
||||
rm -rf $(PKG_BUILDDIR) $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||
rm -rf $(PKG_SOURCE_DIR) $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=LGPLv2.1
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -7,9 +7,6 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
.PHONY: ..cmake_version_supported
|
||||
|
||||
CCNLITE_SOURCE_DIR = $(PKG_BUILDDIR)
|
||||
CCNLITE_BUILD_DIR = $(PKG_BUILDDIR)/build
|
||||
|
||||
CMAKE_MINIMAL_VERSION = 3.6.0
|
||||
|
||||
RIOT_CFLAGS = $(INCLUDES)
|
||||
@ -18,18 +15,18 @@ ifeq (llvm,$(TOOLCHAIN))
|
||||
RIOT_CFLAGS += -Wno-char-subscripts
|
||||
endif
|
||||
|
||||
TOOLCHAIN_FILE = $(CCNLITE_SOURCE_DIR)/xcompile-toolchain.cmake
|
||||
TOOLCHAIN_FILE = $(PKG_SOURCE_DIR)/xcompile-toolchain.cmake
|
||||
|
||||
all: $(BINDIR)/ccn-lite.a
|
||||
|
||||
$(BINDIR)/ccn-lite.a: $(CCNLITE_BUILD_DIR)/lib/libccnl-riot.a
|
||||
$(BINDIR)/ccn-lite.a: $(PKG_BUILD_DIR)/lib/libccnl-riot.a
|
||||
cp $< $@
|
||||
|
||||
$(CCNLITE_BUILD_DIR)/lib/libccnl-riot.a: $(CCNLITE_BUILD_DIR)/Makefile
|
||||
$(MAKE) -C $(CCNLITE_BUILD_DIR)
|
||||
$(PKG_BUILD_DIR)/lib/libccnl-riot.a: $(PKG_BUILD_DIR)/Makefile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
|
||||
$(CCNLITE_BUILD_DIR)/Makefile: $(PKG_PREPARED) $(TOOLCHAIN_FILE) | ..cmake_version_supported
|
||||
cmake -B$(CCNLITE_BUILD_DIR) -H$(CCNLITE_SOURCE_DIR)/src \
|
||||
$(PKG_BUILD_DIR)/Makefile: $(PKG_PREPARED) $(TOOLCHAIN_FILE) | ..cmake_version_supported
|
||||
cmake -B$(PKG_BUILD_DIR) -H$(PKG_SOURCE_DIR)/src \
|
||||
-DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
|
||||
-DCCNL_RIOT=1 -DRIOT_CFLAGS="$(RIOT_CFLAGS)" -DBUILD_TESTING=OFF
|
||||
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=CC-0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.cifra
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/Makefile.cifra
|
||||
|
@ -8,4 +8,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -Wno-strict-aliasing -Wno-unused-parameter
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME) all
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.$(PKG_NAME) all
|
||||
|
@ -7,4 +7,4 @@ CFLAGS += -Wno-strict-aliasing -Wno-unused-parameter
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
@ -9,4 +9,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -DCBOR_ALIGN_READS
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -8,9 +8,6 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
.PHONY: all..cmake_version_supported
|
||||
|
||||
CRYPTOAUTHLIB_SOURCE_DIR = $(PKG_BUILDDIR)
|
||||
CRYPTOAUTHLIB_BUILD_DIR = $(PKG_BUILDDIR)/build
|
||||
|
||||
CMAKE_MINIMAL_VERSION = 3.6.0
|
||||
|
||||
CFLAGS += $(INCLUDES)
|
||||
@ -19,7 +16,7 @@ CFLAGS += -Wno-type-limits -Wno-strict-aliasing -Wno-unused-variable -DATCA_HAL_
|
||||
CFLAGS += -Wno-unused-parameter -Wno-sign-compare -Wno-overflow -Wno-pointer-to-int-cast
|
||||
CFLAGS += -Wno-char-subscripts
|
||||
|
||||
TOOLCHAIN_FILE=$(CRYPTOAUTHLIB_SOURCE_DIR)/xcompile-toolchain.cmake
|
||||
TOOLCHAIN_FILE=$(PKG_SOURCE_DIR)/xcompile-toolchain.cmake
|
||||
|
||||
ifneq (,$(filter $(PKG_TEST_NAME),$(USEMODULE)))
|
||||
all: cryptoauth build_tests
|
||||
@ -27,25 +24,25 @@ else
|
||||
all: cryptoauth
|
||||
endif
|
||||
|
||||
cryptoauth: $(CRYPTOAUTHLIB_BUILD_DIR)/Makefile
|
||||
$(MAKE) -C $(CRYPTOAUTHLIB_BUILD_DIR)
|
||||
cp $(CRYPTOAUTHLIB_BUILD_DIR)/libcryptoauth.a $(BINDIR)/$(PKG_NAME).a
|
||||
cryptoauth: $(PKG_BUILD_DIR)/Makefile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
cp $(PKG_BUILD_DIR)/libcryptoauth.a $(BINDIR)/$(PKG_NAME).a
|
||||
|
||||
$(CRYPTOAUTHLIB_BUILD_DIR)/Makefile: $(TOOLCHAIN_FILE)
|
||||
$(PKG_BUILD_DIR)/Makefile: $(TOOLCHAIN_FILE)
|
||||
cmake -DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
|
||||
-Wno-dev \
|
||||
-DATCA_HAL_I2C:BOOL=TRUE \
|
||||
-B$(CRYPTOAUTHLIB_BUILD_DIR) \
|
||||
-H$(CRYPTOAUTHLIB_SOURCE_DIR)/lib
|
||||
-B$(PKG_BUILD_DIR) \
|
||||
-H$(PKG_SOURCE_DIR)/lib
|
||||
|
||||
$(TOOLCHAIN_FILE): git-download
|
||||
$(RIOTTOOLS)/cmake/generate-xcompile-toolchain.sh > $(TOOLCHAIN_FILE)
|
||||
|
||||
build_tests:
|
||||
"$(MAKE)" -C $(CRYPTOAUTHLIB_SOURCE_DIR)/test -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)
|
||||
"$(MAKE)" -C $(CRYPTOAUTHLIB_SOURCE_DIR)/test/jwt -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)_jwt
|
||||
"$(MAKE)" -C $(CRYPTOAUTHLIB_SOURCE_DIR)/test/tng -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)_tng
|
||||
"$(MAKE)" -C $(CRYPTOAUTHLIB_SOURCE_DIR)/test/atcacert -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)_atcacert
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/test -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/test/jwt -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)_jwt
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/test/tng -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)_tng
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/test/atcacert -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_TEST_NAME)_atcacert
|
||||
|
||||
git-download: | ..cmake_version_supported
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
PKG_BUILDDIR ?= $(PKGDIRBASE)/cryptoauthlib
|
||||
PKG_TESTINCLDIR = $(PKG_BUILDDIR)/test
|
||||
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/cryptoauthlib
|
||||
PKG_TESTINCLDIR = $(PKG_SOURCE_DIR)/test
|
||||
|
||||
INCLUDES += -I$(PKG_BUILDDIR)
|
||||
INCLUDES += -I$(PKG_BUILDDIR)/lib
|
||||
INCLUDES += -I$(PKG_BUILDDIR)/app
|
||||
INCLUDES += -I$(PKG_SOURCE_DIR)
|
||||
INCLUDES += -I$(PKG_SOURCE_DIR)/lib
|
||||
INCLUDES += -I$(PKG_SOURCE_DIR)/app
|
||||
INCLUDES += -I$(RIOTPKG)/cryptoauthlib/include
|
||||
|
||||
DIRS += $(RIOTPKG)/cryptoauthlib/contrib
|
||||
|
@ -14,6 +14,15 @@
|
||||
* INCLUDE += $(RIOTPKG)/<pkg_name>/...
|
||||
* ~~~~~~~~
|
||||
*
|
||||
* When the package can be build out-of-source, the source code of external
|
||||
* packages is fetched in a global location in
|
||||
* `$(RIOTBASE)/build/pkg/$(PKG_NAME)`.
|
||||
* When out-of-source build is not possible (for example because the package
|
||||
* build system doesn't allow it), the source code is fetch in the build
|
||||
* directory of the application under `$(BINDIR)/pkg/$(PKG_NAME)`
|
||||
* and is the same as the build directory (this is the case for micropython
|
||||
* and openthread packages).
|
||||
*
|
||||
* Porting an external library
|
||||
* ===========================
|
||||
* Structure of a package
|
||||
|
@ -12,4 +12,4 @@ endif
|
||||
.PHONY: all
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -19,11 +19,11 @@ EMB6_SUBMODULES:=$(filter-out emb6_contrib \
|
||||
emb6_sock_%,$(filter emb6_%,$(USEMODULE)))
|
||||
|
||||
all: $(EMB6_SUBMODULES)
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)
|
||||
|
||||
# Rule for all submodules
|
||||
emb6_%:
|
||||
"$(MAKE)" -C $(dir $(shell grep -lR "MODULE.*=.*\<$@\>" $(PKG_BUILDDIR)))
|
||||
"$(MAKE)" -C $(dir $(shell grep -lR "MODULE.*=.*\<$@\>" $(PKG_SOURCE_DIR)))
|
||||
|
||||
ifeq (llvm,$(TOOLCHAIN))
|
||||
CFLAGS += -Wno-tautological-compare
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=BSD-1-Clause
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -14,4 +14,4 @@ ifneq (llvm,$(TOOLCHAIN))
|
||||
endif
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/dist
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/dist
|
||||
|
@ -8,4 +8,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -DKRML_NOUINT128 -Wno-unused-parameter
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=ISC-License
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.heatshrink
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.heatshrink
|
||||
|
@ -5,9 +5,6 @@ PKG_LICENSE=Apache-2.0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
JERRYSCRIPT_BUILD_DIR ?= $(PKG_BUILDDIR)/build
|
||||
JERRYSCRIPT_SOURCE_DIR ?= $(PKG_BUILDDIR)
|
||||
|
||||
CFLAGS += -Wno-implicit-fallthrough
|
||||
|
||||
JERRYHEAP ?= 16
|
||||
@ -40,14 +37,14 @@ endif
|
||||
|
||||
all: libjerry
|
||||
|
||||
libjerry: $(JERRYSCRIPT_BUILD_DIR)/Makefile
|
||||
"$(MAKE)" -C $(JERRYSCRIPT_BUILD_DIR) jerry-core jerry-ext jerry-port-default-minimal
|
||||
@cp $(JERRYSCRIPT_BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
|
||||
@cp $(JERRYSCRIPT_BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
|
||||
@cp $(JERRYSCRIPT_BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a
|
||||
libjerry: $(PKG_BUILD_DIR)/Makefile
|
||||
"$(MAKE)" -C $(PKG_BUILD_DIR) jerry-core jerry-ext jerry-port-default-minimal
|
||||
@cp $(PKG_BUILD_DIR)/lib/libjerry-core.a $(BINDIR)/jerryscript.a
|
||||
@cp $(PKG_BUILD_DIR)/lib/libjerry-ext.a $(BINDIR)/jerryscript-ext.a
|
||||
@cp $(PKG_BUILD_DIR)/lib/libjerry-port-default-minimal.a $(BINDIR)/jerryport-minimal.a
|
||||
|
||||
$(JERRYSCRIPT_BUILD_DIR)/Makefile:
|
||||
cmake -B$(JERRYSCRIPT_BUILD_DIR) -H$(JERRYSCRIPT_SOURCE_DIR) \
|
||||
$(PKG_BUILD_DIR)/Makefile:
|
||||
cmake -B$(PKG_BUILD_DIR) -H$(PKG_SOURCE_DIR) \
|
||||
-DCMAKE_SYSTEM_NAME=RIOT \
|
||||
-DCMAKE_SYSTEM_PROCESSOR="$(MCPU)" \
|
||||
-DCMAKE_C_COMPILER=$(CC) \
|
||||
@ -62,4 +59,4 @@ $(JERRYSCRIPT_BUILD_DIR)/Makefile:
|
||||
-DMEM_HEAP_SIZE_KB=$(JERRYHEAP)
|
||||
|
||||
clean::
|
||||
@rm -rf $(JERRYSCRIPT_BUILD_DIR)
|
||||
@rm -rf $(PKG_BUILD_DIR)
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -6,5 +6,4 @@ PKG_LICENSE = CC0-1.0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src \
|
||||
-f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
@ -8,4 +8,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
.PHONY: all
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
@ -13,4 +13,4 @@ ifeq (llvm,$(TOOLCHAIN))
|
||||
endif
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)
|
||||
|
@ -6,5 +6,5 @@ PKG_LICENSE=LGPL
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src/crypt -f $(CURDIR)/Makefile.$(PKG_NAME)_crypt
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/crypt -f $(CURDIR)/Makefile.$(PKG_NAME)_crypt
|
||||
|
@ -6,7 +6,7 @@ PKG_LICENSE := MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all: $(filter libfixmath-unittests,$(USEMODULE))
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/$(PKG_NAME) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/$(PKG_NAME) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
||||
libfixmath-unittests:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/unittests -f $(CURDIR)/Makefile.$(PKG_NAME)-unittests
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/unittests -f $(CURDIR)/Makefile.$(PKG_NAME)-unittests
|
||||
|
@ -1,4 +1,4 @@
|
||||
PKG_BUILDDIR ?= $(PKGDIRBASE)/libfixmath
|
||||
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/libfixmath
|
||||
|
||||
# The static cache is huge, disable it.
|
||||
CFLAGS += -DFIXMATH_NO_CACHE
|
||||
@ -7,8 +7,8 @@ ifneq (,$(filter arch_8bit,$(FEATURES_USED)))
|
||||
CFLAGS += -DFIXMATH_OPTIMIZE_8BIT
|
||||
endif
|
||||
|
||||
INCLUDES += -I$(PKG_BUILDDIR)/libfixmath
|
||||
INCLUDES += -I$(PKG_SOURCE_DIR)/libfixmath
|
||||
|
||||
ifneq (,$(filter libfixmath-unittests,$(USEMODULE)))
|
||||
INCLUDES += -I$(PKG_BUILDDIR)/unittests
|
||||
INCLUDES += -I$(PKG_SOURCE_DIR)/unittests
|
||||
endif
|
||||
|
@ -9,4 +9,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -Wno-type-limits
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -17,4 +17,4 @@ ifneq ($(DEVELHELP),1)
|
||||
endif
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -17,4 +17,4 @@ ifneq ($(DEVELHELP),1)
|
||||
endif
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
18
pkg/local.mk
18
pkg/local.mk
@ -1,23 +1,23 @@
|
||||
#
|
||||
# This file allows specifying a local folder using PKG_SOURCE_LOCAL.
|
||||
#
|
||||
# Every clean or prepare will remove $(PKG_BUILDDIR) and copy over
|
||||
# Every clean or prepare will remove $(PKG_SOURCE_DIR) and copy over
|
||||
# $(PKG_SOURCE_LOCAL). This is intended to be used during package development.
|
||||
#
|
||||
# WARNING: any local changes made to $(PKG_BUILDDIR) *will* get lost!
|
||||
# WARNING: any local changes made to $(PKG_SOURCE_DIR) *will* get lost!
|
||||
|
||||
.PHONY: prepare clean all FORCE
|
||||
|
||||
all: $(PKG_BUILDDIR)/.prepared
|
||||
all: $(PKG_SOURCE_DIR)/.prepared
|
||||
|
||||
prepare: $(PKG_BUILDDIR)/.prepared
|
||||
prepare: $(PKG_SOURCE_DIR)/.prepared
|
||||
@true
|
||||
|
||||
$(PKG_BUILDDIR)/.prepared:
|
||||
rm -Rf $(PKG_BUILDDIR)
|
||||
mkdir -p $$(dirname $(PKG_BUILDDIR))
|
||||
cp -a $(PKG_SOURCE_LOCAL) $(PKG_BUILDDIR)
|
||||
$(PKG_SOURCE_DIR)/.prepared:
|
||||
rm -Rf $(PKG_SOURCE_DIR)
|
||||
mkdir -p $$(dirname $(PKG_SOURCE_DIR))
|
||||
cp -a $(PKG_SOURCE_LOCAL) $(PKG_SOURCE_DIR)
|
||||
touch $@
|
||||
|
||||
clean::
|
||||
@rm -f $(PKG_BUILDDIR)/.prepared
|
||||
@rm -f $(PKG_SOURCE_DIR)/.prepared
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=LGPLv2.1
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -7,4 +7,4 @@ PKG_LICENSE=MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all: Makefile.lua
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.lua
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.lua
|
||||
|
@ -20,4 +20,4 @@ LVGL_MODULES = \
|
||||
all: $(LVGL_MODULES)
|
||||
|
||||
lvgl_%:
|
||||
MODULE=$@ "$(MAKE)" -C $(PKG_BUILDDIR)/src/lv_$* -f $(CURDIR)/Makefile.lvgl_module
|
||||
MODULE=$@ "$(MAKE)" -C $(PKG_SOURCE_DIR)/src/lv_$* -f $(CURDIR)/Makefile.lvgl_module
|
||||
|
@ -15,30 +15,30 @@ LWIP_MODULE_MAKEFILE = $(RIOTBASE)/Makefile.base
|
||||
|
||||
CFLAGS += -Wno-address
|
||||
|
||||
make_module = "$(MAKE)" -f $(LWIP_MODULE_MAKEFILE) MODULE=$(1) -C $(2)
|
||||
make_module = "$(MAKE)" -C $(2) -f $(LWIP_MODULE_MAKEFILE) MODULE=$(1)
|
||||
|
||||
all: lwip
|
||||
|
||||
lwip: $(LWIP_USEMODULE)
|
||||
$(call make_module,$@,$(PKG_BUILDDIR))
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR))
|
||||
|
||||
lwip_api:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/api)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/api)
|
||||
|
||||
lwip_core:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/core)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/core)
|
||||
|
||||
lwip_ipv4:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/core/ipv4)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/core/ipv4)
|
||||
|
||||
lwip_ipv6:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/core/ipv6)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/core/ipv6)
|
||||
|
||||
lwip_netif:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/netif)
|
||||
|
||||
lwip_netif_ppp:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/netif/ppp)
|
||||
|
||||
lwip_polarssl:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR)/src/netif/ppp/polarssl)
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR)/src/netif/ppp/polarssl)
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=BSD-2-Clause
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)
|
||||
|
@ -5,8 +5,12 @@ PKG_LICENSE=MIT
|
||||
|
||||
CFLAGS += -Wno-implicit-fallthrough -Wno-unused-parameter -Wno-error
|
||||
|
||||
# Micropython build system doesn't support (yet) out-of-source builds
|
||||
# so clone and build micropython within the application build directory
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
@mkdir -p $(PKG_BUILDDIR)/tmp
|
||||
BUILD=$(PKG_BUILDDIR) "$(MAKE)" -C $(PKG_BUILDDIR)/ports/riot
|
||||
@mkdir -p $(PKG_BUILD_DIR)/tmp
|
||||
BUILD=$(PKG_BUILD_DIR) "$(MAKE)" -C $(PKG_SOURCE_DIR)/ports/riot
|
||||
|
@ -5,8 +5,8 @@ CFLAGS += -DMP_RIOT_HEAPSIZE=$(MP_RIOT_HEAPSIZE)
|
||||
|
||||
# include paths
|
||||
INCLUDES += -I$(RIOTBASE)/pkg/micropython/include
|
||||
INCLUDES += -I$(PKGDIRBASE)/micropython
|
||||
INCLUDES += -I$(PKGDIRBASE)/micropython/ports/riot
|
||||
INCLUDES += -I$(BINDIR)/pkg/micropython
|
||||
INCLUDES += -I$(BINDIR)/pkg/micropython/ports/riot
|
||||
|
||||
# The port currently doesn't build with llvm
|
||||
TOOLCHAINS_BLACKLIST += llvm
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=WTFPL
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
@ -8,7 +8,7 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -DBLAKE2_NO_UNROLLING
|
||||
|
||||
all: $(filter monocypher_optional,$(USEMODULE))
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
||||
monocypher_optional:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src/optional -f $(RIOTBASE)/Makefile.base MODULE=$@
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/optional -f $(RIOTBASE)/Makefile.base MODULE=$@
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE = LGPL-2.1
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=LGPLv2.1
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)
|
||||
|
@ -6,7 +6,7 @@ PKG_LICENSE = Apache-2.0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
TDIR = $(RIOTPKG)/$(PKG_NAME)
|
||||
PDIR = $(PKG_BUILDDIR)
|
||||
PDIR = $(PKG_SOURCE_DIR)
|
||||
|
||||
# NimBLE is not optimized for building with all (extra) warnings enabled. So for
|
||||
# now, we disable a number of selected compiler warnings when building NimBLE.
|
||||
|
@ -5,9 +5,10 @@ PKG_URL = https://developer.nordicsemi.com/nRF5_IoT_SDK/nRF5_IoT_SDK_v0.9.x/$(PK
|
||||
PKG_MD5 = 291c875df69c51e22491e6112128bd9c
|
||||
PKG_LICENSE = nordic-bsd
|
||||
|
||||
PKG_DIR=$(CURDIR)
|
||||
PKG_BUILDDIR=$(PKGDIRBASE)/$(PKG_NAME)
|
||||
PKG_SRCDIR=$(PKG_BUILDDIR)/src
|
||||
PKG_DIR = $(CURDIR)
|
||||
PKG_BUILD_DIR = $(BINDIR)/pkg/$(PKG_NAME)
|
||||
PKG_SOURCE_DIR = $(PKGDIRBASE)/$(PKG_NAME)
|
||||
PKG_SRCDIR = $(PKG_SOURCE_DIR)/src
|
||||
|
||||
SOFTDEVICE := components/softdevice/s1xx_iot/s1xx-iot-prototype3_nrf52_softdevice.hex
|
||||
BLE_6LOWPAN_LIB := components/iot/ble_6lowpan/lib/ble_6lowpan.a
|
||||
@ -21,13 +22,13 @@ all: $(BINDIR)/ble_6lowpan.a $(BINDIR)/softdevice.hex $(SOFTDEVICE_MODULES)
|
||||
prepare: $(PKG_SRCDIR)/.extracted
|
||||
|
||||
softdevice_handler:
|
||||
make -C $(PKG_BUILDDIR)/src/components/softdevice/common/softdevice_handler -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SRCDIR)/components/softdevice/common/softdevice_handler -f $(RIOTBASE)/Makefile.base
|
||||
|
||||
ble_common:
|
||||
make -C $(PKG_BUILDDIR)/src/components/ble/common -f $(CURDIR)/ble_common.mk
|
||||
"$(MAKE)" -C $(PKG_SRCDIR)/components/ble/common -f $(CURDIR)/ble_common.mk
|
||||
|
||||
ble_ipsp:
|
||||
make -C $(PKG_BUILDDIR)/src/components/iot/ble_ipsp -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SRCDIR)/components/iot/ble_ipsp -f $(RIOTBASE)/Makefile.base
|
||||
|
||||
$(BINDIR)/ble_6lowpan.a: $(PKG_SRCDIR)/.extracted
|
||||
cp $(PKG_SRCDIR)/$(BLE_6LOWPAN_LIB) $@
|
||||
@ -38,18 +39,18 @@ $(BINDIR)/ble_6lowpan.a: $(PKG_SRCDIR)/.extracted
|
||||
$(BINDIR)/softdevice.hex: $(PKG_SRCDIR)/.extracted
|
||||
$(Q)$(OBJCOPY) $(OFLAGS) -Oihex --gap-fill 0xff $(PKG_SRCDIR)/$(SOFTDEVICE) $@
|
||||
|
||||
$(PKG_SRCDIR)/.extracted: $(PKG_BUILDDIR)/$(PKG_FILE)
|
||||
$(PKG_SRCDIR)/.extracted: $(PKG_SOURCE_DIR)/$(PKG_FILE)
|
||||
rm -rf $(@D)
|
||||
mkdir -p $(@D)
|
||||
$(Q)cd $(@D) && $(UNZIP_HERE) $(PKG_BUILDDIR)/$(PKG_FILE)
|
||||
$(Q)cd $(@D) && $(UNZIP_HERE) $(PKG_SOURCE_DIR)/$(PKG_FILE)
|
||||
touch $@
|
||||
|
||||
$(PKG_BUILDDIR)/$(PKG_FILE):
|
||||
$(PKG_SOURCE_DIR)/$(PKG_FILE):
|
||||
@mkdir -p $(@D)
|
||||
$(Q)$(DLCACHE) $(PKG_URL) $(PKG_MD5) $@
|
||||
|
||||
clean::
|
||||
rm -rf $(PKG_SRCDIR)/
|
||||
rm -rf $(PKG_SOURCE_DIR)/
|
||||
|
||||
distclean::
|
||||
rm -rf $(PKG_BUILDDIR)/
|
||||
rm -rf $(PKG_BUILD_DIR)/
|
||||
|
@ -3,6 +3,10 @@ PKG_URL=https://github.com/openthread/openthread.git
|
||||
PKG_VERSION=thread-reference-20180926
|
||||
PKG_LICENSE=BSD-3-Clause
|
||||
|
||||
# OpenThread build system doesn't support (yet) out-of-source builds
|
||||
# so clone and build OpenThread within the application build directory
|
||||
PKG_BUILD_OUT_OF_SOURCE = 0
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
ifneq (,$(filter openthread-ftd,$(USEMODULE)))
|
||||
@ -25,7 +29,7 @@ OPENTHREAD_COMMON_FLAGS = -fdata-sections -ffunction-sections -Os
|
||||
OPENTHREAD_COMMON_FLAGS += -Wno-implicit-fallthrough -Wno-unused-parameter
|
||||
OPENTHREAD_CXXFLAGS += -Wno-class-memaccess
|
||||
|
||||
OT_LIB_DIR = $(PKG_BUILDDIR)/output/lib
|
||||
OT_LIB_DIR = $(PKG_BUILD_DIR)/output/lib
|
||||
MODULE_LIBS = mbedcrypto.a openthread-$(TD).a
|
||||
ifneq (,$(filter openthread-cli,$(USEMODULE)))
|
||||
MODULE_LIBS += openthread-cli.a
|
||||
@ -43,12 +47,12 @@ $(BINDIR)/mbedcrypto.a: $(BINDIR)/openthread-$(TD).a
|
||||
$(BINDIR)/openthread-cli.a: $(BINDIR)/openthread-$(TD).a
|
||||
@cp $(OT_LIB_DIR)/libopenthread-cli-$(TD).a $@
|
||||
|
||||
$(OT_LIB_DIR)/libopenthread-$(TD).a: $(PKG_BUILDDIR)/Makefile
|
||||
make -C $(PKG_BUILDDIR) -j4 --no-print-directory install DESTDIR=$(PKG_BUILDDIR)/output PREFIX=/
|
||||
$(OT_LIB_DIR)/libopenthread-$(TD).a: $(PKG_BUILD_DIR)/Makefile
|
||||
make -C $(PKG_BUILD_DIR) -j4 --no-print-directory install DESTDIR=$(PKG_BUILD_DIR)/output PREFIX=/
|
||||
$(Q)printf "OpenThread built for %s device\n" $(TD)
|
||||
|
||||
$(PKG_BUILDDIR)/Makefile: $(PKG_BUILDDIR)/configure
|
||||
$(Q)cd $(PKG_BUILDDIR) && CPP="$(CPP)" CC="$(CC)" CXX="$(CXX)"\
|
||||
$(PKG_BUILD_DIR)/Makefile: $(PKG_BUILD_DIR)/configure
|
||||
$(Q)cd $(PKG_BUILD_DIR) && CPP="$(CPP)" CC="$(CC)" CXX="$(CXX)"\
|
||||
OBJC="" OBJCXX="" AR="$(AR)" RANLIB="$(RANLIB)" NM="$(NM)" \
|
||||
STRIP="$(STRIP)" \
|
||||
CPPFLAGS="$(OPENTHREAD_COMMON_FLAGS) $(CFLAGS_CPU) -D$(CONFIG_FILE)" \
|
||||
@ -60,6 +64,6 @@ $(PKG_BUILDDIR)/Makefile: $(PKG_BUILDDIR)/configure
|
||||
./configure --disable-docs --host=$(TARGET_ARCH) --target=$(TARGET_ARCH) \
|
||||
--prefix=/ --enable-default-logging $(OPENTHREAD_ARGS)
|
||||
|
||||
$(PKG_BUILDDIR)/configure: $(PKG_PREPARED)
|
||||
$(PKG_BUILD_DIR)/configure: $(PKG_PREPARED)
|
||||
$(Q)printf "OPENTHREAD_ARGS is [$(OPENTHREAD_ARGS)]\n"
|
||||
$(Q)cd $(PKG_BUILDDIR) && PREFIX="/" ./bootstrap
|
||||
$(Q)cd $(PKG_BUILD_DIR) && PREFIX="/" ./bootstrap
|
||||
|
@ -1,7 +1,7 @@
|
||||
OPENTHREAD_DIR = $(RIOTBASE)/pkg/openthread
|
||||
|
||||
INCLUDES += -I$(OPENTHREAD_DIR)/include \
|
||||
-I$(PKGDIRBASE)/openthread/include
|
||||
-I$(BINDIR)/pkg/openthread/include
|
||||
|
||||
ifneq (,$(filter openthread_contrib,$(USEMODULE)))
|
||||
DIRS += $(OPENTHREAD_DIR)/contrib
|
||||
|
43
pkg/pkg.mk
43
pkg/pkg.mk
@ -25,7 +25,18 @@ ifeq (,$(PKG_LICENSE))
|
||||
endif
|
||||
|
||||
PKG_DIR ?= $(CURDIR)
|
||||
PKG_BUILDDIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
||||
|
||||
PKG_BUILD_OUT_OF_SOURCE ?= 1
|
||||
ifeq (1,$(PKG_BUILD_OUT_OF_SOURCE))
|
||||
PKG_SOURCE_DIR ?= $(PKGDIRBASE)/$(PKG_NAME)
|
||||
PKG_BUILD_DIR ?= $(BINDIR)/pkg-build/$(PKG_NAME)
|
||||
else
|
||||
# in-source builds: packages are cloned within the application build
|
||||
# directory in a separate pkg tree
|
||||
PKG_SOURCE_DIR ?= $(BINDIR)/pkg/$(PKG_NAME)
|
||||
PKG_BUILD_DIR = $(PKG_SOURCE_DIR)
|
||||
endif
|
||||
|
||||
PKG_SOURCE_LOCAL ?= $(PKG_SOURCE_LOCAL_$(shell echo $(PKG_NAME) | tr a-z- A-Z_))
|
||||
|
||||
# git-cache specific management: GIT_CACHE_DIR is exported only
|
||||
@ -52,7 +63,7 @@ GITAMFLAGS ?= $(GIT_QUIET) --no-gpg-sign --ignore-whitespace --whitespace=nowarn
|
||||
PKG_PATCHES = $(sort $(wildcard $(PKG_DIR)/patches/*.patch))
|
||||
|
||||
PKG_STATE_FILE = .pkg-state.git
|
||||
PKG_STATE = $(PKG_BUILDDIR)/$(PKG_STATE_FILE)
|
||||
PKG_STATE = $(PKG_SOURCE_DIR)/$(PKG_STATE_FILE)
|
||||
|
||||
PKG_PREPARED = $(PKG_STATE)-prepared
|
||||
PKG_PATCHED = $(PKG_STATE)-patched
|
||||
@ -75,7 +86,7 @@ $(PKG_PREPARED): $(PKG_PATCHED)
|
||||
|
||||
# Use explicit '--git-dir' and '--work-tree' to prevent issues when the
|
||||
# directory is not a git repository for any reason (clean -xdff or others)
|
||||
GIT_IN_PKG = git -C $(PKG_BUILDDIR) --git-dir=.git --work-tree=.
|
||||
GIT_IN_PKG = git -C $(PKG_SOURCE_DIR) --git-dir=.git --work-tree=.
|
||||
|
||||
# When $(PKG_PATCHED).d is included $(PKG_PATCHED) prerequisites will include
|
||||
# the old prerequisites forcing a rebuild on prerequisite removal, but we do
|
||||
@ -95,27 +106,37 @@ gen_dependency_files = $(file >$1,$@: $2)$(foreach f,$2,$(file >>$1,$(f):))
|
||||
$(PKG_PATCHED): $(PKG_PATCHED_PREREQUISITES)
|
||||
$(info [INFO] patch $(PKG_NAME))
|
||||
$(call gen_dependency_files,$@.d,$(PKG_PATCHED_PREREQUISITES))
|
||||
$(Q)$(GIT_IN_PKG) clean $(GIT_QUIET) -xdff '**' -e $(PKG_STATE:$(PKG_BUILDDIR)/%='%*')
|
||||
$(Q)$(GIT_IN_PKG) clean $(GIT_QUIET) -xdff '**' -e $(PKG_STATE:$(PKG_SOURCE_DIR)/%='%*')
|
||||
$(Q)$(GIT_IN_PKG) checkout $(GIT_QUIET) -f $(PKG_VERSION)
|
||||
$(Q)$(GIT_IN_PKG) $(GITFLAGS) am $(GITAMFLAGS) $(PKG_PATCHES) </dev/null
|
||||
@touch $@
|
||||
|
||||
$(PKG_DOWNLOADED): $(MAKEFILE_LIST) | $(PKG_BUILDDIR)/.git
|
||||
$(PKG_DOWNLOADED): $(MAKEFILE_LIST) | $(PKG_SOURCE_DIR)/.git
|
||||
$(info [INFO] updating $(PKG_NAME) $(PKG_DOWNLOADED))
|
||||
$(Q)$(GIT_IN_PKG) fetch $(GIT_QUIET) $(PKG_URL) $(PKG_VERSION)
|
||||
echo $(PKG_VERSION) > $@
|
||||
|
||||
$(PKG_BUILDDIR)/.git: | $(PKG_CUSTOM_PREPARED)
|
||||
$(PKG_SOURCE_DIR)/.git: | $(PKG_CUSTOM_PREPARED)
|
||||
$(info [INFO] cloning $(PKG_NAME))
|
||||
$(Q)rm -Rf $(PKG_BUILDDIR)
|
||||
$(Q)mkdir -p $(PKG_BUILDDIR)
|
||||
$(Q)$(GITCACHE) clone $(PKG_URL) $(PKG_VERSION) $(PKG_BUILDDIR)
|
||||
$(Q)rm -Rf $(PKG_SOURCE_DIR)
|
||||
$(Q)mkdir -p $(PKG_SOURCE_DIR)
|
||||
$(Q)$(GITCACHE) clone $(PKG_URL) $(PKG_VERSION) $(PKG_SOURCE_DIR)
|
||||
|
||||
ifeq ($(PKG_SOURCE_DIR),$(PKG_BUILD_DIR))
|
||||
# This is the case for packages that are built within their source directory
|
||||
# e.g. micropython and openthread
|
||||
clean::
|
||||
@-test -d $(PKG_BUILDDIR) && $(GIT_IN_PKG) clean $(GIT_QUIET) -xdff
|
||||
@-test -d $(PKG_SOURCE_DIR) && $(GIT_IN_PKG) clean $(GIT_QUIET) -xdff
|
||||
|
||||
distclean::
|
||||
rm -rf $(PKG_BUILDDIR)
|
||||
rm -rf $(PKG_SOURCE_DIR)
|
||||
else
|
||||
clean::
|
||||
rm -rf $(PKG_BUILD_DIR)
|
||||
|
||||
distclean:: clean
|
||||
rm -rf $(PKG_SOURCE_DIR)
|
||||
endif
|
||||
|
||||
# Dependencies to 'patches'
|
||||
-include $(PKG_PATCHED).d
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=PD
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/$(QDSA_IMPL)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/$(QDSA_IMPL)
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE = BSD-3-Clause
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -3,20 +3,17 @@ PKG_URL=https://github.com/relic-toolkit/relic.git
|
||||
PKG_VERSION=0b0442a8218df8d309266923f2dd5b9ae3b318ce
|
||||
PKG_LICENSE=LGPL-2.1
|
||||
|
||||
PKG_CUSTOM_PREPARED = $(PKGDIRBASE)/$(PKG_NAME)/build/include
|
||||
PKG_CUSTOM_PREPARED = $(BINDIR)/pkg-build/$(PKG_NAME)/include
|
||||
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
.PHONY: ..cmake_version_supported
|
||||
|
||||
RELIC_BUILD_DIR = $(PKG_BUILDDIR)/build
|
||||
RELIC_SOURCE_DIR = $(PKG_BUILDDIR)
|
||||
|
||||
CMAKE_MINIMAL_VERSION = 3.6.0
|
||||
|
||||
CFLAGS += -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-function -Wno-newline-eof
|
||||
|
||||
TOOLCHAIN_FILE = $(RELIC_SOURCE_DIR)/xcompile-toolchain.cmake
|
||||
TOOLCHAIN_FILE = $(PKG_SOURCE_DIR)/xcompile-toolchain.cmake
|
||||
|
||||
all: $(BINDIR)/$(PKG_NAME).a
|
||||
|
||||
@ -24,18 +21,18 @@ $(PKG_CUSTOM_PREPARED):
|
||||
$(info [INFO] Relic: create include directory in build)
|
||||
mkdir -p $(PKG_CUSTOM_PREPARED)
|
||||
|
||||
$(BINDIR)/$(PKG_NAME).a: $(RELIC_BUILD_DIR)/lib/librelic_s.a
|
||||
$(BINDIR)/$(PKG_NAME).a: $(PKG_BUILD_DIR)/lib/librelic_s.a
|
||||
cp $< $@
|
||||
|
||||
$(RELIC_BUILD_DIR)/lib/librelic_s.a: $(RELIC_BUILD_DIR)/Makefile
|
||||
$(MAKE) -C $(RELIC_BUILD_DIR)
|
||||
$(PKG_BUILD_DIR)/lib/librelic_s.a: $(PKG_BUILD_DIR)/Makefile
|
||||
$(MAKE) -C $(PKG_BUILD_DIR)
|
||||
|
||||
# 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))
|
||||
$(RELIC_BUILD_DIR)/Makefile: export COMP ?=
|
||||
$(RELIC_BUILD_DIR)/Makefile: $(PKG_PREPARED) $(TOOLCHAIN_FILE) | ..cmake_version_supported
|
||||
cmake -B$(RELIC_BUILD_DIR) -H$(RELIC_SOURCE_DIR) \
|
||||
$(PKG_BUILD_DIR)/Makefile: export COMP ?=
|
||||
$(PKG_BUILD_DIR)/Makefile: $(PKG_PREPARED) $(TOOLCHAIN_FILE) | ..cmake_version_supported
|
||||
cmake -B$(PKG_BUILD_DIR) -H$(PKG_SOURCE_DIR) \
|
||||
-DCMAKE_TOOLCHAIN_FILE=$(TOOLCHAIN_FILE) \
|
||||
-DCHECK=off -DTESTS=0 -DBENCH=0 -DSHLIB=off -Wno-dev $(RELIC_CONFIG_FLAGS)
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
INCLUDES += -I$(PKGDIRBASE)/relic/include
|
||||
INCLUDES += -I$(PKGDIRBASE)/relic/build/include
|
||||
INCLUDES += -I$(BINDIR)/pkg-build/relic/include
|
||||
|
||||
ifneq (,$(filter cortex-m%,$(CPU_CORE)))
|
||||
# relic package package is not using system includes right now, so
|
||||
|
@ -22,4 +22,4 @@ DIR_loramac_region = mac/region
|
||||
all: $(LORAMAC_MODULES)
|
||||
|
||||
loramac_%:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src/$(DIR_$@) -f $(CURDIR)/Makefile.$@
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/$(DIR_$@) -f $(CURDIR)/Makefile.$@
|
||||
|
@ -9,4 +9,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -Wno-pedantic
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -17,13 +17,13 @@ CFLAGS += -DTF_LITE_USE_GLOBAL_ROUND
|
||||
all: tensorflow-lite
|
||||
|
||||
tensorflow-lite: $(TF_USEMODULE)
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/c -f $(CURDIR)/Makefile.$(PKG_NAME)-c
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/core/api -f $(CURDIR)/Makefile.$(PKG_NAME)-core
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/kernels/internal -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels-internal
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-micro-kernels
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro/memory_planner -f $(CURDIR)/Makefile.$(PKG_NAME)-memory
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/c -f $(CURDIR)/Makefile.$(PKG_NAME)-c
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/core/api -f $(CURDIR)/Makefile.$(PKG_NAME)-core
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/kernels/internal -f $(CURDIR)/Makefile.$(PKG_NAME)-kernels-internal
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro/kernels -f $(CURDIR)/Makefile.$(PKG_NAME)-micro-kernels
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro/memory_planner -f $(CURDIR)/Makefile.$(PKG_NAME)-memory
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
|
||||
tensorflow-lite-%:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/tensorflow/lite/micro/examples/$* -f $(CURDIR)/Makefile.$(PKG_NAME)-$*
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/tensorflow/lite/micro/examples/$* -f $(CURDIR)/Makefile.$(PKG_NAME)-$*
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE = LGPL-3
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -7,4 +7,4 @@ PKG_LICENSE=MIT
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.tinycbor
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/Makefile.tinycbor
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=BSD-3-Clause
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/lib/source/ -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/lib/source/ -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
|
||||
|
@ -11,9 +11,9 @@ CFLAGS += -Wno-implicit-fallthrough
|
||||
CFLAGS += -D_XOPEN_SOURCE=600
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(PKG_BUILDDIR)/Makefile.riot
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/aes -f $(PKG_BUILDDIR)/aes/Makefile.riot
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/ecc -f $(PKG_BUILDDIR)/ecc/Makefile.riot
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(PKG_SOURCE_DIR)/Makefile.riot
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/aes -f $(PKG_SOURCE_DIR)/aes/Makefile.riot
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/ecc -f $(PKG_SOURCE_DIR)/ecc/Makefile.riot
|
||||
|
||||
ifeq (llvm,$(TOOLCHAIN))
|
||||
CFLAGS += -Wno-format-nonliteral
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=BSD
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -6,4 +6,4 @@ PKG_LICENSE=PD
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -6,7 +6,7 @@ PKG_LICENSE=BSD-2-Clause
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all: $(filter u8g2_%,$(filter-out u8g2_csrc%, $(USEMODULE)))
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/csrc -f $(CURDIR)/Makefile.$(PKG_NAME)_csrc
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/csrc -f $(CURDIR)/Makefile.$(PKG_NAME)_csrc
|
||||
|
||||
u8g2_%:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/sys/$*/common -f $(CURDIR)/Makefile.$(PKG_NAME)_$*
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/sys/$*/common -f $(CURDIR)/Makefile.$(PKG_NAME)_$*
|
||||
|
@ -15,7 +15,7 @@ all: ubasic
|
||||
make_module = "$(MAKE)" -f $(RIOTPKG)/ubasic/$(1).mk -C $(2)
|
||||
|
||||
ubasic: $(UBASIC_USEMODULE)
|
||||
$(call make_module,$@,$(PKG_BUILDDIR))
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR))
|
||||
|
||||
ubasic%:
|
||||
$(call make_module,$@,$(PKG_BUILDDIR))
|
||||
$(call make_module,$@,$(PKG_SOURCE_DIR))
|
||||
|
@ -8,8 +8,8 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
.PHONY: ucglib_sdl
|
||||
|
||||
all: $(filter ucglib_sdl,$(USEMODULE))
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.ucglib
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/csrc -f $(CURDIR)/Makefile.ucglib_csrc
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(CURDIR)/Makefile.ucglib
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/csrc -f $(CURDIR)/Makefile.ucglib_csrc
|
||||
|
||||
ucglib_sdl:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/sys/sdl/dev -f $(CURDIR)/Makefile.ucglib_sdl
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/sys/sdl/dev -f $(CURDIR)/Makefile.ucglib_sdl
|
||||
|
@ -8,4 +8,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -D_XOPEN_SOURCE=600
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
@ -3,11 +3,9 @@ PKG_URL=https://github.com/uTensor/uTensor
|
||||
PKG_VERSION=b22aa5cbc1ef1b3dd42a899b393a9b999afd1305
|
||||
PKG_LICENSE=Apache2.0
|
||||
|
||||
PKG_BASEDIR = $(PKG_BUILDDIR)/src/uTensor
|
||||
|
||||
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
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/uTensor/core -f $(CURDIR)/Makefile.$(PKG_NAME)
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/uTensor/util -f $(CURDIR)/Makefile.$(PKG_NAME).util
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src/uTensor/ops -f $(CURDIR)/Makefile.$(PKG_NAME).ops
|
||||
|
@ -6,6 +6,6 @@ PKG_LICENSE=EDL-1.0,EPL-1.0
|
||||
include $(RIOTBASE)/pkg/pkg.mk
|
||||
|
||||
all:
|
||||
"$(MAKE)" MODULE=wakaama_core -C $(PKG_BUILDDIR)/core -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" MODULE=wakaama_core_coap13 -C $(PKG_BUILDDIR)/core/er-coap-13 -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/examples/client -f $(CURDIR)/wakaama_client.mk
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/core -f $(RIOTBASE)/Makefile.base MODULE=wakaama_core
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/core/er-coap-13 -f $(RIOTBASE)/Makefile.base MODULE=wakaama_core_coap13
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/examples/client -f $(CURDIR)/wakaama_client.mk
|
||||
|
@ -8,10 +8,10 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
.PHONY: wolfcrypt%
|
||||
|
||||
all: $(filter wolfcrypt wolfcrypt-test wolfcrypt-benchmark,$(USEMODULE))
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.wolfssl
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/src -f $(CURDIR)/Makefile.wolfssl
|
||||
|
||||
wolfcrypt:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/wolfcrypt/src -f $(CURDIR)/Makefile.wolfcrypt
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/wolfcrypt/src -f $(CURDIR)/Makefile.wolfcrypt
|
||||
|
||||
wolfcrypt-%:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR)/wolfcrypt/$* -f $(CURDIR)/Makefile.wolfcrypt-$*
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR)/wolfcrypt/$* -f $(CURDIR)/Makefile.wolfcrypt-$*
|
||||
|
@ -1,7 +1,7 @@
|
||||
CFLAGS += -DWOLFSSL_USER_SETTINGS=1
|
||||
CFLAGS += -DWOLFSSL_RIOT_OS=1
|
||||
|
||||
INCLUDES += -I$(PKGDIRBASE)/../../../
|
||||
INCLUDES += -I$(APPDIR)
|
||||
INCLUDES += -I$(PKGDIRBASE)/wolfssl
|
||||
INCLUDES += -I$(RIOTBASE)/pkg/wolfssl/sock_tls
|
||||
INCLUDES += -I$(RIOTBASE)/pkg/wolfssl/include
|
||||
|
@ -8,4 +8,4 @@ include $(RIOTBASE)/pkg/pkg.mk
|
||||
CFLAGS += -Wno-unused-parameter
|
||||
|
||||
all:
|
||||
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base
|
||||
"$(MAKE)" -C $(PKG_SOURCE_DIR) -f $(RIOTBASE)/Makefile.base
|
||||
|
Loading…
Reference in New Issue
Block a user