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

pkg/pkg.mk: add checks for required variables

Ensure the required variables are defined before including 'pkg.mk'.
This commit is contained in:
Gaëtan Harter 2019-10-04 13:51:41 +02:00 committed by Bas Stottelaar
parent 0d4d621f99
commit edca088193

View File

@ -1,6 +1,20 @@
#
# Include this file if your Package needs to be checked out by git
#
ifeq (,$(PKG_NAME))
$(error PKG_NAME not defined)
endif
ifeq (,$(PKG_URL))
$(error PKG_URL not defined)
endif
ifeq (,$(PKG_VERSION))
$(error PKG_VERSION not defined)
endif
ifeq (,$(PKG_LICENSE))
$(error PKG_LICENSE not defined)
endif
PKG_DIR?=$(CURDIR)
PKG_BUILDDIR?=$(PKGDIRBASE)/$(PKG_NAME)
PKG_SOURCE_LOCAL ?= $(PKG_SOURCE_LOCAL_$(shell echo $(PKG_NAME) | tr a-z- A-Z_))