On 12/05/2013 03:37 PM, Robert Nelson wrote:
On Thu, Dec 5, 2013 at 3:33 PM, David Lambert <[email protected]> wrote:
Mainly due to some frustrations around opencv Python support in Angstrom, I
am investigating switching to the Debian distribution. I have followed
Robert Nelson's excellent tutorials and scripts, but need some guidance in
adding my own kernel modules and device trees. I have already successfully
built them under Angstrom/bitbake, but cannot determine the preferred or
"correct" workflow for Debian. Any help would be greatly appreciated.
Hi Dave,
What kernel modules/device tree's do you need enabled?
Thanks for your quick reply.
These are modules/dts that I have written to support a UPS/watchdog cape
I am developing. They are building and working fine with the 3.8
Angstrom kernel using the attached bitbake recipe. My question is what
are the magical incantations I need to build these outside the kernel
tree? I suspect there is a "correct" way to do this under Debian, rather
than me re-inventing a wheel.
Regards,
Dave.
For the bone, the kernel script can be found here: (it's 99% source
identical to angstrom's 3.8 tree)
https://github.com/RobertCNelson/linux-dev/tree/am33x-v3.8
Regards,
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
DESCRIPTION = "UPS control kernel module"
HOMEPAGE = "http://breakawaysystems.com"
SECTION = "kernel/modules"
PRIORITY = "optional"
LICENSE = "none"
#RDEPENDS = "kernel (${KERNEL_VERSION})"
DEPENDS = "virtual/kernel"
PR = "r40"
DTC = "${STAGING_KERNEL_DIR}/scripts/dtc/dtc"
LICENSE = "MIT"
LIC_FILES_CHKSUM =
"file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
SRC_URI = " \
file://argus-ups.c \
file://Makefile \
file://argus-ups-00A0.dts \
"
S = "${WORKDIR}"
inherit module
do_compile () {
unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS CC LD CPP
oe_runmake
'MODPATH="${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc/"' \
'KERNEL_SOURCE="${STAGING_KERNEL_DIR}"' \
'KDIR="${STAGING_KERNEL_DIR}"' \
'KERNEL_VERSION="${KERNEL_VERSION}"' \
'CC="${KERNEL_CC}"' \
'LD="${KERNEL_LD}"'
${DTC} -O dtb -o argus-ups-00A0.dtbo -b 0 -@ argus-ups-00A0.dts
}
do_install () {
install -d
${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc
install -m 0644 ${S}/argus-ups*${KERNEL_OBJECT_SUFFIX} \
${D}${base_libdir}/modules/${KERNEL_VERSION}/kernel/drivers/misc
install -d ${D}${base_libdir}/firmware/
install -m 0755 ${S}/argus-ups-00A0.dtbo ${D}${base_libdir}/firmware/
}
FILES_${PN} += "/lib/firmware/"