Skip to content

Commit b775f49

Browse files
vireshkrobherring
authored andcommitted
scripts: dtc: Fetch fdtoverlay.c from external DTC project
We will start building overlays for platforms soon in the kernel and would need fdtoverlay tool going forward. Lets start fetching it. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/28f66f70602225bb6aeb58e924c20bde9d864327.1611904394.git.viresh.kumar@linaro.org
1 parent 5c8fe58 commit b775f49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/dtc/update-dtc-source.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ DTC_SOURCE="checks.c data.c dtc.c dtc.h flattree.c fstree.c livetree.c srcpos.c
3737
LIBFDT_SOURCE="fdt.c fdt.h fdt_addresses.c fdt_empty_tree.c \
3838
fdt_overlay.c fdt_ro.c fdt_rw.c fdt_strerror.c fdt_sw.c \
3939
fdt_wip.c libfdt.h libfdt_env.h libfdt_internal.h"
40+
FDTOVERLAY_SOURCE=fdtoverlay.c
4041

4142
get_last_dtc_version() {
4243
git log --oneline scripts/dtc/ | grep 'upstream' | head -1 | sed -e 's/^.* \(.*\)/\1/'
@@ -54,7 +55,7 @@ dtc_log=$(git log --oneline ${last_dtc_ver}..)
5455

5556
# Copy the files into the Linux tree
5657
cd $DTC_LINUX_PATH
57-
for f in $DTC_SOURCE; do
58+
for f in $DTC_SOURCE $FDTOVERLAY_SOURCE; do
5859
cp ${DTC_UPSTREAM_PATH}/${f} ${f}
5960
git add ${f}
6061
done

0 commit comments

Comments
 (0)