summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChase Maupin <Chase.Maupin@ti.com>2013-04-03 19:23:59 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-23 12:00:53 (GMT)
commitfc32cb756eb12df16a79271b61baf607661a833b (patch)
treef44721d7101c84a3264e078709b226bc60ccac69
parent6e95fe1683cda51a84aeac393760278b8c9bc23b (diff)
downloadpoky-fc32cb756eb12df16a79271b61baf607661a833b.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: fa0831bb57ed3af55c3547be14131989c4330f7d) Signed-off-by: Chase Maupin <Chase.Maupin@ti.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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 36852b5..a51e6c0 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}