[oe] linux-xilinx: How to download a ramdisk image and copy it to arch/powerpc/boot folder

Elvis Dowson elvis.dowson at gmail.com
Fri Jul 13 20:19:07 UTC 2012


Hi,
     I'm trying to create a linux-xilinx-2.6.38 recipe, that will download a ramdisk image from http://wiki.xilinx.com/local--files/powerpc-linux/ramdisk.image.gz
and copy it to the arch/powerpc/boot folder.

How can I modify the following recipe to execute these commands?

inherit kernel xilinx-kernel xilinx-utils
require recipes-kernel/linux/linux-xilinx.inc

DEFAULT_PREFERENCE = "1"

KBRANCH = "master"

LINUX_VERSION ?= "2.6.38"
SRCREV_pn-${PN} = "c965eb91f22d1ca04b141957bccd1c02abc5c6f7"
KTAG_virtex5 = "xilinx_v2.6.38"

PR = "r00"
PV = "${LINUX_VERSION}"

SRC_URI = "git://git.xilinx.com/linux-xlnx.git;protocol=git;tag=${KTAG} \
           file://0001-virtex-ml507-Update-device-tree-to-version-generated-by-Xilinx-EDK-13.1.patch \
           file://0002-Makefile-Disable-warnings-being-treated-as-errors.patch \
           file://defconfig"

XILINX_BOARD ?= "${@find_board(bb.data.getVar('XILINX_BSP_PATH', d, 1), d)}"
KERNEL_DEVICETREE = "${@device_tree(bb.data.getVar('TARGET_ARCH', d, 1), d)}"
KERNEL_DEVICETREE_microblazeel = "${@device_tree(bb.data.getVar('TARGET_CPU', d, 1), d)}"

#KERNEL_DEVICETREE = "virtex440-ml507.dts"

COMPATIBLE_MACHINE = "(virtex4|virtex5|virtex5mb|spartan6-sp605|spartan6-lx9mb)"

Best regards,

Elvis





More information about the Openembedded-devel mailing list