summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2013-03-14 22:16:13 +0000
committerbrooks <brooks@FreeBSD.org>2013-03-14 22:16:13 +0000
commit1441d9fb6e2050e01a11c4855fd520d18c63ee41 (patch)
treefd51d09afad2180b36b39d4f6ff4327adccaa753
parente07cb106fc1d17231443ceed3c620cdff53cd8fc (diff)
downloadFreeBSD-src-1441d9fb6e2050e01a11c4855fd520d18c63ee41.zip
FreeBSD-src-1441d9fb6e2050e01a11c4855fd520d18c63ee41.tar.gz
FDT_DTS_FILE is expanded in a Makefile so use :R to remove the suffix
rather than using echo|cut to remove everything after the first '.'.
-rw-r--r--sys/conf/files4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 627e7d6..bba5c9d 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -55,9 +55,9 @@ aic79xx_reg_print.o optional ahd pci ahd_reg_pretty_print \
# from the specified source (DTS) file: <platform>.dts -> <platform>.dtb
#
fdt_dtb_file optional fdt \
- compile-with "if [ -f $S/boot/fdt/dts/${FDT_DTS_FILE} ]; then dtc -O dtb -o `echo ${FDT_DTS_FILE} | cut -d. -f1`.dtb -b 0 -p 1024 $S/boot/fdt/dts/${FDT_DTS_FILE}; fi" \
+ compile-with "if [ -f $S/boot/fdt/dts/${FDT_DTS_FILE} ]; then dtc -O dtb -o ${FDT_DTS_FILE:R}.dtb -b 0 -p 1024 $S/boot/fdt/dts/${FDT_DTS_FILE}; fi" \
no-obj no-implicit-rule before-depend \
- clean "`echo ${FDT_DTS_FILE} | cut -d. -f1`.dtb"
+ clean "${FDT_DTS_FILE:R}.dtb"
fdt_static_dtb.h optional fdt fdt_dtb_static \
compile-with "sh $S/tools/fdt/make_dtbh.sh ${FDT_DTS_FILE} ." \
no-obj no-implicit-rule before-depend \
OpenPOWER on IntegriCloud