diff --git a/conf/machine/am335x-nbhw16-fct.conf b/conf/machine/am335x-nbhw16-fct.conf new file mode 100644 index 0000000..85bc3c5 --- /dev/null +++ b/conf/machine/am335x-nbhw16-fct.conf @@ -0,0 +1,8 @@ +#@TYPE: Machine +#@NAME: BeagleBone machine +#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board + +require conf/machine/am335x-nbhw16.conf + +KERNEL_DEFCONFIG = "nbhw16_fct_defconfig" + diff --git a/conf/machine/am335x-nrhw20-fct.conf b/conf/machine/am335x-nrhw20-fct.conf new file mode 100644 index 0000000..133085e --- /dev/null +++ b/conf/machine/am335x-nrhw20-fct.conf @@ -0,0 +1,8 @@ +#@TYPE: Machine +#@NAME: BeagleBone machine +#@DESCRIPTION: Machine configuration for the http://beagleboard.org/bone board + +require conf/machine/am335x-nrhw20.conf + +KERNEL_DEFCONFIG = "am335x-nrhw20-fct_defconfig" + diff --git a/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb b/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb index a6a8cc4..eb7c4c8 100644 --- a/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb +++ b/recipes-connectivity/modemmanager/modemmanager_1.6.0.bb @@ -46,3 +46,7 @@ SYSTEMD_SERVICE_${PN} = "ModemManager.service" do_install_append_am335x-nbhw16-fct() { sed -i 's/ExecStart=.*/ExecStart=\/usr\/sbin\/ModemManager --debug/g' ${D}/lib/systemd/system/ModemManager.service } + +do_install_append_am335x-nrhw20-fct() { + sed -i 's/ExecStart=.*/ExecStart=\/usr\/sbin\/ModemManager --debug/g' ${D}/lib/systemd/system/ModemManager.service +} diff --git a/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb b/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb index f4a5ad7..f43077e 100644 --- a/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb +++ b/recipes-connectivity/modemmanager/modemmanager_1.8.0.bb @@ -44,3 +44,8 @@ SYSTEMD_SERVICE_${PN} = "ModemManager.service" do_install_append_am335x-nbhw16-fct() { sed -i 's/ExecStart=.*/ExecStart=\/usr\/sbin\/ModemManager --debug/g' ${D}/lib/systemd/system/ModemManager.service } + +do_install_append_am335x-nrhw20-fct() { + sed -i 's/ExecStart=.*/ExecStart=\/usr\/sbin\/ModemManager --debug/g' ${D}/lib/systemd/system/ModemManager.service +} + diff --git a/recipes-connectivity/networkmanager/networkmanager/am335x-nrhw20-fct/NetworkManager.conf b/recipes-connectivity/networkmanager/networkmanager/am335x-nrhw20-fct/NetworkManager.conf new file mode 100644 index 0000000..0763348 --- /dev/null +++ b/recipes-connectivity/networkmanager/networkmanager/am335x-nrhw20-fct/NetworkManager.conf @@ -0,0 +1,2 @@ +[device] +wifi.scan-rand-mac-address=no diff --git a/recipes-connectivity/networkmanager/networkmanager/am335x-nrhw20-fct/system-connections.tar.gz b/recipes-connectivity/networkmanager/networkmanager/am335x-nrhw20-fct/system-connections.tar.gz new file mode 100644 index 0000000..ea69609 Binary files /dev/null and b/recipes-connectivity/networkmanager/networkmanager/am335x-nrhw20-fct/system-connections.tar.gz differ diff --git a/recipes-connectivity/tibluetooth/tibluetooth.bb b/recipes-connectivity/tibluetooth/tibluetooth.bb index fe4dc6e..586865f 100644 --- a/recipes-connectivity/tibluetooth/tibluetooth.bb +++ b/recipes-connectivity/tibluetooth/tibluetooth.bb @@ -26,7 +26,7 @@ FILES_${PN}_append = " \ /lib \ " -do_install_am335x-nbhw16 () { +install_nbhw16 () { install -d ${D}${systemd_unitdir}/system/ install -m 0644 tibluetooth-nbhw16.service ${D}${systemd_unitdir}/system/tibluetooth.service @@ -34,7 +34,15 @@ do_install_am335x-nbhw16 () { install -m 0644 TIInit_11.8.32.bts ${D}/lib/firmware/ti-connectivity/ } -do_install_am335x-nrhw20 () { +do_install_am335x-nbhw16 () { + install_nbhw16 +} + +do_install_am335x-nbhw16-fct () { + install_nbhw16 +} + +install_nrhw20 () { install -d ${D}${systemd_unitdir}/system/ install -m 0644 tibluetooth-nrhw20.service ${D}${systemd_unitdir}/system/tibluetooth.service @@ -42,3 +50,11 @@ do_install_am335x-nrhw20 () { install -m 0644 TIInit_11.8.32.bts ${D}/lib/firmware/ti-connectivity/ } +do_install_am335x-nrhw20 () { + install_nrhw20 +} + +do_install_am335x-nrhw20-fct () { + install_nrhw20 +} + diff --git a/recipes-kernel/dt-overlay/dt-overlay_1.0.bb b/recipes-kernel/dt-overlay/dt-overlay_1.0.bb new file mode 100644 index 0000000..566b733 --- /dev/null +++ b/recipes-kernel/dt-overlay/dt-overlay_1.0.bb @@ -0,0 +1,13 @@ +DESCRIPTION = "Allow loading of devicetree overlays via configfs" +HOMEPAGE = "http://www.netmodule.com/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +inherit module + +PV = "1.0.0" +SRCREV ?= "c17c433ef41e8a7ad9f286743a2ae49df64723a8" + +SRC_URI = "git://github.com/netmodule/dt-overlay.git;protocol=https" + +S = "${WORKDIR}/git" diff --git a/recipes-kernel/dt-overlays/dt-overlays.bb b/recipes-kernel/dt-overlays/dt-overlays.bb new file mode 100644 index 0000000..cfc8107 --- /dev/null +++ b/recipes-kernel/dt-overlays/dt-overlays.bb @@ -0,0 +1,37 @@ +DESCRIPTION = "Allow loading of devicetree overlays via configfs" +HOMEPAGE = "http://www.netmodule.com/" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + +DEPENDS = "dtc-native" + +PV = "1.0.0" +SRCREV ?= "de7143db7ec306775dad690fcaa8922202b928dc" + +SRC_URI = "git://github.com/netmodule/dt-overlays.git;protocol=https" + +S = "${WORKDIR}/git" + +dtos = " \ + am335x-nbhw16-shield-comio-gpio \ + am335x-nbhw16-shield-dualcan-can \ + am335x-nbhw16-shield-dualcan-dyngpio \ + am335x-nbhw16-shield-dualcan-fixgpio \ + " + + + +FILES_${PN} += "/lib/firmware" + +do_compile() { + for dto in ${dtos}; do + dtc -@ -i dts -o dto -o $dto.dtbo $dto.dts + done +} + +do_install() { + install -d ${D}/lib/firmware/ + for dto in ${dtos}; do + install -m 0644 $dto.dtbo ${D}/lib/firmware/ + done +} diff --git a/recipes-kernel/dtc/dtc.inc b/recipes-kernel/dtc/dtc.inc new file mode 100644 index 0000000..faabe98 --- /dev/null +++ b/recipes-kernel/dtc/dtc.inc @@ -0,0 +1,23 @@ +SUMMARY = "Device Tree Compiler" +DESCRIPTION = "The Device Tree Compiler is a tool used to manipulate the Open-Firmware-like device tree used by PowerPC kernels." +SECTION = "bootloader" +LICENSE = "GPLv2 | BSD" +DEPENDS = "flex-native bison-native" + +SRC_URI = "git://git.kernel.org/pub/scm/utils/dtc/dtc.git \ + file://make_install.patch \ + " + +EXTRA_OEMAKE='PREFIX="${prefix}" LIBDIR="${libdir}" DESTDIR="${D}" NO_PYTHON=1' +CFLAGS="-Wno-error" + +S = "${WORKDIR}/git" + +do_install () { + oe_runmake install +} + +PACKAGES =+ "${PN}-misc" +FILES_${PN}-misc = "${bindir}/convert-dtsv0 ${bindir}/ftdump ${bindir}/dtdiff" + +RDEPENDS_${PN}-misc += "bash" diff --git a/recipes-kernel/dtc/dtc/make_install.patch b/recipes-kernel/dtc/dtc/make_install.patch new file mode 100644 index 0000000..9930352 --- /dev/null +++ b/recipes-kernel/dtc/dtc/make_install.patch @@ -0,0 +1,26 @@ +Upstream-Status: Inappropriate [configuration] + +Index: git/Makefile +=================================================================== +--- git.orig/Makefile 2011-11-02 14:52:17.243104779 -0700 ++++ git/Makefile 2011-11-02 15:06:01.555104982 -0700 +@@ -18,7 +18,7 @@ + CPPFLAGS = -I libfdt -I . + WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \ + -Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow +-CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) -Werror $(WARNINGS) ++CFLAGS = -g -Os $(SHAREDLIB_CFLAGS) $(WARNINGS) + + BISON = bison + LEX = flex +@@ -161,8 +161,8 @@ + $(INSTALL) -d $(DESTDIR)$(BINDIR) + $(INSTALL) $(BIN) $(SCRIPTS) $(DESTDIR)$(BINDIR) + $(INSTALL) -d $(DESTDIR)$(LIBDIR) +- $(INSTALL) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR) +- ln -sf $(notdir $(LIBFDT_lib)) $(DESTDIR)$(LIBDIR)/$(LIBFDT_soname) ++ $(INSTALL) $(LIBFDT_lib) $(DESTDIR)$(LIBDIR)/$(LIBFDT_soname) ++ ln -sf $(LIBFDT_soname) $(DESTDIR)$(LIBDIR)/$(notdir $(LIBFDT_lib)) + ln -sf $(LIBFDT_soname) $(DESTDIR)$(LIBDIR)/libfdt.$(SHAREDLIB_EXT) + $(INSTALL) -m 644 $(LIBFDT_archive) $(DESTDIR)$(LIBDIR) + $(INSTALL) -d $(DESTDIR)$(INCLUDEDIR) diff --git a/recipes-kernel/dtc/dtc_git.bb b/recipes-kernel/dtc/dtc_git.bb new file mode 100644 index 0000000..7100293 --- /dev/null +++ b/recipes-kernel/dtc/dtc_git.bb @@ -0,0 +1,11 @@ +require dtc.inc + +LIC_FILES_CHKSUM = "file://GPL;md5=94d55d512a9ba36caa9b7df079bae19f \ + file://libfdt/libfdt.h;beginline=3;endline=52;md5=fb360963151f8ec2d6c06b055bcbb68c" + +SRCREV = "1ae2d185ddda6ca578dce5641a8a39db3117492d" +PV = "1.4.5+git${SRCPV}" + +S = "${WORKDIR}/git" + +BBCLASSEXTEND = "native nativesdk"