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

pkg: use Makefile.base to build pkg modules when possible

This commit is contained in:
Alexandre Abadie 2020-06-12 16:49:12 +02:00
parent b76bf294ec
commit a009684336
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
44 changed files with 57 additions and 134 deletions

View File

@ -17,7 +17,7 @@ endif
prepare: $(PKG_BUILDDIR)/
all: $(PKG_BUILDDIR)/
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.c25519
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
$(PKG_BUILDDIR)/: $(PKGDIRBASE)/$(PKG_NAME)-$(PKG_VERSION).$(PKG_EXT)
test "$(PKG_SHA512) $(PKG_ZIPFILE)" = "$$(sha512sum "${PKG_ZIPFILE}")"

View File

@ -1,11 +0,0 @@
MODULE := c25519
SRC += c25519.c
SRC += ed25519.c
SRC += edsign.c
SRC += f25519.c
SRC += fprime.c
SRC += morph25519.c
SRC += sha512.c
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=LGPLv2.1
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE = cayenne-lpp
include $(RIOTBASE)/Makefile.base

View File

@ -5,5 +5,8 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
# Enable code forcing aligned reads
CFLAGS += -DCBOR_ALIGN_READS
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.cn-cbor
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -1,6 +0,0 @@
MODULE := cn-cbor
# Enable code forcing aligned reads
CFLAGS += -DCBOR_ALIGN_READS
include $(RIOTBASE)/Makefile.base

View File

@ -5,7 +5,11 @@ PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
ifneq (,$(filter bme680_fp,$(USEMODULE)))
CFLAGS += -DBME680_FLOAT_POINT_COMPENSATION
endif
.PHONY: all
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,7 +0,0 @@
MODULE = driver_bme680
ifneq (,$(filter bme680_fp,$(USEMODULE)))
CFLAGS += -DBME680_FLOAT_POINT_COMPENSATION
endif
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=BSD-1-Clause
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE=fatfs
include $(RIOTBASE)/Makefile.base

View File

@ -5,5 +5,7 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -DKRML_NOUINT128 -Wno-unused-parameter
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,5 +0,0 @@
MODULE=hacl
include $(RIOTBASE)/Makefile.base
CFLAGS += -DKRML_NOUINT128 -Wno-unused-parameter

View File

@ -6,4 +6,4 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.jsmn
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
SRCS := jsmn.c
include $(RIOTBASE)/Makefile.base

View File

@ -6,5 +6,5 @@ PKG_LICENSE=LGPL
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
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR)/src/crypt -f $(CURDIR)/Makefile.$(PKG_NAME)_crypt

View File

@ -1,3 +0,0 @@
MODULE := libcose
include $(RIOTBASE)/Makefile.base

View File

@ -9,5 +9,4 @@ include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-type-limits
all:
"$(MAKE)" -C $(PKG_BUILDDIR) \
-f $(RIOTPKG)/libhydrogen/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE = libhydrogen
include $(RIOTBASE)/Makefile.base

View File

@ -6,5 +6,15 @@ PKG_LICENSE=Apache-2.0
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-format
# GCC 4.9 bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64480)
# used by MIPS
CFLAGS += -Wno-missing-field-initializers
# Disable debug printing
ifneq ($(DEVELHELP),1)
CFLAGS += -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR
endif
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.littlefs
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,13 +0,0 @@
MODULE := littlefs
CFLAGS += -Wno-format
# GCC 4.9 bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64480)
# used by MIPS
CFLAGS += -Wno-missing-field-initializers
# Disable debug printing
ifneq ($(DEVELHELP),1)
CFLAGS += -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR
endif
include $(RIOTBASE)/Makefile.base

View File

@ -6,5 +6,15 @@ PKG_LICENSE=Apache-2.0
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-format
# GCC 4.9 bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64480)
# used by MIPS
CFLAGS += -Wno-missing-field-initializers
# Disable debug printing
ifneq ($(DEVELHELP),1)
CFLAGS += -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR
endif
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.littlefs2
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,13 +0,0 @@
MODULE := littlefs2
CFLAGS += -Wno-format
# GCC 4.9 bug (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64480)
# used by MIPS
CFLAGS += -Wno-missing-field-initializers
# Disable debug printing
ifneq ($(DEVELHELP),1)
CFLAGS += -DLFS_NO_DEBUG -DLFS_NO_WARN -DLFS_NO_ERROR
endif
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=LGPLv2.1
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE = lora-serialization
include $(RIOTBASE)/Makefile.base

View File

@ -6,5 +6,4 @@ PKG_LICENSE = LGPL-2.1
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src \
-f $(RIOTPKG)/nanocbor/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -1,6 +0,0 @@
MODULE = nanocbor
SRC = decoder.c \
encoder.c
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.nanopb
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
SRCS := pb_encode.c pb_decode.c pb_common.c
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE = BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTPKG)/qcbor/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -1,3 +0,0 @@
MODULE = qcbor
include $(RIOTBASE)/Makefile.base

View File

@ -5,5 +5,8 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
# Disable 'ISO C99 doesnt support unnamed structs/unions [-Werror=pedantic]'
CFLAGS += -Wno-pedantic
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.spiffs
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -1,6 +0,0 @@
MODULE := spiffs
# Disable 'ISO C99 doesnt support unnamed structs/unions [-Werror=pedantic]'
CFLAGS += -Wno-pedantic
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(CURDIR)/Makefile.talking_leds
"$(MAKE)" -C $(PKG_BUILDDIR)/src -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -1,3 +0,0 @@
MODULE = talking_leds
include $(RIOTBASE)/Makefile.base

View File

@ -6,5 +6,4 @@ PKG_LICENSE=BSD-3-Clause
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR)/lib/source/ \
-f $(RIOTPKG)/tinycrypt/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR)/lib/source/ -f $(RIOTBASE)/Makefile.base MODULE=$(PKG_NAME)

View File

@ -1,3 +0,0 @@
MODULE = tinycrypt
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=BSD
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE = tlsf
include $(RIOTBASE)/Makefile.base

View File

@ -6,4 +6,4 @@ PKG_LICENSE=PD
include $(RIOTBASE)/pkg/pkg.mk
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.riot
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
MODULE=tweetnacl
include $(RIOTBASE)/Makefile.base

View File

@ -8,4 +8,4 @@ include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -D_XOPEN_SOURCE=600
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,2 +0,0 @@
SRC := umorse.c print.c
include $(RIOTBASE)/Makefile.base

View File

@ -5,5 +5,7 @@ PKG_LICENSE=MIT
include $(RIOTBASE)/pkg/pkg.mk
CFLAGS += -Wno-unused-parameter
all:
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(CURDIR)/Makefile.$(PKG_NAME)
"$(MAKE)" -C $(PKG_BUILDDIR) -f $(RIOTBASE)/Makefile.base

View File

@ -1,3 +0,0 @@
CFLAGS += -Wno-unused-parameter
include $(RIOTBASE)/Makefile.base