angstrom-uboot-scripts: Change installdir to /boot and rename configs
authorRoger Monk <r-monk@ti.com>
Wed, 26 May 2010 22:44:51 +0000 (23:44 +0100)
committerKoen Kooi <koen@openembedded.org>
Thu, 27 May 2010 07:47:20 +0000 (09:47 +0200)
   * Install the scripts into /boot instead of datadir
   * Install the original .txt's files as well as .scr's so that users can
     use target mkimage to rebuild/modify/recreate
   * Rename configs for consistency

Signed-off-by: Roger Monk <r-monk@ti.com>
Signed-off-by: Koen Kooi <k-kooi@ti.com>
recipes/angstrom/angstrom-uboot-scripts.bb

index d4c6347..67245a0 100644 (file)
@@ -8,6 +8,10 @@ SRC_URI = "file://*.cmd"
 
 do_configure() {
        cp ${WORKDIR}/*.cmd ${S}
+
+       for i in *.cmd ; do
+               mv $i uboot-$i
+       done
 }
 
 do_compile() {
@@ -17,13 +21,13 @@ do_compile() {
 }
 
 do_install() {
-       install -d ${D}${datadir}/u-boot-scripts
-       for i in *.scr ; do
-               install -m 0644 $i ${D}${datadir}/u-boot-scripts
+       install -d ${D}/boot/u-boot-scripts
+       for i in *.cmd *.scr ; do
+               install -m 0644 $i ${D}/boot/u-boot-scripts
        done
 }
 
-FILES_${PN} += "${datadir}"
+FILES_${PN} += "/boot"
 
 addtask deploy before do_package after do_install