Skip to contentSkip to conversation

xilinx-kernel: Change string comparision checks to use strict POSIX compliance.

meta-xilinx Elvis Dowson 1 participant 1 message Jun 8, 2012 Arm/Zynq architecture

lore
Share & tools
lore
#0 lore raw

This commit fixes an issue with string comparision checks failing because of not using strict POSIX compliance, therby failing to copy the device tree from the hardware model to the linux kernel device tree.

---
 classes/xilinx-kernel.bbclass |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
classes/xilinx-kernel.bbclass +4 -2
index c0e11fe..14f4c7d 100644
@@ -42,10 +42,12 @@ if [ -n "${XILINX_BSP_PATH}" ]; then
 	if [ "${XILINX_BOARD}" != "unknown" ]; then
 		dts=`find "${XILINX_BSP_PATH}" -name *.dts -print`
 		if [ -e "$dts" ]; then
-			bbnote "Replacing device tree to match hardware model"
-			if [ "${TARGET_ARCH}" == "powerpc" ]; then
+			bbnote "Xilinx BSP device tree located in: ${dts}"
+			if [ "${TARGET_ARCH}" = "powerpc" ]; then
+				bbnote "Replacing linux kernel powerpc device tree to match located hardware model"
 				cp -pP ${dts} ${S}/arch/powerpc/boot/dts/virtex${KERNEL_TARGET}.dts
 			else
+				bbnote "Replacing linux kernel microblaze device tree to match located hardware model"
 				cp -pP ${dts} ${S}/arch/microblaze/platform/generic/${KERNEL_TARGET}.dts
 			fi
 		else
Signature · 1 line
1.7.9.5