Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrightsThese ones were unambiguous cases where the Foundation was the onlylisted copyright holder (in the associated license block).S
Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrightsThese ones were unambiguous cases where the Foundation was the onlylisted copyright holder (in the associated license block).Sponsored by: The FreeBSD Foundation(cherry picked from commit 9feff969a01044c3083b552f06f7eb6416bc0524)
show more ...
Switch to the new device-tree vendor treeThe old vendor tree was never fully merged and doing partial merge isn'tsupported with git subtree merge so a new one was created.Switch the build to use
Switch to the new device-tree vendor treeThe old vendor tree was never fully merged and doing partial merge isn'tsupported with git subtree merge so a new one was created.Switch the build to use the new DTS from sys/contrib/device-treeThis also bump the DTS used to be in sync with Linux 5.9While here change the way to get the linux version, simply hardcodethe value in sys/dts/freebsd-compatible.dts and use awk to get thatto put it in the CFLAGS.As a bonus we now have the bindings docs availablein sys/contrib/device-tree/Bindings/ so no need to link to the Linux repoor to the vendor tree.
Brand our DTS with the Linux version it was imported fromDTS must be synced with the kernel, add a freebsd,dts-version string inthe root node of each DTS that we compile so we can later in the ker
Brand our DTS with the Linux version it was imported fromDTS must be synced with the kernel, add a freebsd,dts-version string inthe root node of each DTS that we compile so we can later in the kernelcheck that it contain a correct value.Reviewed by: imp, mmelDifferential Revision: https://reviews.freebsd.org/D26724
make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATHThis fixes building in CheriBSD with a strict tmp path since we don'tbootstrap a cpp but pass the full path to clang-cpp instead.Whi
make_dtb.sh: Use $CPP instead of assuming that cpp is in $PATHThis fixes building in CheriBSD with a strict tmp path since we don'tbootstrap a cpp but pass the full path to clang-cpp instead.While touching this file also fix all shellcheck warnings in make_dtb.sh.Reviewed By: manuDifferential Revision: https://reviews.freebsd.org/D18376
Use ${ECHO} in dtb/dtbo build, pass in from dtb.mk for -sReported by: sbrunoMFC after: 3 days
make_dtb: Always add root directory in the include pathSome arch like arm and arm64 share DTS files, add the root dts directoryto the include paths.
Add dtb overlays supportDTB Overlays are useful to change/add nodes to a dtb without the need tomodify it.Add support for building dtbo during buildkernel.The goal of DTBO present in the FreeBSD
Add dtb overlays supportDTB Overlays are useful to change/add nodes to a dtb without the need tomodify it.Add support for building dtbo during buildkernel.The goal of DTBO present in the FreeBSD source tree is to fill a gap intime when we submit changes upstream (Linux). Instead of waiting 2 to 4 monthswe can add a DTBO in tree in the meantime.This is not for adding DTBO for capes/hat/addon boards, those will bebetter to put in a ports.This is also not for enabling a i2c/spi/pwm controller on certain pins,each user have a different use case for those (which pins to use etc ...)and we cannot have all possible configuration.Add a dtbo for sun8i-h3-sid which add the SID node missing in upstream dts.Reviewed by: kevansDifferential Revision: https://reviews.freebsd.org/D14782
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorpro
sys: general adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 2-Clause license, however the tool Iwas using misidentified many licenses so this was mostly a manual - errorprone - task.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.No functional change intended.
Move sys/boot/fdt/dts to sys/dts and adjust scripts.Sponsored by: Netflix
make.conf: Add the possibility to use another DTCAdd a make.conf DTC variable that control which DTC (Device Tree Compiler)to use.Reviewed by: bdrewery, impDifferential Revision: https://review
make.conf: Add the possibility to use another DTCAdd a make.conf DTC variable that control which DTC (Device Tree Compiler)to use.Reviewed by: bdrewery, impDifferential Revision: https://reviews.freebsd.org/D9577
[fdt] Make DTBs generated by make_dtb.sh overlay-readyGenerate symbols node when compiling dts files so they can be modifiedduring boot-time by applying overlays.
Allow the make_dtb script to work outside of a "make buildkernel" contextby setting MACHINE from uname -m if it's not set already.Reviewed by: imp, tuexen
Call cpp with -P to avoid printing line markings.
Fix logic error. <blush>Submitted by: ian@
Turns out this .if evaluated not in the context of the makedtb targetsometimes due to Makefile expansion rules. Make the test for thingsbeing NULL elsewhere...
Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in akernel config file. If you also want to have a static DTB compiledinto your kernel, however, it cannot be a list. We have no me
Allow FDT_DTS_FILE to be a list, either in the makedtb target, or in akernel config file. If you also want to have a static DTB compiledinto your kernel, however, it cannot be a list. We have no mechanismin the kernel for picking one, so that doesn't make sense and willresult in a compile-time error.
Use proper include path for dtc as well as cpp.
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 ve
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.
Flattened Device Tree helper scripts.Reviewed by: impSponsored by: The FreeBSD Foundation