From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2] rules: Replace deprecated <PKG>_MAKEVARS
Date: Mon, 24 Oct 2022 21:55:26 +0200 [thread overview]
Message-ID: <Y1btrsTd/Jau7naI@lenoch> (raw)
From: Ladislav Michl <ladis@linux-mips.org>
Signed-off-by: Ladislav Michl <ladis@linux-mips.org>
---
CHANGES:
-v2:
dropped from patch:
- module-init-tools: removed by separate patch
- host-libaio: only mysql needs this and it is in staging
other packages compile tested and evetually fixed
rules/ckermit.make | 10 +++++++++-
rules/etherwake.make | 8 +++++++-
rules/gdb.make | 3 ++-
rules/killproc.make | 11 +++++++----
rules/libcgi.make | 2 +-
rules/liblockfile.make | 3 ++-
rules/lpc21isp.make | 2 +-
rules/netcat.make | 5 ++---
rules/pcmciautils.make | 6 +++++-
rules/pv.make | 2 +-
rules/wireless.make | 11 ++++++-----
11 files changed, 43 insertions(+), 20 deletions(-)
diff --git a/rules/ckermit.make b/rules/ckermit.make
index e983803c1..5a6373938 100644
--- a/rules/ckermit.make
+++ b/rules/ckermit.make
@@ -35,7 +35,7 @@ CKERMIT_CONF_TOOL := NO
# Compile
# ----------------------------------------------------------------------------
-CKERMIT_MAKEVARS := \
+CKERMIT_MAKE_OPT := \
xermit \
KTARGET=linuxa \
prefix=/usr \
@@ -46,6 +46,14 @@ CKERMIT_MAKEVARS := \
LNKFLAGS='$(CROSS_LDFLAGS)' \
LIBS='-lncurses -lutil -lresolv -lcrypt -lm'
+# ----------------------------------------------------------------------------
+# Install
+# ----------------------------------------------------------------------------
+
+CKERMIT_INSTALL_OPT := \
+ prefix=/usr \
+ install
+
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
diff --git a/rules/etherwake.make b/rules/etherwake.make
index 8ae6fd734..70285310b 100644
--- a/rules/etherwake.make
+++ b/rules/etherwake.make
@@ -29,7 +29,13 @@ ETHERWAKE_LICENSE := GPL
# Prepare
# ----------------------------------------------------------------------------
-ETHERWAKE_MAKEVARS := CC=$(CROSS_CC)
+ETHERWAKE_CONF_TOOL := NO
+
+# ----------------------------------------------------------------------------
+# Compile
+# ----------------------------------------------------------------------------
+
+ETHERWAKE_MAKE_OPT := CC=$(CROSS_CC)
# ----------------------------------------------------------------------------
# Target-Install
diff --git a/rules/gdb.make b/rules/gdb.make
index 8d2c7ffdb..d8c0c1dc6 100644
--- a/rules/gdb.make
+++ b/rules/gdb.make
@@ -54,12 +54,13 @@ GDB_CONF_ENV := \
host_configargs='$(GDB_CONF_OPT_HOST)'
ifndef PTXCONF_GDB_SHARED
-GDB_MAKEVARS := LDFLAGS=-static
+GDB_MAKE_OPT := LDFLAGS=-static
endif
#
# autoconf
#
+GDB_CONF_TOOL := autoconf
GDB_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--target=$(PTXCONF_GNU_TARGET) \
diff --git a/rules/killproc.make b/rules/killproc.make
index 196d2a45c..fc830dd1f 100644
--- a/rules/killproc.make
+++ b/rules/killproc.make
@@ -25,14 +25,17 @@ KILLPROC_DIR := $(BUILDDIR)/$(KILLPROC)
KILLPROC_LICENSE := GPL-2.0-only
# ----------------------------------------------------------------------------
-# Prepare
+# Prepare + Compile + Install
# ----------------------------------------------------------------------------
-KILLPROC_MAKEVARS := \
- CC=$(CROSS_CC) \
+KILLPROC_CONF_TOOL := NO
+KILLPROC_MAKE_OPT := \
+ CC=$(CROSS_CC)
+KILLPROC_INSTALL_OPT := \
SBINDIR=$(KILLPROC_PKGDIR)/usr/sbin \
UBINDIR=$(KILLPROC_PKGDIR)/usr/bin \
- INSTBINFLAGS="-m 0755"
+ INSTBINFLAGS="-m 0755" \
+ install
# ----------------------------------------------------------------------------
# Target-Install
diff --git a/rules/libcgi.make b/rules/libcgi.make
index eb9d704d2..f761ebaed 100644
--- a/rules/libcgi.make
+++ b/rules/libcgi.make
@@ -34,7 +34,7 @@ LIBCGI_LICENSE := LGPL-2.1-only
LIBCGI_CONF_TOOL := autoconf
LIBCGI_CONF_OPT := $(CROSS_AUTOCONF_USR)
-LIBCGI_MAKEVARS := $(CROSS_ENV_CC) $(CROSS_ENV_AR)
+LIBCGI_MAKE_OPT := $(CROSS_ENV_CC) $(CROSS_ENV_AR)
# ----------------------------------------------------------------------------
# Target-Install
diff --git a/rules/liblockfile.make b/rules/liblockfile.make
index 162ec491b..06f3c8bd1 100644
--- a/rules/liblockfile.make
+++ b/rules/liblockfile.make
@@ -30,7 +30,8 @@ LIBLOCKFILE_LICENSE_FILES := file://COPYRIGHT;md5=35127b30003a121544b5d13a2ac868
# Prepare
# ----------------------------------------------------------------------------
-LIBLOCKFILE_MAKEVARS := ROOT=$(PKGDIR)/$(LIBLOCKFILE) $(CROSS_ENV_AR)
+LIBLOCKFILE_MAKE_OPT := $(CROSS_ENV_AR)
+LIBLOCKFILE_INSTALL_OPT := ROOT=$(PKGDIR)/$(LIBLOCKFILE) install
#
# autoconf
diff --git a/rules/lpc21isp.make b/rules/lpc21isp.make
index f18ad84ee..e6a9fb051 100644
--- a/rules/lpc21isp.make
+++ b/rules/lpc21isp.make
@@ -30,7 +30,7 @@ LPC21ISP_LICENSE := GPL-3.0-or-later
LPC21ISP_CONF_TOOL := NO
LPC21ISP_MAKE_ENV := $(CROSS_ENV)
-LPC21ISP_MAKEVARS := $(CROSS_ENV)
+LPC21ISP_MAKE_OPT := CC=$(CROSS_CC)
# ----------------------------------------------------------------------------
# Install
diff --git a/rules/netcat.make b/rules/netcat.make
index 7dd209f61..c6ecc085d 100644
--- a/rules/netcat.make
+++ b/rules/netcat.make
@@ -28,9 +28,8 @@ NETCAT_LICENSE := BSD
# Prepare
# ----------------------------------------------------------------------------
-NETCAT_CONF_TOOL := NO
-NETCAT_MAKEVARS := \
- $(CROSS_ENV)
+NETCAT_CONF_TOOL := NO
+NETCAT_MAKE_ENV := $(CROSS_ENV)
# ----------------------------------------------------------------------------
# Install
diff --git a/rules/pcmciautils.make b/rules/pcmciautils.make
index d05fc7b7e..dcdd342d5 100644
--- a/rules/pcmciautils.make
+++ b/rules/pcmciautils.make
@@ -32,7 +32,7 @@ PCMCIAUTILS_MAKE_ENV := \
$(CROSS_ENV_CPPFLAGS) \
$(CROSS_ENV_LDFLAGS)
-PCMCIAUTILS_MAKEVARS := \
+PCMCIAUTILS_MAKE_OPT := \
prefix=/usr \
mandir=/usr/share/man \
CROSS=$(COMPILER_PREFIX) \
@@ -40,6 +40,10 @@ PCMCIAUTILS_MAKEVARS := \
STRIP=echo \
$(call ptx/ifdef, PTXCONF_PCMCIAUTILS_STARTUP, STARTUP=true, STARTUP=false)
+PCMCIAUTILS_INSTALL_OPT := \
+ $(PCMCIAUTILS_MAKE_OPT) \
+ install
+
PCMCIAUTILS_MAKE_PAR := NO
$(STATEDIR)/pcmciautils.prepare:
diff --git a/rules/pv.make b/rules/pv.make
index 1c6d67b17..0213816e9 100644
--- a/rules/pv.make
+++ b/rules/pv.make
@@ -26,7 +26,7 @@ PV_DIR := $(BUILDDIR)/$(PV)
# Prepare
# ----------------------------------------------------------------------------
-PV_MAKEVARS := $(CROSS_ENV_LD)
+PV_MAKE_OPT := $(CROSS_ENV_LD)
#
# autoconf
diff --git a/rules/wireless.make b/rules/wireless.make
index e98191ef3..489603383 100644
--- a/rules/wireless.make
+++ b/rules/wireless.make
@@ -29,6 +29,8 @@ WIRELESS_LICENSE := GPL-2.0-only
# Prepare
# ----------------------------------------------------------------------------
+WIRELESS_CONF_TOOL := NO
+
$(STATEDIR)/wireless.prepare:
@$(call targetinfo)
ifdef PTXCONF_WIRELESS_SHARED
@@ -42,7 +44,7 @@ endif
# Compile
# ----------------------------------------------------------------------------
-WIRELESS_MAKEVARS := \
+WIRELESS_MAKE_OPT := \
$(CROSS_ENV_CC) \
PREFIX=/usr
@@ -50,10 +52,9 @@ WIRELESS_MAKEVARS := \
# Install
# ----------------------------------------------------------------------------
-$(STATEDIR)/wireless.install:
- @$(call targetinfo)
- @$(call world/install, WIRELESS)
- @$(call touch)
+WIRELESS_INSTALL_OPT := \
+ PREFIX=/usr \
+ install
# ----------------------------------------------------------------------------
# Target-Install
--
2.32.0
next reply other threads:[~2022-10-24 19:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-24 19:55 Ladislav Michl [this message]
2022-11-11 14:31 ` [ptxdist] [APPLIED] " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y1btrsTd/Jau7naI@lenoch \
--to=oss-lists@triops.cz \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox