summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/linux/linux-dtb.inc
Commit message (Collapse)AuthorAgeFilesLines
* linux-dtb.inc: use absolute upd-alt pathsChristopher Larson2016-01-111-2/+2
| | | | | | | | | | | This works around a limitation of the chkconfig update-alternatives, so it works with all our update-alternatives providers. (From OE-Core rev: f78c640f1f41eb12ef7919e7dc99aae7db6f6b17) Signed-off-by: Christopher Larson <chris_larson@mentor.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: refactor common code to function get_real_dtb_path_in_kernelStefan Christ2015-11-161-8/+11
| | | | | | | | (From OE-Core rev: 04ed298520d38e0b078723b1b45368b7037cf6e0) Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: refactor common code to function normalize_dtbStefan Christ2015-11-161-12/+12
| | | | | | | | (From OE-Core rev: 5dfa10978ef540a7a8cd89766c40625ccfeffda2) Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: explicit test for empty string not neededStefan Christ2015-11-161-42/+36
| | | | | | | | | | The for loop already handles the case when KERNEL_DEVICETREE is empty. (From OE-Core rev: 49010f4a1ae9570e96691c9faeb17808174488fe) Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: use same variable name DTB for all elements of KERNEL_DEVICETREEStefan Christ2015-11-161-4/+4
| | | | | | | | (From OE-Core rev: 1e9ac2c4970b2fc7f8ed939bce7cf0a5c7715ca3) Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: remove unneeded 'cd'Stefan Christ2015-11-161-3/+1
| | | | | | | | (From OE-Core rev: 2d7680a104e2910c90d8aceeb12c24dfde2cd2d6) Signed-off-by: Stefan Christ <s.christ@phytec.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* kernel: Build DTBs earlyMarek Vasut2015-05-261-2/+12
| | | | | | | | | | | | | | | | Pull out the compilation of the DTB blobs right after the kernel's own do_compile function finishes. This makes them available just in time for the kernel image construction functions. (From OE-Core rev: 86b3f29f93e3f87903668ea317c6bd97be4cdf62) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Koen Kooi <koen@dominion.thruhere.net> Cc: Paul Eggleton <paul.eggleton@linux.intel.com> Cc: Ross Burton <ross.burton@intel.com> Cc: Bruce Ashfield <bruce.ashfield@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: Fix dtb generation for kernels newer than 3.8Otavio Salvador2013-08-201-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 3.8 kernel has change the default directory where the dtb file is stored. The change has been done at: ,----[ Quote of 3.8 kernel change ] | commit 499cd8298628eeabf0eb5eb6525d4faa0eec80d8 | Author: Grant Likely <grant.likely@secretlab.ca> | Date: Tue Nov 27 16:29:11 2012 -0700 | | ARM: dt: change .dtb build rules to build in dts directory | | The current rules have the .dtb files build in a different directory | from the .dts files. The only reason for this is that it was what | PowerPC has done historically. This patch changes ARM to use the generic | dtb rule which builds .dtb files in the same directory as the source .dts. | | Cc: Russell King <linux@arm.linux.org.uk> | Cc: Arnd Bergmann <arnd@arndb.de> | Acked-by: Olof Johansson <olof@lixom.net> | Cc: linux-arm-kernel@lists.infradead.org | Signed-off-by: Grant Likely <grant.likely@secretlab.ca> | [swarren: added rm command for old stale .dtb files] | Signed-off-by: Stephen Warren <swarren@nvidia.com> | Signed-off-by: Rob Herring <rob.herring@calxeda.com> `---- This change adds support for both places to backward and forward compatibility. (From OE-Core rev: 0ec3710b8dcae311e8d9d676d5f1c6843a81383b) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb: Use kernel build system to generate the dtb filesOtavio Salvador2013-08-161-32/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As the Linux kernel, unconditionally, builds the dtc application and it is the compatible version with the DeviceTree files shipped within the kernel it is better to use it and the kernel build system to generate the dtb files. Some DeviceTree files rely on CPP and kernel headers to be able to generate the dtb binary contents and it is harder to replicate it outside of Linux kernel build system so we /use/ it. To comply with these assumptions we need to use the dtb file when calling 'make' instead of pointing to the DeviceTree source file; the code has been made backward compatible but it is advised to move to the new definition to avoid warnings as: ,----[ Original definition ] | KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx6q-sabresd.dts" `---- Becomes: ,----[ New definition ] | KERNEL_DEVICETREE = "imx6q-sabresd.dtb" `---- (From OE-Core rev: 72980d5bb465f0640ed451d1ebb9c5d2a210ad0c) Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: Replace /boot/ with /${KERNEL_IMAGEDEST}/Mike Looijmans2013-08-131-2/+2
| | | | | | | | | | | | | | | Devicetree files were installed hard-coded in /boot. When KERNEL_IMAGEDEST is anything else but "boot", the postinstall script and the file locations no longer match and the postinstall will fail. Replace "boot" with "${KERNEL_IMAGEDEST}" to fix this problem, and to allow the devicetree files to be installed in another location. (From OE-Core rev: 0f589b9a38397fdf55025062a45889b19d1c83c4) Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* classes/recipes/lib: Fix various python whitespace issuesRichard Purdie2013-05-091-4/+4
| | | | | | | | | There are some left over tab characters in the python functions. This removes them and resolves python 3 errors. (From OE-Core rev: fafeb381c48291fa65c634c01c244843c8d7fad3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb: fix whitespace in bash functionsChase Maupin2013-04-041-43/+43
| | | | | | | | | | | * Fix the whitespace in the base functions to use TAB instead of spaces. This is to address feedback from: Darren Hart <dvhart@linux.intel.com> (From OE-Core rev: ab6630df4d100ff501b33a1c7ec9d1e6a2d4f0ee) Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb: Add simple DTB symlinks for devicetreeChase Maupin2013-04-041-0/+20
| | | | | | | | | | | | | | | | * This is similar to the symlinks provided for the kernel image in the /boot directory of a file system. The goal is to have simply named symlinks in /boot that mirror the device tree name in the kernel sources. This is so that programs like U-Boot can easily find the default device tree binary in the /boot directory and use that when booting the kernel. * Use update-alternatives to handle proper creation and removal of the symlinks. (From OE-Core rev: 750a9554e1b85d9bd23d18e0630723c3c193c604) Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtc: Make KERNEL_DEVICETREE_FLAGS configurableAnders Roxell2013-02-221-1/+1
| | | | | | | | (From OE-Core rev: f46c5714bc23a50a207c03cc20c3a6aebe8c5df0) Signed-off-by: Anders Roxell <anders.roxell@enea.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Remove a number of unneeded import os/bb callsRichard Purdie2012-07-191-2/+0
| | | | | | | | | | The bb and os modules are always imported so having these extra import calls are a waste of space/execution time. They also set a bad example for people copy and pasting code so clean them up. (From OE-Core rev: 7d674820958be3a7051ea619effe1a6061d9cbe2) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb: add multi-dtb build supportZhenhua Luo2012-06-281-7/+29
| | | | | | | | | | | | including following enhancement: * support multi-dtb build * skip dtb build and install when KERNEL_DEVICETREE is empty * print a warning message when specified dts file is not available (From OE-Core rev: 66f7921f34dfa8b3c7f8f7184715214164f3f8b0) Signed-off-by: Zhenhua Luo <b19537@freescale.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb: Ensure dtb files are covered by sstateRichard Purdie2012-04-121-3/+3
| | | | | | | | | | | | | The dtb files were not being installed into a location compatible with sstate and the do_deploy task. This means in builds just using sstate, the dtb files disappeared. This patch fixes the code to use the correct location for deploy files. [YOCTO #2190] (From OE-Core rev: 9815b7a95ac33d3234073cdd204d9389b4241189) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* meta: Convert getVar/getVarFlag(xxx, 1) -> (xxx, True)Richard Purdie2012-03-051-3/+3
| | | | | | | | | | | | Using "1" with getVar is bad coding style and "True" is preferred. This patch is a sed over the meta directory of the form: sed \ -e 's:\(\.getVar([^,()]*, \)1 *):\1True):g' \ -e 's:\(\.getVarFlag([^,()]*, [^,()]*, \)1 *):\1True):g' \ -i `grep -ril getVar *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* Convert to use direct access to the data store (instead of bb.data.*Var*())Richard Purdie2011-11-101-5/+5
| | | | | | | | | | | | | | | | | This is the result of running the following over the metadata: sed \ -e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \ -e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \ -e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \ -e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \ -i `grep -ril bb.data *` (From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux-dtb.inc: Fix package name to match PACKAGESRichard Purdie2011-02-111-1/+1
| | | | Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* linux: factor dts/dtc/dtb handling into a specific includeBruce Ashfield2011-02-091-0/+27
Fixes [BUGID #610] The powerpc linux-yocto kernels were not creating dtb images in the deploy directories. This was due to two problems: - the dtb generation rules were not being configured - the boards were not specifying a device tree in their config This change addresses the first point by factoring out the dtb generation routines into a new include that can be used by multiple recipes. Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>