public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [PATCH 2/7] CI: Update unmigrated symbol check
Date: Mon, 21 Mar 2022 21:33:28 -0400	[thread overview]
Message-ID: <20220322013333.3874290-2-trini@konsulko.com> (raw)
In-Reply-To: <20220322013333.3874290-1-trini@konsulko.com>

We need to check for config header files that #undef migrated symbols as
well.

Signed-off-by: Tom Rini <trini@konsulko.com>
---
 .azure-pipelines.yml | 6 ++++--
 .gitlab-ci.yml       | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml
index 0f1a1bd86326..cf6d28cf050f 100644
--- a/.azure-pipelines.yml
+++ b/.azure-pipelines.yml
@@ -68,8 +68,10 @@ stages:
              -e 's/^\s*menuconfig *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p' \
              | sort -u > $KSYMLST
           for CFG in `find include/configs -name "*.h"`; do
-             grep '#define[[:blank:]]CONFIG_' $CFG | \
-                sed -n 's/#define.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' | \
+             (grep '#define[[:blank:]]CONFIG_' $CFG | \
+                sed -n 's/#define.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' ; \
+                grep '#undef[[:blank:]]CONFIG_' $CFG | \
+                sed -n 's/#undef.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p') | \
                 sort -u > ${KUSEDLST} || true
              NUM=`comm -123 --total --output-delimiter=, ${KSYMLST} ${KUSEDLST} | \
                 cut -d , -f 3`
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 388e666ec9e3..a5a5d78a86fb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -129,8 +129,10 @@ check for migrated symbols in board header:
          -e 's/^\s*menuconfig *\([A-Za-z0-9_]*\).*$/CONFIG_\1/p'
          | sort -u > $KSYMLST;
       for CFG in `find include/configs -name "*.h"`; do
-         grep '#define[[:blank:]]CONFIG_' $CFG |
-            sed -n 's/#define.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' |
+         (grep '#define[[:blank:]]CONFIG_' $CFG |
+            sed -n 's/#define.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p' ;
+            grep '#undef[[:blank:]]CONFIG_' $CFG |
+            sed -n 's/#undef.\(CONFIG_[A-Za-z0-9_]*\).*/\1/p') |
             sort -u > ${KUSEDLST} || true;
          NUM=`comm -123 --total --output-delimiter=, ${KSYMLST} ${KUSEDLST} |
             cut -d , -f 3`;
-- 
2.25.1


  reply	other threads:[~2022-03-22  1:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22  1:33 [PATCH 1/7] am33xx: musb: Remove unused configuration logic Tom Rini
2022-03-22  1:33 ` Tom Rini [this message]
2022-03-22  1:33 ` [PATCH 3/7] Finish converting CONFIG_BOOTM_NETBSD et al to Kconfig Tom Rini
2022-03-22  1:33 ` [PATCH 4/7] Convert CONFIG_BCM2835_GPIO " Tom Rini
2022-03-22  1:33 ` [PATCH 5/7] Convert CONFIG_BITBANGMII_MULTI " Tom Rini
2022-03-22  1:33 ` [PATCH 6/7] Remove CONFIG_BOARDNAME and CONFIG_BOARD_NAME Tom Rini
2022-03-22  1:33 ` [PATCH 7/7] atmel: Remove CONFIG_SPL_ATMEL_SIZE Tom Rini
2022-04-01 18:45 ` [PATCH 1/7] am33xx: musb: Remove unused configuration logic Tom Rini

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=20220322013333.3874290-2-trini@konsulko.com \
    --to=trini@konsulko.com \
    --cc=u-boot@lists.denx.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