commit cbaa25c44a8e57cef96595aacc9451706b86c160 Author: Julien CHAUVEAU Date: Fri Apr 4 16:25:45 2014 +0200 Initial commit diff --git a/COPYING.MIT b/COPYING.MIT new file mode 100644 index 0000000..fb950dc --- /dev/null +++ b/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/classes/rockchip-update-img.bbclass b/classes/rockchip-update-img.bbclass new file mode 100644 index 0000000..b44b985 --- /dev/null +++ b/classes/rockchip-update-img.bbclass @@ -0,0 +1,19 @@ +# Copyright (C) 2014 NEO-Technologies +# Released under the MIT license (see COPYING.MIT for the terms) + +inherit image_types + +# This image depends on the rootfs ext3 image +IMAGE_TYPEDEF_rockchip-update-img = "ext3" + +IMAGE_CMD_rockchip-update-img () { + # Fetch bootloader + # TODO + + # Fetch parameter + # TODO + + # Build update.img using afptool and img_maker + # TODO + touch "${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.update.img" +} diff --git a/conf/layer.conf b/conf/layer.conf new file mode 100644 index 0000000..30979fb --- /dev/null +++ b/conf/layer.conf @@ -0,0 +1,18 @@ +# Copyright (C) 2014 NEO-Technologies +# Released under the MIT license (see COPYING.MIT for the terms) + +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "rockchip" +BBFILE_PATTERN_rockchip = "^${LAYERDIR}/" +BBFILE_PRIORITY_rockchip = "1" + +# This should only be incremented on significant changes that will +# cause compatibility issues with other layers +LAYERVERSION_rockchip = "1" + +LAYERDEPENDS_rockchip = "core" diff --git a/conf/machine/include/rockchip.inc b/conf/machine/include/rockchip.inc new file mode 100644 index 0000000..af0752a --- /dev/null +++ b/conf/machine/include/rockchip.inc @@ -0,0 +1,20 @@ +# Copyright (C) 2014 NEO-Technologies +# Released under the MIT license (see COPYING.MIT for the terms) + +require conf/machine/include/tune-cortexa7.inc + +PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg" + +XSERVER = "xserver-xorg \ + xf86-video-fbturbo \ + xf86-input-evdev \ + xf86-input-mouse \ + xf86-input-keyboard" + +PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip-3.0" + +IMAGE_CLASSES += "rockchip-update-img" +IMAGE_FSTYPES += "ext3 tar.gz rockchip-update-img" + +SERIAL_CONSOLE = "115200 ttyFIQ0" + diff --git a/conf/machine/radxa-rock.conf b/conf/machine/radxa-rock.conf new file mode 100644 index 0000000..96281d0 --- /dev/null +++ b/conf/machine/radxa-rock.conf @@ -0,0 +1,11 @@ +# Copyright (C) 2014 NEO-Technologies +# Released under the MIT license (see COPYING.MIT for the terms) + +#@TYPE: Machine +#@NAME: Radxa Rock Board +#@DESCRIPTION: Machine configuration for the Radxa Rock Board, based on Rockchip RK3188 CPU +#http://radxa.com + +require conf/machine/include/rockchip.inc + +PREFERRED_PROVIDER_virtual/kernel = "linux-rockchip-3.0-radxa-rock" diff --git a/recipes-kernel/linux/linux-rockchip-3.0-radxa-rock.bb b/recipes-kernel/linux/linux-rockchip-3.0-radxa-rock.bb new file mode 100644 index 0000000..584ce89 --- /dev/null +++ b/recipes-kernel/linux/linux-rockchip-3.0-radxa-rock.bb @@ -0,0 +1,8 @@ +# Copyright (C) 2014 NEO-Technologies +# Released under the MIT license (see COPYING.MIT for the terms) + +require recipes-kernel/linux/linux-rockchip-3.0.inc + +SRCBRANCH = "wip/rockchip-3.0-radxa-rock" + +COMPATIBLE_MACHINE = "(radxa-rock)" diff --git a/recipes-kernel/linux/linux-rockchip-3.0.inc b/recipes-kernel/linux/linux-rockchip-3.0.inc new file mode 100644 index 0000000..d40c9b0 --- /dev/null +++ b/recipes-kernel/linux/linux-rockchip-3.0.inc @@ -0,0 +1,10 @@ +# Copyright (C) 2014 NEO-Technologies +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Linux kernel for Rockchip's ARM platforms" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" + +inherit kernel + +SRC_URI = "git://github.com/linux-rockchip/rockchip-3.0.git;branch=${SRCBRANCH}"