Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166150044
D35480.id106920.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D35480.id106920.diff
View Options
diff --git a/sys/conf/kmod.mk b/sys/conf/kmod.mk
--- a/sys/conf/kmod.mk
+++ b/sys/conf/kmod.mk
@@ -199,7 +199,7 @@
${CC:N${CCACHE_BIN}} -c -x assembler-with-cpp -DLOCORE \
${CFLAGS} ${WERROR} \
-DFIRMW_FILE="${.ALLSRC:M*${_firmw:C/\:.*$//}}" \
- -DFIRMW_SYMBOL="${_firmw:C/\:.*$//:C/[-.\/]/_/g}" \
+ -DFIRMW_SYMBOL="${_firmw:C/\:.*$//:C/[-.\/@]/_/g}" \
${SYSDIR}/kern/firmw.S -o ${.TARGET}
OBJS+= ${_firmw:C/\:.*$/.fwo/:T}
diff --git a/sys/tools/fw_stub.awk b/sys/tools/fw_stub.awk
--- a/sys/tools/fw_stub.awk
+++ b/sys/tools/fw_stub.awk
@@ -143,8 +143,8 @@
for (file_i = 0; file_i < num_files; file_i++) {
symb = filenames[file_i];
- # '-', '.' and '/' are converted to '_'
- gsub(/-|\.|\//, "_", symb);
+ # '-', '.', '/', and '@' are converted to '_'
+ gsub(/-|\.|\/|@/, "_", symb);
printc("extern char _binary_" symb "_start[], _binary_" symb "_end[];");
}
@@ -172,8 +172,8 @@
short = shortnames[file_i];
symb = filenames[file_i];
version = versions[file_i];
- # '-', '.' and '/' are converted to '_'
- gsub(/-|\.|\//, "_", symb);
+ # '-', '.', '/', and '@' are converted to '_'
+ gsub(/-|\.|\/|@/, "_", symb);
reg = "\t\tfp = ";
reg = reg "firmware_register(\"" short "\", _binary_" symb "_start , ";
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 12, 11:42 PM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36563041
Default Alt Text
D35480.id106920.diff (1 KB)
Attached To
Mode
D35480: firmware: Map '@' in filenames to '_' in symbols.
Attached
Detach File
Event Timeline
Log In to Comment