pkg/pkg.mk: add checks for required variables
Ensure the required variables are defined before including 'pkg.mk'.
This commit is contained in:
parent
0d4d621f99
commit
edca088193
14
pkg/pkg.mk
14
pkg/pkg.mk
@ -1,6 +1,20 @@
|
|||||||
#
|
#
|
||||||
# Include this file if your Package needs to be checked out by git
|
# 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_DIR?=$(CURDIR)
|
||||||
PKG_BUILDDIR?=$(PKGDIRBASE)/$(PKG_NAME)
|
PKG_BUILDDIR?=$(PKGDIRBASE)/$(PKG_NAME)
|
||||||
PKG_SOURCE_LOCAL ?= $(PKG_SOURCE_LOCAL_$(shell echo $(PKG_NAME) | tr a-z- A-Z_))
|
PKG_SOURCE_LOCAL ?= $(PKG_SOURCE_LOCAL_$(shell echo $(PKG_NAME) | tr a-z- A-Z_))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user