Skip to content

Commit

Permalink
Keep track of master for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Nitnelav authored Jun 12, 2017
2 parents 7fcae85 + b87ce9c commit dd2f77d
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 14 deletions.
4 changes: 2 additions & 2 deletions conf/distro/sonomkr.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require conf/distro/poky.conf
require conf/distro/poky.conf

DISTRO = "sonomkr"
DISTRO_NAME = "SonoMKR (Raspberry Pi Distribution for the SonoMKR Project)"
Expand All @@ -24,7 +24,7 @@ ENABLE_SPI_BUS_raspberrypi2 = "1"
ENABLE_I2C_raspberrypi2 = "1"

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

KERNEL_DEVICETREE_append = " overlays/sonomkr-card-overlay.dtb \
"
17 changes: 14 additions & 3 deletions recipes-core/image/rpi-sonomkr-image.bb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
include recipes-core/images/rpi-hwup-image.bb

IMAGE_FEATURES += "ssh-server-openssh "

IMAGE_INSTALL_append = " sonomkr-daemon"
IMAGE_INSTALL_append = " sonomkr-api"
IMAGE_INSTALL_append = " sonomkrctl"

IMAGE_INSTALL_append = " gdbserver"
IMAGE_INSTALL_append = " connman"
Expand All @@ -30,22 +32,31 @@ IMAGE_INSTALL_append = " alsa-utils"
IMAGE_INSTALL_append = " util-linux"
IMAGE_INSTALL_append = " spitools"
IMAGE_INSTALL_append = " wget"
IMAGE_INSTALL_append = " git"
IMAGE_INSTALL_append = " gcc gcc-symlinks"
IMAGE_INSTALL_append = " g++ g++-symlinks"
IMAGE_INSTALL_append = " binutils binutils-symlinks"
IMAGE_INSTALL_append = " rsync"
IMAGE_INSTALL_append = " make"
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 = " nodejs"


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 = " python3-pip"
IMAGE_INSTALL_append = " python-dbus"
IMAGE_INSTALL_append = " python-modules"
IMAGE_INSTALL_append = " python-smbus"
IMAGE_INSTALL_append = " python-numeric"
IMAGE_INSTALL_append = " python-pip"
IMAGE_INSTALL_append = " python-distribute"

IMAGE_INSTALL_append = " opkg"

Expand Down
31 changes: 31 additions & 0 deletions recipes-sonomkr/sonomkr-api/sonomkr-api.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
SUMMARY = "The SonoMKR Project Software"
DESCRIPTION = "This package builds and deploys The SonoMKR Project's main software."
HOMEPAGE = "http://www.sonomkr.fr/"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=3e00ca6129dc8358315015204ab9fe15"

DEPENDS += " nodejs dbus"
RDEPENDS_${PN} += " nodejs dbus bash"

SRCREV = "2bb3f2673184d7e3882d6d074da76bdc34e6aa1d"
SRC_URI = "git://github.com/SonoMKR/sonomkr-api.git"

S = "${WORKDIR}/git"

inherit npm-base

do_install() {
oe_runnpm install # Installs dependencies defined in package.json

install -d ${D}/opt/sonomkr-api

cp -r ${S}/* ${D}/opt/sonomkr-api/
chmod -R 0755 ${D}/opt/sonomkr-api
}

INHIBIT_PACKAGE_DEBUG_SPLIT = "1"
INSANE_SKIP_${PN} += "staticdev"

PACKAGES = "${PN}"

FILES_${PN} = "/opt/sonomkr-api/*"
2 changes: 0 additions & 2 deletions recipes-sonomkr/sonomkr-daemon/sonomkr-daemon.bb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ HOMEPAGE = "http://www.sonomkr.fr/"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=3e00ca6129dc8358315015204ab9fe15"

FILESEXTRAPATHS_prepend := "/home/valoo/Qt/Projects:"

PR = "r01"

DEPENDS = "ncurses alsa-lib qtbase"
Expand Down
4 changes: 0 additions & 4 deletions recipes-sonomkr/sonomkr-files/files/default.ini
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ Password=XXX
Server=XXX
User=XXX

[HttpServer]
Active=false
HttpPort=8888

[Indicators]
1\Channel=1
1\Global=0
Expand Down
4 changes: 1 addition & 3 deletions recipes-sonomkr/sonomkr-files/sonomkr-files.bb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ SECTION = "base"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://${WORKDIR}/LICENCE;md5=b6b333b0d50db48b3e0b9e04b53801af"

#SRC_URI = "file://SonoMKR
SRC_URI = "file://default.ini \
file://sonomkr.conf \
file://LICENCE \
Expand All @@ -15,13 +14,12 @@ do_install () {
install -d ${D}${sysconfdir}/modules-load.d
install -d ${D}${ROOT_HOME}/configs
install -d ${D}$/media/card

#install -m 755 ${WORKDIR}/SonoMKR ${D}${bindir}/
install -m 755 ${WORKDIR}/default.ini ${D}${ROOT_HOME}/configs/
install -m 755 ${WORKDIR}/sonomkr.conf ${D}${sysconfdir}/modules-load.d/
}

#FILES_${PN} = "${bindir}/SonoMKR
FILES_${PN} = "${sysconfdir}/modules-load.d/sonomkr.conf \
${ROOT_HOME}/configs/default.ini \
"
Expand Down
23 changes: 23 additions & 0 deletions recipes-sonomkr/sonomkrctl/sonomkrctl.bb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
SUMMARY = "The SonoMKR CLI"
DESCRIPTION = "This package builds and deploys The SonoMKR Project's CLI software."
HOMEPAGE = "http://www.sonomkr.fr/"
LICENSE = "AGPLv3"
LIC_FILES_CHKSUM = "file://${WORKDIR}/git/LICENSE;md5=3e00ca6129dc8358315015204ab9fe15"

RDEPENDS = "python"

SRCREV = "5628faef223feefc804c547492ee35f297ff7b5c"
SRC_URI = "git://github.com/SonoMKR/sonomkrctl.git"

S = "${WORKDIR}/git"

do_install () {
install -d ${D}${bindir}

install -m 755 ${S}/sonomkrctl ${D}${bindir}/
}

FILES_${PN} = "${bindir}/sonomkrctl \
"

INHIBIT_PACKAGE_STRIP = "1"

0 comments on commit dd2f77d

Please sign in to comment.