Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 1 | From 95b8a13c1ea4274f58304bf5c4f7ca3d036b10f3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Li Wang <li.wang@windriver.com> |
| 3 | Date: Wed, 30 Aug 2017 15:05:16 +0800 |
| 4 | Subject: [PATCH] Remove host information from version.h |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | |
| 6 | make lsof not include host information |
| 7 | |
| 8 | Upstream-Status: Inappropriate [embedded specific] |
| 9 | |
| 10 | Signed-off-by: Li Wang <li.wang@windriver.com> |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 11 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 12 | --- |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 13 | dialects/linux/Makefile | 50 ++++++++--------------------------------- |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | 1 file changed, 9 insertions(+), 41 deletions(-) |
| 15 | |
| 16 | diff --git a/dialects/linux/Makefile b/dialects/linux/Makefile |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 17 | index 61e8643..5458a0a 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 18 | --- a/dialects/linux/Makefile |
| 19 | +++ b/dialects/linux/Makefile |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 20 | @@ -95,48 +95,16 @@ version.h: FRC |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 21 | @echo Constructing version.h |
| 22 | @rm -f version.h |
| 23 | @echo '#define LSOF_BLDCMT "${LSOF_BLDCMT}"' > version.h; |
| 24 | - @echo '#define LSOF_CC "${CC}"' >> version.h |
| 25 | - @echo '#define LSOF_CCV "${CCV}"' >> version.h |
Andrew Geissler | eff2747 | 2021-10-29 15:35:00 -0500 | [diff] [blame^] | 26 | - @echo '#define LSOF_CCDATE "$(BUILD_DATE)"' >> version.h |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | - @echo '#define LSOF_CCFLAGS "'`echo ${CFLAGS} | sed 's/\\\\(/\\(/g' | sed 's/\\\\)/\\)/g' | sed 's/"/\\\\"/g'`'"' >> version.h |
| 28 | + @echo '#define LSOF_CC ""' >> version.h |
| 29 | + @echo '#define LSOF_CCV ""' >> version.h |
| 30 | + @echo '#define LSOF_CCDATE ""' >> version.h |
| 31 | + @echo '#define LSOF_CCFLAGS ""' >> version.h |
| 32 | @echo '#define LSOF_CINFO "${CINFO}"' >> version.h |
| 33 | - @if [ "X${LSOF_HOST}" = "X" ]; then \ |
| 34 | - echo '#define LSOF_HOST "'`uname -n`'"' >> version.h; \ |
| 35 | - else \ |
| 36 | - if [ "${LSOF_HOST}" = "none" ]; then \ |
| 37 | - echo '#define LSOF_HOST ""' >> version.h; \ |
| 38 | - else \ |
| 39 | - echo '#define LSOF_HOST "${LSOF_HOST}"' >> version.h; \ |
| 40 | - fi \ |
| 41 | - fi |
| 42 | - @echo '#define LSOF_LDFLAGS "${CFGL}"' >> version.h |
| 43 | - @if [ "X${LSOF_LOGNAME}" = "X" ]; then \ |
| 44 | - echo '#define LSOF_LOGNAME "${LOGNAME}"' >> version.h; \ |
| 45 | - else \ |
| 46 | - if [ "${LSOF_LOGNAME}" = "none" ]; then \ |
| 47 | - echo '#define LSOF_LOGNAME ""' >> version.h; \ |
| 48 | - else \ |
| 49 | - echo '#define LSOF_LOGNAME "${LSOF_LOGNAME}"' >> version.h; \ |
| 50 | - fi; \ |
| 51 | - fi |
| 52 | - @if [ "X${LSOF_SYSINFO}" = "X" ]; then \ |
| 53 | - echo '#define LSOF_SYSINFO "'`uname -a`'"' >> version.h; \ |
| 54 | - else \ |
| 55 | - if [ "${LSOF_SYSINFO}" = "none" ]; then \ |
| 56 | - echo '#define LSOF_SYSINFO ""' >> version.h; \ |
| 57 | - else \ |
| 58 | - echo '#define LSOF_SYSINFO "${LSOF_SYSINFO}"' >> version.h; \ |
| 59 | - fi \ |
| 60 | - fi |
| 61 | - @if [ "X${LSOF_USER}" = "X" ]; then \ |
| 62 | - echo '#define LSOF_USER "${USER}"' >> version.h; \ |
| 63 | - else \ |
| 64 | - if [ "${LSOF_USER}" = "none" ]; then \ |
| 65 | - echo '#define LSOF_USER ""' >> version.h; \ |
| 66 | - else \ |
| 67 | - echo '#define LSOF_USER "${LSOF_USER}"' >> version.h; \ |
| 68 | - fi \ |
| 69 | - fi |
| 70 | + @echo '#define LSOF_HOST ""' >> version.h; |
| 71 | + @echo '#define LSOF_LDFLAGS ""' >> version.h |
| 72 | + @echo '#define LSOF_LOGNAME ""' >> version.h; |
| 73 | + @echo '#define LSOF_SYSINFO ""' >> version.h; |
| 74 | + @echo '#define LSOF_USER ""' >> version.h; |
| 75 | @sed '/VN/s/.ds VN \(.*\)/#define LSOF_VERSION "\1"/' < version >> version.h |
| 76 | |
| 77 | FRC: |