Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitnelav committed May 15, 2017
0 parents commit 7fcae85
Show file tree
Hide file tree
Showing 19 changed files with 1,315 additions and 0 deletions.
17 changes: 17 additions & 0 deletions COPYING.MIT
Original file line number Diff line number Diff line change
@@ -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.
64 changes: 64 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
This README file contains information on the contents of the
tmp layer.

Please see the corresponding sections below for details.


Dependencies
============

This layer depends on:

URI: git://git.openembedded.org/bitbake
branch: master

URI: git://git.openembedded.org/openembedded-core
layers: meta
branch: master

URI: git://git.yoctoproject.org/xxxx
layers: xxxx
branch: master


Patches
=======

Please submit any patches against the tmp layer to the
xxxx mailing list ([email protected]) and cc: the maintainer:

Maintainer: XXX YYYYYY <[email protected]>


Table of Contents
=================

I. Adding the tmp layer to your build
II. Misc


I. Adding the tmp layer to your build
=================================================

--- replace with specific instructions for the tmp layer ---

In order to use this layer, you need to make the build system aware of
it.

Assuming the tmp layer exists at the top-level of your
yocto build tree, you can add it to the build system by adding the
location of the tmp layer to bblayers.conf, along with any
other layers needed. e.g.:

BBLAYERS ?= " \
/path/to/yocto/meta \
/path/to/yocto/meta-yocto \
/path/to/yocto/meta-yocto-bsp \
/path/to/yocto/meta-tmp \
"


II. Misc
========

--- replace with specific information about the tmp layer ---
30 changes: 30 additions & 0 deletions conf/distro/sonomkr.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
require conf/distro/poky.conf

DISTRO = "sonomkr"
DISTRO_NAME = "SonoMKR (Raspberry Pi Distribution for the SonoMKR Project)"
DISTRO_VERSION = "2.1"
DISTRO_CODENAME = "krogoth"
SDK_VENDOR = "-sonomkrsdk"

MAINTAINER = "Valentin LE BESCOND <[email protected]>"

TARGET_VENDOR = "-sonomkr"

POKY_DEFAULT_DISTRO_FEATURES = "largefile opengl ptest multiarch"

DISTRO_FEATURES_append = " alsa ppp systemd"
VIRTUAL-RUNTIME_init_manager = "systemd"

EXTRA_IMAGE_FEATURES_append = " package-management"
PACKAGE_CLASSES ?= "package_rpm package_ipk"

IMAGE_FSTYPES_append = " rpi-sdimg"

ENABLE_SPI_BUS_raspberrypi2 = "1"
ENABLE_I2C_raspberrypi2 = "1"

PREFERRED_VERSION_linux-raspberrypi = "4.4%"
PREFERRED_VERSION_nodejs = "6%"

KERNEL_DEVICETREE_append = " overlays/sonomkr-card-overlay.dtb \
"
10 changes: 10 additions & 0 deletions conf/layer.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# 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 += "tmp"
BBFILE_PATTERN_tmp = "^${LAYERDIR}/"
BBFILE_PRIORITY_tmp = "6"
1 change: 1 addition & 0 deletions recipes-bsp/alsa-state/alsa-state.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
8 changes: 8 additions & 0 deletions recipes-bsp/alsa-state/alsa-state/asound.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Global alsa-lib configuration

pcm.sonomkrcard {
type hw
card SonoMKRCard
device 0
}

5 changes: 5 additions & 0 deletions recipes-bsp/bootfiles/rpi-config_git.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
do_deploy_append() {
echo "dtparam=audio=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
echo "dtparam=i2s=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
echo "dtoverlay=sonomkr-card" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt
}
12 changes: 12 additions & 0 deletions recipes-core/base-files/base-files/fstab
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# stock fstab - you probably want to override this with a machine specific one

/dev/root / auto defaults 1 1
proc /proc proc defaults 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
tmpfs /run tmpfs mode=0755,nodev,nosuid,strictatime 0 0
tmpfs /var/volatile tmpfs defaults 0 0

# uncomment this if your device has a SD/MMC/Transflash slot
/dev/mmcblk0p1 /media/card auto defaults,sync,noauto 0 0


1 change: 1 addition & 0 deletions recipes-core/base-files/base-files_3.0.14.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
53 changes: 53 additions & 0 deletions recipes-core/image/rpi-sonomkr-image.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Base this image on rpi-hwup-image
include recipes-core/images/rpi-hwup-image.bb

IMAGE_FEATURES += "ssh-server-openssh "

IMAGE_INSTALL_append = " sonomkr-daemon"

IMAGE_INSTALL_append = " gdbserver"
IMAGE_INSTALL_append = " connman"
IMAGE_INSTALL_append = " connman-client"
IMAGE_INSTALL_append = " openssh-sftp-server"
IMAGE_INSTALL_append = " netcat"
IMAGE_INSTALL_append = " ncurses-libncurses"
IMAGE_INSTALL_append = " libasound"
IMAGE_INSTALL_append = " libicui18n"
IMAGE_INSTALL_append = " logrotate"
IMAGE_INSTALL_append = " ntp"
IMAGE_INSTALL_append = " libusb1"
IMAGE_INSTALL_append = " usbutils"
IMAGE_INSTALL_append = " udev"
IMAGE_INSTALL_append = " usb-modeswitch-data"
IMAGE_INSTALL_append = " usbpath"
IMAGE_INSTALL_append = " file"
IMAGE_INSTALL_append = " pure-ftpd"
IMAGE_INSTALL_append = " ppp"
IMAGE_INSTALL_append = " qtbase"
IMAGE_INSTALL_append = " qtbase-tools"
IMAGE_INSTALL_append = " alsa-state"
IMAGE_INSTALL_append = " alsa-utils"
IMAGE_INSTALL_append = " util-linux"
IMAGE_INSTALL_append = " spitools"
IMAGE_INSTALL_append = " wget"
IMAGE_INSTALL_append = " vim"
IMAGE_INSTALL_append = " libnewt"
IMAGE_INSTALL_append = " parted"
IMAGE_INSTALL_append = " i2c-tools"
IMAGE_INSTALL_append = " binutils"
IMAGE_INSTALL_append = " make"

IMAGE_INSTALL_append = " python3"
IMAGE_INSTALL_append = " python3-modules"
IMAGE_INSTALL_append = " python3-numpy"
IMAGE_INSTALL_append = " python3-dbus"
IMAGE_INSTALL_append = " python3-pyserial"
IMAGE_INSTALL_append = " python-dbus"
IMAGE_INSTALL_append = " python-modules"
IMAGE_INSTALL_append = " python-smbus"
IMAGE_INSTALL_append = " python-numeric"

IMAGE_INSTALL_append = " opkg"

CORE_IMAGE_EXTRA_INSTALL += " sonomkr-files"

6 changes: 6 additions & 0 deletions recipes-devtools/opkg/opkg/opkg.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

src/gz all http://www.sonomkr.fr/ipk/all
src/gz cortexa7hf-neon-vfpv4 http://www.sonomkr.fr/ipk/cortexa7hf-neon-vfpv4
src/gz raspberrypi2 http://www.sonomkr.fr/ipk/raspberrypi2

dest root /
1 change: 1 addition & 0 deletions recipes-devtools/opkg/opkg_0.3.%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
FILESEXTRAPATHS_append := "${THISDIR}/${PN}:"
Loading

0 comments on commit 7fcae85

Please sign in to comment.