mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-04 06:10:16 +03:00
packages: rename FOO_MAKE_OPT into FOO_MAKE_OPTS
While the autotools infrastructure was using FOO_MAKE_OPT, generic packages
were typically using FOO_MAKE_OPTS. This inconsistency becomes a problem
when a new infrastructure is introduced that wants to make use of
FOO_MAKE_OPT(S), and can live alongside either generic-package or
autotools-package. The new infrastructure will have to choose between either
OPT or OPTS, and thus rule out transparent usage by respectively generic
packages or generic packages. An example of such an infrastructure is
kconfig-package, which provides kconfig-related make targets.
The OPTS variant is more logical, as there are typically multiple options.
This patch renames all occurrences of FOO_MAKE_OPT in FOO_MAKE_OPTS.
Sed command used:
find * -type f | xargs sed -i 's#_MAKE_OPT\>#&S#g'
Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
be47b84c1a
commit
0518a98ac3
@@ -10,31 +10,31 @@ OPENSWAN_LICENSE = GPLv2+, BSD-3c
|
||||
OPENSWAN_LICENSE_FILES = COPYING LICENSE
|
||||
|
||||
OPENSWAN_DEPENDENCIES = host-bison host-flex gmp iproute2
|
||||
OPENSWAN_MAKE_OPT = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" \
|
||||
OPENSWAN_MAKE_OPTS = ARCH=$(BR2_ARCH) CC="$(TARGET_CC)" \
|
||||
USERCOMPILE="$(TARGET_CFLAGS) -fPIE" INC_USRLOCAL=/usr \
|
||||
USE_KLIPS=false USE_MAST=false USE_NM=false
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
OPENSWAN_DEPENDENCIES += libcurl
|
||||
OPENSWAN_MAKE_OPT += USE_LIBCURL=true
|
||||
OPENSWAN_MAKE_OPTS += USE_LIBCURL=true
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
||||
OPENSWAN_DEPENDENCIES += openssl
|
||||
OPENSWAN_MAKE_OPT += HAVE_OPENSSL=true
|
||||
OPENSWAN_MAKE_OPTS += HAVE_OPENSSL=true
|
||||
ifeq ($(BR2_PACKAGE_OCF_LINUX),y)
|
||||
OPENSWAN_MAKE_OPT += HAVE_OCF=true
|
||||
OPENSWAN_MAKE_OPTS += HAVE_OCF=true
|
||||
endif
|
||||
endif
|
||||
|
||||
define OPENSWAN_BUILD_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
$(OPENSWAN_MAKE_OPT) programs
|
||||
$(OPENSWAN_MAKE_OPTS) programs
|
||||
endef
|
||||
|
||||
define OPENSWAN_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
|
||||
$(OPENSWAN_MAKE_OPT) DESTDIR=$(TARGET_DIR) install
|
||||
$(OPENSWAN_MAKE_OPTS) DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
|
||||
Reference in New Issue
Block a user