mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-10 08:14:09 -09:00
package/sysvinit: add version number to SYSVINIT_MAKE_OPTS
Version environment variable VERSION=$(VERSION) is set in the top level Makefile of the sysvinit: $(MAKE) VERSION=$(VERSION) -C src $@ Build command SYSVINIT_BUILD_CMDS doesn't use the top level Makefile, but src/Makefile instead without setting the VERSION variable, which leads to undefined VERSION macro in src/init.c. Add VERSION=$(SYSVINIT_VERSION) to SYSVINIT_MAKE_OPTS to make the VERSION environment variable available in the src/Makefile. Signed-off-by: Cody Green <cody@londelec.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
6fdaff2376
commit
954098b142
@@ -11,7 +11,7 @@ SYSVINIT_LICENSE = GPL-2.0+
|
||||
SYSVINIT_LICENSE_FILES = COPYING
|
||||
SYSVINIT_CPE_ID_VALID = YES
|
||||
|
||||
SYSVINIT_MAKE_OPTS = SYSROOT=$(STAGING_DIR)
|
||||
SYSVINIT_MAKE_OPTS = SYSROOT=$(STAGING_DIR) VERSION=$(SYSVINIT_VERSION)
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
||||
SYSVINIT_DEPENDENCIES += libselinux
|
||||
|
||||
Reference in New Issue
Block a user