1From 5b5eae9cdf3bae91756c717349f2f33a31888f24 Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Wed, 3 Aug 2022 12:35:16 +0800
4Subject: [PATCH] make_exports.awk: not expose the path
5
6Don't print the full path in the comment line.
7
8Upstream-Status: Inappropriate [oe specific]
9
10Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
11---
12 build/make_exports.awk | 4 +++-
13 1 file changed, 3 insertions(+), 1 deletion(-)
14
15diff --git a/build/make_exports.awk b/build/make_exports.awk
16index 1cf0568..44d93c5 100644
17--- a/build/make_exports.awk
18+++ b/build/make_exports.awk
19@@ -47,7 +47,9 @@ function push(line) {
20
21 function do_output() {
22     printf("/*\n")
23-    printf(" * %s\n", FILENAME)
24+    file = FILENAME
25+    sub("([^/]*[/])*", "", file)
26+    printf(" * %s\n", file)
27     printf(" */\n")
28
29     for (i = 0; i < stackptr; i++) {
30--
312.25.1
32
33