mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #7266 from kaspar030/pkg-prepare
make: introduce pkg-prepare target
This commit is contained in:
commit
29ee609a2f
@ -330,7 +330,7 @@ include $(RIOTBASE)/drivers/Makefile.include
|
||||
|
||||
# The `clean` needs to be serialized before everything else.
|
||||
ifneq (, $(filter clean, $(MAKECMDGOALS)))
|
||||
all $(BASELIBS) $(USEPKG:%=$(RIOTPKG)/%/Makefile.include) $(RIOTBUILD_CONFIG_HEADER_C): clean
|
||||
all $(BASELIBS) $(USEPKG:%=$(RIOTPKG)/%/Makefile.include) $(RIOTBUILD_CONFIG_HEADER_C) pkg-prepare: clean
|
||||
endif
|
||||
|
||||
# include Makefile.includes for packages in $(USEPKG)
|
||||
@ -344,8 +344,11 @@ USEMODULE_INCLUDES_ = $(shell echo $(USEMODULE_INCLUDES) | tr ' ' '\n' | awk '!a
|
||||
|
||||
INCLUDES += $(USEMODULE_INCLUDES_:%=-I%)
|
||||
|
||||
.PHONY: $(USEPKG:%=${BINDIR}/%.a)
|
||||
$(USEPKG:%=${BINDIR}/%.a): $(RIOTBUILD_CONFIG_HEADER_C)
|
||||
.PHONY: pkg-prepare $(USEPKG:%=${BINDIR}/%.a)
|
||||
pkg-prepare:
|
||||
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i prepare ; done
|
||||
|
||||
$(USEPKG:%=${BINDIR}/%.a): $(RIOTBUILD_CONFIG_HEADER_C) pkg-prepare
|
||||
@mkdir -p ${BINDIR}
|
||||
$(QQ)"$(MAKE)" -C $(RIOTPKG)/$(patsubst ${BINDIR}/%.a,%,$@)
|
||||
|
||||
|
@ -10,8 +10,7 @@ RIOTBASE ?= $(CURDIR)/../..
|
||||
# TinyDTLS only has support for 32-bit architectures ATM
|
||||
BOARD_BLACKLIST := arduino-duemilanove arduino-mega2560 arduino-uno chronos \
|
||||
msb-430 msb-430h telosb waspmote-pro wsn430-v1_3b wsn430-v1_4 \
|
||||
z1 \
|
||||
nrf52dk # see #6022
|
||||
z1
|
||||
|
||||
BOARD_INSUFFICIENT_MEMORY := airfy-beacon b-l072z-lrwan1 \
|
||||
calliope-mini cc2650stk maple-mini \
|
||||
|
@ -13,11 +13,6 @@ BOARD_INSUFFICIENT_MEMORY := chronos msb-430 msb-430h nucleo32-f031 nucleo32-f04
|
||||
nucleo32-l031 nucleo-f030 nucleo-f334 nucleo-l053 \
|
||||
stm32f0discovery telosb weio wsn430-v1_3b wsn430-v1_4 z1
|
||||
|
||||
# Must read nordic_softdevice_ble package before nanocoap package. However,
|
||||
# can't read it explicitly here because it is read later, as a dependency for
|
||||
# the nrf52dk board.
|
||||
BOARD_BLACKLIST := nrf52dk
|
||||
|
||||
## Uncomment to redefine port, for example use 61616 for RFC 6282 UDP compression.
|
||||
#GCOAP_PORT = 5683
|
||||
#CFLAGS += -DGCOAP_PORT=$(GCOAP_PORT)
|
||||
|
@ -14,11 +14,6 @@ BOARD_INSUFFICIENT_MEMORY := chronos msb-430 msb-430h nucleo-f030 nucleo-f334 \
|
||||
stm32f0discovery telosb weio wsn430-v1_3b wsn430-v1_4 \
|
||||
z1
|
||||
|
||||
# Must read nordic_softdevice_ble package before nanocoap package. However,
|
||||
# can't read it explicitly here because it is read later, as a dependency for
|
||||
# the nrf52dk board.
|
||||
BOARD_BLACKLIST := nrf52dk
|
||||
|
||||
# Redefine port, for example use 61616 for RFC 6282 UDP compression.
|
||||
#GCOAP_PORT = 5683
|
||||
#CFLAGS += -DGCOAP_PORT=$(GCOAP_PORT)
|
||||
|
@ -11,9 +11,6 @@ BOARD_INSUFFICIENT_MEMORY := chronos msb-430 msb-430h nucleo32-f031 nucleo32-f04
|
||||
nucleo32-l031 nucleo-f030 nucleo-l053 stm32f0discovery \
|
||||
telosb weio
|
||||
|
||||
# blacklist this until #6022 is sorted out
|
||||
BOARD_BLACKLIST := nrf52dk
|
||||
|
||||
# Include packages that pull up and auto-init the link layer.
|
||||
# NOTE: 6LoWPAN will be included if IEEE802.15.4 devices are present
|
||||
USEMODULE += gnrc_netdev_default
|
||||
|
@ -12,10 +12,12 @@ SOFTDEVICE := components/softdevice/s1xx_iot/s1xx-iot-prototype3_nrf52_softdevic
|
||||
BLE_6LOWPAN_LIB := components/iot/ble_6lowpan/lib/ble_6lowpan.a
|
||||
MODULE_MAKEFILE := $(PKG_DIR)/Makefile.module
|
||||
|
||||
.PHONY: all clean distclean
|
||||
.PHONY: all prepare clean distclean
|
||||
|
||||
all: $(BINDIR)/ble_6lowpan.a $(BINDIR)/softdevice.hex
|
||||
|
||||
prepare: $(PKG_SRCDIR)/.extracted
|
||||
|
||||
$(BINDIR)/ble_6lowpan.a: $(PKG_SRCDIR)/.extracted
|
||||
cp $(PKG_SRCDIR)/$(BLE_6LOWPAN_LIB) $@
|
||||
|
||||
|
@ -4,7 +4,9 @@
|
||||
PKG_DIR?=$(CURDIR)
|
||||
PKG_BUILDDIR?=$(PKGDIRBASE)/$(PKG_NAME)
|
||||
|
||||
.PHONY: git-download clean
|
||||
.PHONY: prepare git-download clean
|
||||
|
||||
prepare: git-download
|
||||
|
||||
ifneq (,$(wildcard $(PKG_DIR)/patches))
|
||||
git-download: $(PKG_BUILDDIR)/.git-patched
|
||||
|
@ -8,10 +8,12 @@ PKG_DIR=$(CURDIR)
|
||||
PKG_BUILDDIR=$(PKGDIRBASE)/$(PKG_NAME)
|
||||
PKG_SRCDIR=$(PKG_BUILDDIR)/src
|
||||
|
||||
.PHONY: all clean distclean
|
||||
.PHONY: all prepare clean distclean
|
||||
|
||||
all: $(PKG_SRCDIR)/$(PKG_NAME).a
|
||||
|
||||
prepare: $(PKG_SRCDIR)/Makefile
|
||||
|
||||
$(PKG_SRCDIR)/$(PKG_NAME).a: $(PKG_SRCDIR)/Makefile
|
||||
$(Q)make -C $(<D)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user