From: jason@lakedaemon.net (Jason Cooper) Date: Tue, 12 Nov 2013 15:08:07 -0500 Subject: [RFC DTC PATCH] dtc: add symlink (-L) output to dtbs In-Reply-To: <20131112194009.GA13577@lunn.ch> References: <1384201760-16785-1-git-send-email-jason@lakedaemon.net> <52814AFB.3070600@wwwdotorg.org> <528275B7.6050209@wwwdotorg.org> <20131112193012.GR10335@titan.lakedaemon.net> <20131112194009.GA13577@lunn.ch> Message-ID: <20131112200807.GS10335@titan.lakedaemon.net> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tue, Nov 12, 2013 at 08:40:09PM +0100, Andrew Lunn wrote: > > 2) right now: distributions are creating utilities, such a flash-kernel > > in Debian, that pick from a slew of dtbs, append it to the zImage, and > > create the uImage. The bootloaders in these installs don't have support > > for fdt. > > > > Our problem (as I see it) is that #2 is creating an ABI out of something > > we never realized would become an ABI, the filenames created by 'make > > dtbs'. > > Well, flash-kernel could be taught how to parse .dtb files to get the > compatibility strings out of them, rather than use filenames. > > It might still be early enough to give distributions some guidelines > about what DT folks consider ABI and what is not. How they should find > a fitting .dtb file and how they should not. True, but this isn't a 'search /boot/config-X for CONFIG_Y so we can configure for Z' *cough* *grub* *cough*. flash-kernel currently doesn't have any more correct way to select dtbs than by filename. It's normal to look for arch//boot/zImage after a build. Module names are not 1-1 with object files or source files, they are unique, and static. Our failure was not providing a similar ABI for the dtbs. imho, we messed up, so we should fix it. thx, Jason.