From 5810be737dc10cd71abdf6fc94237b61ad824474 Mon Sep 17 00:00:00 2001 From: Andrei Gherzan Date: Mon, 2 Mar 2015 00:06:17 +0100 Subject: bootfiles: Move to recipes-bsp Signed-off-by: Andrei Gherzan --- recipes-bcm/bootfiles/bcm2835-bootfiles.bb | 39 ---------------- recipes-bcm/bootfiles/rpi-config_git.bb | 74 ------------------------------ recipes-bsp/bootfiles/bcm2835-bootfiles.bb | 39 ++++++++++++++++ recipes-bsp/bootfiles/rpi-config_git.bb | 74 ++++++++++++++++++++++++++++++ 4 files changed, 113 insertions(+), 113 deletions(-) delete mode 100644 recipes-bcm/bootfiles/bcm2835-bootfiles.bb delete mode 100644 recipes-bcm/bootfiles/rpi-config_git.bb create mode 100644 recipes-bsp/bootfiles/bcm2835-bootfiles.bb create mode 100644 recipes-bsp/bootfiles/rpi-config_git.bb diff --git a/recipes-bcm/bootfiles/bcm2835-bootfiles.bb b/recipes-bcm/bootfiles/bcm2835-bootfiles.bb deleted file mode 100644 index 9751f95..0000000 --- a/recipes-bcm/bootfiles/bcm2835-bootfiles.bb +++ /dev/null @@ -1,39 +0,0 @@ -DESCRIPTION = "Closed source binary files to help boot the ARM on the BCM2835." -LICENSE = "Proprietary" - -LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9" - -inherit deploy - -include ../common/firmware.inc - -RDEPENDS_${PN} = "rpi-config" - -COMPATIBLE_MACHINE = "raspberrypi" - -S = "${RPIFW_S}/boot" - -PR = "r3" - -do_deploy() { - install -d ${DEPLOYDIR}/${PN} - - for i in ${S}/*.elf ; do - cp $i ${DEPLOYDIR}/${PN} - done - for i in ${S}/*.dat ; do - cp $i ${DEPLOYDIR}/${PN} - done - for i in ${S}/*.bin ; do - cp $i ${DEPLOYDIR}/${PN} - done - - # Add stamp in deploy directory - touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp -} - -addtask deploy before do_package after do_install -do_deploy[dirs] += "${DEPLOYDIR}/${PN}" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - diff --git a/recipes-bcm/bootfiles/rpi-config_git.bb b/recipes-bcm/bootfiles/rpi-config_git.bb deleted file mode 100644 index 29ced34..0000000 --- a/recipes-bcm/bootfiles/rpi-config_git.bb +++ /dev/null @@ -1,74 +0,0 @@ -DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \ - The Raspberry Pi config.txt file is read by the GPU before \ - the ARM core is initialised. It can be used to set various \ - system configuration parameters." -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" - -COMPATIBLE_MACHINE = "raspberrypi" - -SRCREV = "5d2ca5f9bcb1b239c051e20c05a233fd79cf09d5" -SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \ - " - -S = "${WORKDIR}/git" - -PR = "r4" - -inherit deploy - -do_deploy() { - install -d ${DEPLOYDIR}/bcm2835-bootfiles - - cp ${S}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/ - - if [ -n "${KEY_DECODE_MPG2}" ]; then - sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${KEY_DECODE_WVC1}" ]; then - sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${DISABLE_OVERSCAN}" ]; then - sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${ARM_FREQ}" ]; then - sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${CORE_FREQ}" ]; then - sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${SDRAM_FREQ}" ]; then - sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${OVER_VOLTAGE}" ]; then - sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - - # GPU memory - if [ -n "${GPU_MEM}" ]; then - sed -i '/#gpu_mem=/ c\gpu_mem=${GPU_MEM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${GPU_MEM_256}" ]; then - sed -i '/#gpu_mem_256/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - if [ -n "${GPU_MEM_512}" ]; then - sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - - # Video camera support - if [ -n "${VIDEO_CAMERA}" ]; then - echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt - echo "start_x=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi - - # Offline compositing support - if [ -n "${DISPMANX_OFFLINE}" ]; then - echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt - echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt - fi -} - -addtask deploy before do_package after do_install -do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles" - -PACKAGE_ARCH = "${MACHINE_ARCH}" diff --git a/recipes-bsp/bootfiles/bcm2835-bootfiles.bb b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb new file mode 100644 index 0000000..0665944 --- /dev/null +++ b/recipes-bsp/bootfiles/bcm2835-bootfiles.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "Closed source binary files to help boot the ARM on the BCM2835." +LICENSE = "Proprietary" + +LIC_FILES_CHKSUM = "file://LICENCE.broadcom;md5=e86e693d19572ee64cc8b17fb062faa9" + +inherit deploy + +include recipes-bsp/common/firmware.inc + +RDEPENDS_${PN} = "rpi-config" + +COMPATIBLE_MACHINE = "raspberrypi" + +S = "${RPIFW_S}/boot" + +PR = "r3" + +do_deploy() { + install -d ${DEPLOYDIR}/${PN} + + for i in ${S}/*.elf ; do + cp $i ${DEPLOYDIR}/${PN} + done + for i in ${S}/*.dat ; do + cp $i ${DEPLOYDIR}/${PN} + done + for i in ${S}/*.bin ; do + cp $i ${DEPLOYDIR}/${PN} + done + + # Add stamp in deploy directory + touch ${DEPLOYDIR}/${PN}/${PN}-${PV}.stamp +} + +addtask deploy before do_package after do_install +do_deploy[dirs] += "${DEPLOYDIR}/${PN}" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb new file mode 100644 index 0000000..29ced34 --- /dev/null +++ b/recipes-bsp/bootfiles/rpi-config_git.bb @@ -0,0 +1,74 @@ +DESCRIPTION = "Commented config.txt file for the Raspberry Pi. \ + The Raspberry Pi config.txt file is read by the GPU before \ + the ARM core is initialised. It can be used to set various \ + system configuration parameters." +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420" + +COMPATIBLE_MACHINE = "raspberrypi" + +SRCREV = "5d2ca5f9bcb1b239c051e20c05a233fd79cf09d5" +SRC_URI = "git://github.com/Evilpaul/RPi-config.git;protocol=git;branch=master \ + " + +S = "${WORKDIR}/git" + +PR = "r4" + +inherit deploy + +do_deploy() { + install -d ${DEPLOYDIR}/bcm2835-bootfiles + + cp ${S}/config.txt ${DEPLOYDIR}/bcm2835-bootfiles/ + + if [ -n "${KEY_DECODE_MPG2}" ]; then + sed -i '/#decode_MPG2/ c\decode_MPG2=${KEY_DECODE_MPG2}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${KEY_DECODE_WVC1}" ]; then + sed -i '/#decode_WVC1/ c\decode_MVC1=${KEY_DECODE_WVC1}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${DISABLE_OVERSCAN}" ]; then + sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${ARM_FREQ}" ]; then + sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${CORE_FREQ}" ]; then + sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${SDRAM_FREQ}" ]; then + sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${OVER_VOLTAGE}" ]; then + sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + + # GPU memory + if [ -n "${GPU_MEM}" ]; then + sed -i '/#gpu_mem=/ c\gpu_mem=${GPU_MEM}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${GPU_MEM_256}" ]; then + sed -i '/#gpu_mem_256/ c\gpu_mem_256=${GPU_MEM_256}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + if [ -n "${GPU_MEM_512}" ]; then + sed -i '/#gpu_mem_512/ c\gpu_mem_512=${GPU_MEM_512}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + + # Video camera support + if [ -n "${VIDEO_CAMERA}" ]; then + echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "start_x=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi + + # Offline compositing support + if [ -n "${DISPMANX_OFFLINE}" ]; then + echo "# Enable offline compositing" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt + echo "dispmanx_offline=1" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt + fi +} + +addtask deploy before do_package after do_install +do_deploy[dirs] += "${DEPLOYDIR}/bcm2835-bootfiles" + +PACKAGE_ARCH = "${MACHINE_ARCH}" -- cgit v1.2.3-54-g00ecf