summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorChase Maupin <Chase.Maupin@ti.com>2013-04-03 14:23:59 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-04 14:08:06 +0100
commit824856181b429705ea1f528413c06a0efbf1c9d8 (patch)
treedbd1452840cd72a99d898469979b188f65fd875f /meta/recipes-kernel
parente16dc3d7fc5c010423b4675da4be5f253197f63c (diff)
downloadpoky-824856181b429705ea1f528413c06a0efbf1c9d8.tar.gz
linux-dtb: fix whitespace in bash functions
* 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>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/linux/linux-dtb.inc86
1 files changed, 43 insertions, 43 deletions
diff --git a/meta/recipes-kernel/linux/linux-dtb.inc b/meta/recipes-kernel/linux/linux-dtb.inc
index 421ffa336c..58b93a1255 100644
--- a/meta/recipes-kernel/linux/linux-dtb.inc
+++ b/meta/recipes-kernel/linux/linux-dtb.inc
@@ -12,56 +12,56 @@ python __anonymous () {
12} 12}
13 13
14do_install_append() { 14do_install_append() {
15 if test -n "${KERNEL_DEVICETREE}"; then 15 if test -n "${KERNEL_DEVICETREE}"; then
16 for DTS_FILE in ${KERNEL_DEVICETREE}; do 16 for DTS_FILE in ${KERNEL_DEVICETREE}; do
17 if [ ! -f ${DTS_FILE} ]; then 17 if [ ! -f ${DTS_FILE} ]; then
18 echo "Warning: ${DTS_FILE} is not available!" 18 echo "Warning: ${DTS_FILE} is not available!"
19 continue 19 continue
20 fi 20 fi
21 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'` 21 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
22 DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"` 22 DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
23 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"` 23 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
24 dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o ${DTS_BASE_NAME} ${DTS_FILE} 24 dtc -I dts -O dtb ${KERNEL_DEVICETREE_FLAGS} -o ${DTS_BASE_NAME} ${DTS_FILE}
25 install -m 0644 ${DTS_BASE_NAME} ${D}/boot/devicetree-${DTB_SYMLINK_NAME}.dtb 25 install -m 0644 ${DTS_BASE_NAME} ${D}/boot/devicetree-${DTB_SYMLINK_NAME}.dtb
26 done 26 done
27 fi 27 fi
28} 28}
29 29
30do_deploy_append() { 30do_deploy_append() {
31 if test -n "${KERNEL_DEVICETREE}"; then 31 if test -n "${KERNEL_DEVICETREE}"; then
32 for DTS_FILE in ${KERNEL_DEVICETREE}; do 32 for DTS_FILE in ${KERNEL_DEVICETREE}; do
33 if [ ! -f ${DTS_FILE} ]; then 33 if [ ! -f ${DTS_FILE} ]; then
34 echo "Warning: ${DTS_FILE} is not available!" 34 echo "Warning: ${DTS_FILE} is not available!"
35 continue 35 continue
36 fi 36 fi
37 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'` 37 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
38 DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"` 38 DTB_NAME=`echo ${KERNEL_IMAGE_BASE_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
39 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"` 39 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
40 install -d ${DEPLOYDIR} 40 install -d ${DEPLOYDIR}
41 install -m 0644 ${B}/${DTS_BASE_NAME} ${DEPLOYDIR}/${DTB_NAME}.dtb 41 install -m 0644 ${B}/${DTS_BASE_NAME} ${DEPLOYDIR}/${DTB_NAME}.dtb
42 cd ${DEPLOYDIR} 42 cd ${DEPLOYDIR}
43 ln -sf ${DTB_NAME}.dtb ${DTB_SYMLINK_NAME}.dtb 43 ln -sf ${DTB_NAME}.dtb ${DTB_SYMLINK_NAME}.dtb
44 cd - 44 cd -
45 done 45 done
46 fi 46 fi
47} 47}
48 48
49pkg_postinst_kernel-devicetree () { 49pkg_postinst_kernel-devicetree () {
50 cd /${KERNEL_IMAGEDEST} 50 cd /${KERNEL_IMAGEDEST}
51 for DTS_FILE in ${KERNEL_DEVICETREE} 51 for DTS_FILE in ${KERNEL_DEVICETREE}
52 do 52 do
53 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'` 53 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
54 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"` 54 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
55 update-alternatives --install /${KERNEL_IMAGEDEST}/${DTS_BASE_NAME}.dtb ${DTS_BASE_NAME}.dtb devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true 55 update-alternatives --install /${KERNEL_IMAGEDEST}/${DTS_BASE_NAME}.dtb ${DTS_BASE_NAME}.dtb devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
56 done 56 done
57} 57}
58 58
59pkg_postrm_kernel-devicetree () { 59pkg_postrm_kernel-devicetree () {
60 cd /${KERNEL_IMAGEDEST} 60 cd /${KERNEL_IMAGEDEST}
61 for DTS_FILE in ${KERNEL_DEVICETREE} 61 for DTS_FILE in ${KERNEL_DEVICETREE}
62 do 62 do
63 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'` 63 DTS_BASE_NAME=`basename ${DTS_FILE} | awk -F "." '{print $1}'`
64 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"` 64 DTB_SYMLINK_NAME=`echo ${KERNEL_IMAGE_SYMLINK_NAME} | sed "s/${MACHINE}/${DTS_BASE_NAME}/g"`
65 update-alternatives --remove ${DTS_BASE_NAME}.dtb devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true 65 update-alternatives --remove ${DTS_BASE_NAME}.dtb devicetree-${DTB_SYMLINK_NAME}.dtb ${KERNEL_PRIORITY} || true
66 done 66 done
67} 67}