Skip to content

Commit 02409f8

Browse files
Marcel Moolenaarwdenx
authored andcommitted
make define2mk.sed work on FreeBSD
In the thread "[1.3.2-rc1] MPC8548CDS/MPC8555CDS configs fails to link", the define2mk.sed script was identified as the source of the link failure on FreeBSD. The problem is that sed(1) does not always support the '+' operator. It isn't on FreeBSD. The attach patch implements the equivalent, using the '*' operator instead and should work everywhere. Signed-off-by: Marcel Moolenaar <marcelm@juniper.net>
1 parent e5084af commit 02409f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/scripts/define2mk.sed

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
#
88

99
# Only process values prefixed with #define CONFIG_
10-
/^#define CONFIG_[A-Za-z0-9_]\+/ {
10+
/^#define CONFIG_[A-Za-z0-9_][A-Za-z0-9_]*/ {
1111
# Strip the #define prefix
1212
s/#define *//;
1313
# Change to form CONFIG_*=VALUE
14-
s/ \+/=/;
14+
s/ */=/;
1515
# Drop trailing spaces
1616
s/ *$//;
1717
# drop quotes around string values

0 commit comments

Comments
 (0)