diff options
author | imp <imp@FreeBSD.org> | 2014-02-28 18:29:09 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-02-28 18:29:09 +0000 |
commit | 7c37cf4f64a8b60173836f7982a52d237f80331d (patch) | |
tree | a108ed945633a610d53d8813406306de44eca8c0 /sys/conf | |
parent | 65a6006c96564a609fd04df91eb0f897570e8040 (diff) | |
download | FreeBSD-src-7c37cf4f64a8b60173836f7982a52d237f80331d.zip FreeBSD-src-7c37cf4f64a8b60173836f7982a52d237f80331d.tar.gz |
Integrate device-tree upstream files into the build process:
(1) Invoke cpp to bring in files via #include (although the old
/include/ stuff is supported still).
(2) bring in files from either vendor tree or freebsd-custom files
when building.
(3) move all dts* files from sys/boot/fdt/dts to
sys/boot/fdt/dts/${MACHINE} as appropriate.
(4) encode all the magic to do the build in sys/tools/fdt/make_dtb.sh
so that the different places in the tree use the exact same logic.
(5) switch back to gpl dtc by default. the bsdl one in the tree has
significant issues not easily addressed by those unfamiliar with
the code.
Diffstat (limited to 'sys/conf')
-rw-r--r-- | sys/conf/files | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/conf/files b/sys/conf/files index 3e3a073..160f663 100644 --- a/sys/conf/files +++ b/sys/conf/files @@ -14,11 +14,12 @@ acpi_quirks.h optional acpi \ # 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 ${FDT_DTS_FILE:R}.dtb -b 0 -p 1024 $S/boot/fdt/dts/${FDT_DTS_FILE}; fi" \ + compile-with "sh $S/tools/fdt/make_dtb.sh $S ${FDT_DTS_FILE} ${.CURDIR}/${FDT_DTS_FILE:R}.dtb" \ no-obj no-implicit-rule before-depend \ 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} ." \ + compile-with "sh $S/tools/fdt/make_dtbh.sh ${FDT_DTS_FILE} ${.CURDIR}" \ + dependency "fdt_dtb_file" \ no-obj no-implicit-rule before-depend \ clean "fdt_static_dtb.h" feeder_eq_gen.h optional sound \ @@ -1370,7 +1371,7 @@ dev/fb/splash.c optional sc splash dev/fdt/fdt_common.c optional fdt dev/fdt/fdt_slicer.c optional fdt cfi | fdt nand dev/fdt/fdt_static_dtb.S optional fdt fdt_dtb_static \ - dependency "$S/boot/fdt/dts/${FDT_DTS_FILE}" + dependency "$S/boot/fdt/dts/${MACHINE}/${FDT_DTS_FILE}" dev/fdt/simplebus.c optional fdt dev/fe/if_fe.c optional fe dev/fe/if_fe_pccard.c optional fe pccard |