mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
pkg: add prepare targets
This commit is contained in:
parent
93fb2cee47
commit
98bb1f2781
@ -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