blob: 70155f9a1dbd203684bcc04e4198c7a6c7d3e5f4 [file] [log] [blame]
Andrew Geisslereff27472021-10-29 15:35:00 -05001From 95b8a13c1ea4274f58304bf5c4f7ca3d036b10f3 Mon Sep 17 00:00:00 2001
2From: Li Wang <li.wang@windriver.com>
3Date: Wed, 30 Aug 2017 15:05:16 +0800
4Subject: [PATCH] Remove host information from version.h
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005
6make lsof not include host information
7
8Upstream-Status: Inappropriate [embedded specific]
9
10Signed-off-by: Li Wang <li.wang@windriver.com>
Andrew Geisslereff27472021-10-29 15:35:00 -050011
Brad Bishopd7bf8c12018-02-25 22:55:05 -050012---
Andrew Geisslereff27472021-10-29 15:35:00 -050013 dialects/linux/Makefile | 50 ++++++++---------------------------------
Brad Bishopd7bf8c12018-02-25 22:55:05 -050014 1 file changed, 9 insertions(+), 41 deletions(-)
15
16diff --git a/dialects/linux/Makefile b/dialects/linux/Makefile
Andrew Geisslereff27472021-10-29 15:35:00 -050017index 61e8643..5458a0a 100644
Brad Bishopd7bf8c12018-02-25 22:55:05 -050018--- a/dialects/linux/Makefile
19+++ b/dialects/linux/Makefile
Andrew Geisslereff27472021-10-29 15:35:00 -050020@@ -95,48 +95,16 @@ version.h: FRC
Brad Bishopd7bf8c12018-02-25 22:55:05 -050021 @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 Geisslereff27472021-10-29 15:35:00 -050026- @echo '#define LSOF_CCDATE "$(BUILD_DATE)"' >> version.h
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027- @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: