From: Brandon Maier via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Thomas Devoogdt <thomas@devoogdt.com>,
Brandon Maier <brandon.maier@collins.com>,
Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH v2 2/2] unifdef: add target package
Date: Thu, 28 Sep 2023 00:27:28 +0000 [thread overview]
Message-ID: <20230928002728.2402-2-brandon.maier@collins.com> (raw)
In-Reply-To: <20230928002728.2402-1-brandon.maier@collins.com>
Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
Change v1 -> v2:
- Move from Misc packages to Dev packages
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/unifdef/Config.in | 9 +++++++++
package/unifdef/unifdef.mk | 9 +++++++++
4 files changed, 20 insertions(+)
create mode 100644 package/unifdef/Config.in
diff --git a/DEVELOPERS b/DEVELOPERS
index e8b78a8d46..defeb502ab 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -513,6 +513,7 @@ F: package/iftop/
F: package/ncdu/
N: Brandon Maier <brandon.maier@collins.com>
+F: package/unifdef/
F: package/vmtouch/
N: Brock Williams <brock@cottonwoodcomputer.com>
diff --git a/package/Config.in b/package/Config.in
index e8dbadadf3..e70479059e 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -201,6 +201,7 @@ menu "Development tools"
source "package/sed/Config.in"
source "package/subversion/Config.in"
source "package/tree/Config.in"
+ source "package/unifdef/Config.in"
source "package/yasm/Config.in"
endmenu
diff --git a/package/unifdef/Config.in b/package/unifdef/Config.in
new file mode 100644
index 0000000000..a1a44d9f5a
--- /dev/null
+++ b/package/unifdef/Config.in
@@ -0,0 +1,9 @@
+config BR2_PACKAGE_UNIFDEF
+ bool "unifdef"
+ help
+ The unifdef utility selectively processes conditional C
+ preprocessor #if and #ifdef directives. It removes from a file
+ both the #directives and the additional text that they
+ delimit, while otherwise leaving the file alone.
+
+ http://dotat.at/prog/unifdef/
diff --git a/package/unifdef/unifdef.mk b/package/unifdef/unifdef.mk
index fd74455894..6761e32b69 100644
--- a/package/unifdef/unifdef.mk
+++ b/package/unifdef/unifdef.mk
@@ -9,6 +9,14 @@ UNIFDEF_SITE = https://dotat.at/prog/unifdef
UNIFDEF_LICENSE = BSD-2-Clause, BSD-3-Clause
UNIFDEF_LICENSE_FILES = COPYING
+define UNIFDEF_BUILD_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D)
+endef
+
+define UNIFDEF_INSTALL_TARGET_CMDS
+ $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(TARGET_DIR) install
+endef
+
define HOST_UNIFDEF_BUILD_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D)
endef
@@ -17,4 +25,5 @@ define HOST_UNIFDEF_INSTALL_CMDS
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) prefix=$(HOST_DIR) install
endef
+$(eval $(generic-package))
$(eval $(host-generic-package))
--
2.41.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2023-09-28 0:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-19 17:22 [Buildroot] [PATCH 1/2] unifdef: add missing license Brandon Maier via buildroot
2023-09-19 17:23 ` [Buildroot] [PATCH 2/2] unifdef: add target package Brandon Maier via buildroot
2023-09-21 8:08 ` Thomas Devoogdt
2023-09-21 17:00 ` [Buildroot] [External] " Maier, Brandon L Collins via buildroot
2023-09-21 7:53 ` [Buildroot] [PATCH 1/2] unifdef: add missing license Thomas Devoogdt
2023-09-28 0:27 ` [Buildroot] [PATCH v2 " Brandon Maier via buildroot
2023-09-28 0:27 ` Brandon Maier via buildroot [this message]
2023-09-28 19:04 ` [Buildroot] [PATCH v2 2/2] unifdef: add target package Thomas Devoogdt
2023-09-28 20:44 ` Yann E. MORIN
2023-09-28 20:44 ` [Buildroot] [PATCH v2 1/2] unifdef: add missing license Yann E. MORIN
2023-10-01 18:28 ` Peter Korsgaard
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=20230928002728.2402-2-brandon.maier@collins.com \
--to=buildroot@buildroot.org \
--cc=brandon.maier@collins.com \
--cc=thomas.petazzoni@bootlin.com \
--cc=thomas@devoogdt.com \
/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