Patrick Williams | db4c27e | 2022-08-05 08:10:29 -0500 | [diff] [blame] | 1 | From fa93dab6393527673e642f26b6ea2c4413dd3cfe Mon Sep 17 00:00:00 2001 |
| 2 | From: Mingli Yu <mingli.yu@windriver.com> |
| 3 | Date: Wed, 27 Jul 2022 13:40:12 +0800 |
| 4 | Subject: [PATCH] make-config.sh: hidden the build info |
| 5 | |
| 6 | Use the CC as placeholder to replace the real build information which |
| 7 | will be collected via src/mx/accmacvar.c and then added in the final |
| 8 | binary s-nail, so hidden the build info to avoid revealing the detailed |
| 9 | build info. |
| 10 | |
| 11 | Upstream-Status: Inappropriate [oe specific] |
| 12 | |
| 13 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> |
| 14 | --- |
| 15 | mk/make-config.sh | 6 +++--- |
| 16 | 1 file changed, 3 insertions(+), 3 deletions(-) |
| 17 | |
| 18 | diff --git a/mk/make-config.sh b/mk/make-config.sh |
| 19 | index 2d7c619..9146004 100644 |
| 20 | --- a/mk/make-config.sh |
| 21 | +++ b/mk/make-config.sh |
| 22 | @@ -3637,15 +3637,15 @@ LIBS=`squeeze_ws "${LIBS}"` |
| 23 | COMMLINE=`printf '%s\n' "${COMMLINE}" | ${sed} -e 's/.*--\(.*\)/\1/'` |
| 24 | COMMLINE=`squeeze_ws "${COMMLINE}"` |
| 25 | |
| 26 | -i=`printf '%s %s %s\n' "${CC}" "${CFLAGS}" "${i}"` |
| 27 | +i="CC" |
| 28 | printf '#define VAL_BUILD_CC "%s"\n' "$i" >> ${h} |
| 29 | i=`string_to_char_array "${i}"` |
| 30 | printf '#define VAL_BUILD_CC_ARRAY %s\n' "$i" >> ${h} |
| 31 | -i=`printf '%s %s %s\n' "${CC}" "${LDFLAGS}" "${LIBS}"` |
| 32 | +i="CC" |
| 33 | printf '#define VAL_BUILD_LD "%s"\n' "$i" >> ${h} |
| 34 | i=`string_to_char_array "${i}"` |
| 35 | printf '#define VAL_BUILD_LD_ARRAY %s\n' "$i" >> ${h} |
| 36 | -i=${COMMLINE} |
| 37 | +i="CC" |
| 38 | printf '#define VAL_BUILD_REST "%s"\n' "$i" >> ${h} |
| 39 | i=`string_to_char_array "${i}"` |
| 40 | printf '#define VAL_BUILD_REST_ARRAY %s\n' "$i" >> ${h} |
| 41 | -- |
| 42 | 2.25.1 |
| 43 | |