diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/robostix | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/robostix')
-rw-r--r-- | recipes/robostix/robostix.bb | 135 | ||||
-rw-r--r-- | recipes/robostix/robostix/gummake.patch | 26 | ||||
-rw-r--r-- | recipes/robostix/robostix/makefile-rules.patch | 25 |
3 files changed, 186 insertions, 0 deletions
diff --git a/recipes/robostix/robostix.bb b/recipes/robostix/robostix.bb new file mode 100644 index 0000000000..5e1f8c8b69 --- /dev/null +++ b/recipes/robostix/robostix.bb @@ -0,0 +1,135 @@ +DESCRIPTION = "Robostix programs" +PRIORITY = "optional" +SECTION = "base" +LICENSE = "GPL" +RDEPENDS = "kernel (${KERNEL_VERSION})" +DEPENDS = "virtual/kernel" + +PR = "r0" + +SRC_URI = "svn://svn.gumstix.com/gumstix-buildroot/branches/projects;module=robostix;rev=1588;proto=http \ + file://makefile-rules.patch;patch=1 \ + file://gummake.patch;patch=1 \ + " + +S = "${WORKDIR}/robostix" + +inherit module-base + +EXTRA_OEMAKE = 'CROSS_COMPILE="${CROSS_COMPILE}" \ + KERNELDIR="${KERNEL_SOURCE}" \ + CC="${CC}" \ + ' + +PARALLEL_MAKE = "" + +do_configure () { + echo "Nothing to configure for robostix" +} + +do_compile () { + unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS + cd ${S} + make + cd ${S}/gumstix + oe_runmake + cd ${S}/gumstix/i2c-io + oe_runmake + cd ${S}/gumstix/i2c-load + oe_runmake + cd ${S}/gumstix/i2c + oe_runmake +} + +do_install () { + # install programs to bindir + install -m 0755 -d ${D}${bindir} + install -m 0755 ${S}/gumstix/i2c-io/i2c-io ${D}${bindir} + install -m 0755 ${S}/gumstix/i2c-load/i2c-load ${D}${bindir} + install -m 0755 ${S}/gumstix/i2c/i2c ${D}${bindir} + install -m 0755 ${S}/gumstix/robostix ${D}${bindir} + install -m 0755 ${S}/gumstix/sertest ${D}${bindir} + + # kernel module installs with other modules, but use + # cp instead of install so its not stripped + install -m 0755 -d ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ + cp ${S}/gumstix/robostix_drv.ko ${D}${base_libdir}/modules/${KERNEL_VERSION}/extra/ + + # avr hex programs install to /root + install -m 0755 -d ${D}/root + install -m 0755 ${S}/ArgTest/ArgTest.hex ${D}/root + install -m 0755 ${S}/Flash-LED/Flash-LED.hex ${D}/root + install -m 0755 ${S}/i2c-BootLoader/i2c-Boot-m128-16MHz.hex ${D}/root + install -m 0755 ${S}/i2c-BootLoader/i2c-Boot-m128-16MHz-eep.hex ${D}/root + install -m 0755 ${S}/i2c-io/i2c-io.hex ${D}/root + install -m 0755 ${S}/i2c-test/i2c-test.hex ${D}/root + install -m 0755 ${S}/int6/int6.hex ${D}/root + install -m 0755 ${S}/LCD-Test/LCD-Test.hex ${D}/root + install -m 0755 ${S}/QD-Test/QD-Test.hex ${D}/root + install -m 0755 ${S}/RCInput/RC-Test.hex ${D}/root + install -m 0755 ${S}/Simple-Flasher/Simple-Flasher.hex ${D}/root + install -m 0755 ${S}/Simple-Servo/Simple-Servo.hex ${D}/root + install -m 0755 ${S}/Simple-Servo-2/Simple-Servo-2.hex ${D}/root + install -m 0755 ${S}/Tachometer/Tachometer.hex ${D}/root +} + +PACKAGES = "${PN}-i2c-io" +FILES_${PN}-i2c-io = "${bindir}/i2c-io" + +PACKAGES += "${PN}-i2c-load" +FILES_${PN}-i2c-load = "${bindir}/i2c-load" + +PACKAGES += "${PN}-i2c" +FILES_${PN}-i2c = "${bindir}/i2c" + +PACKAGES += "${PN}-sertest" +FILES_${PN}-sertest = "${bindir}/sertest" + +PACKAGES += "${PN}-usermode" +FILES_${PN}-usermode = "${bindir}/robostix" + +PACKAGES += "${PN}-kernel-module" +FILES_${PN}-kernel-module = "${base_libdir}/modules/${KERNEL_VERSION}/extra/robostix_drv.ko" + +PACKAGES += "${PN}-avr-ArgTest" +FILES_${PN}-avr-ArgTest = "/root/ArgTest.hex" + +PACKAGES += "${PN}-avr-Flash-LED" +FILES_${PN}-avr-Flash-LED = "/root/Flash-LED.hex" + +PACKAGES += "${PN}-avr-i2c-BootLoader" +FILES_${PN}-avr-i2c-BootLoader = "/root/i2c-Boot-m128-16MHz.hex" + +PACKAGES += "${PN}-avr-i2c-BootLoader-eep" +FILES_${PN}-avr-i2c-BootLoader-eep = "/root/i2c-Boot-m128-16MHz-eep.hex" + +PACKAGES += "${PN}-avr-i2c-io" +FILES_${PN}-avr-i2c-io = "/root/i2c-io.hex" + +PACKAGES += "${PN}-avr-i2c-test" +FILES_${PN}-avr-i2c-test = "/root/i2c-test.hex" + +PACKAGES += "${PN}-avr-int6" +FILES_${PN}-avr-int6 = "/root/int6.hex" + +PACKAGES += "${PN}-avr-LCD-Test" +FILES_${PN}-avr-LCD-Test = "/root/LCD-Test.hex" + +PACKAGES += "${PN}-avr-QD-Test" +FILES_${PN}-avr-QD-Test = "/root/QD-Test.hex" + +PACKAGES += "${PN}-avr-RC-Test" +FILES_${PN}-avr-RC-Test = "/root/RC-Test.hex" + +PACKAGES += "${PN}-avr-Simple-Flasher" +FILES_${PN}-avr-Simple-Flasher = "/root/Simple-Flasher.hex" + +PACKAGES += "${PN}-avr-Simple-Servo" +FILES_${PN}-avr-Simple-Servo = "/root/Simple-Servo.hex" + +PACKAGES += "${PN}-avr-Simple-Servo-2" +FILES_${PN}-avr-Simple-Servo-2 = "/root/Simple-Servo-2.hex" + +PACKAGES += "${PN}-avr-Tachometer" +FILES_${PN}-avr-Tachometer = "/root/Tachometer.hex" + diff --git a/recipes/robostix/robostix/gummake.patch b/recipes/robostix/robostix/gummake.patch new file mode 100644 index 0000000000..0b968592b5 --- /dev/null +++ b/recipes/robostix/robostix/gummake.patch @@ -0,0 +1,26 @@ +--- robostix/gumstix/Makefile.orig 2008-03-08 11:37:50.000000000 -0700 ++++ robostix/gumstix/Makefile 2008-03-08 11:36:55.000000000 -0700 +@@ -32,10 +32,10 @@ + + PWD := $(shell pwd) + +-GUMSTIX_BUILDROOT = $(PWD)/../../gumstix-buildroot +-BUILD_ARM = $(GUMSTIX_BUILDROOT)/build_arm_nofpu +-KERNELDIR ?= $(wildcard $(BUILD_ARM)/linux-*) +-CROSS_COMPILE = $(BUILD_ARM)/staging_dir/bin/arm-linux- ++#GUMSTIX_BUILDROOT = $(PWD)/../../gumstix-buildroot ++#BUILD_ARM = $(GUMSTIX_BUILDROOT)/build_arm_nofpu ++#KERNELDIR ?= $(wildcard $(BUILD_ARM)/linux-*) ++#CROSS_COMPILE = $(BUILD_ARM)/staging_dir/bin/arm-linux- + + default: svn-version.h user-app kernel-module + +@@ -47,7 +47,7 @@ + user-app: robostix sertest + + TARGET_ARCH=-Os -march=armv5te -mtune=xscale -Wa,-mcpu=xscale +-CC = $(CROSS_COMPILE)gcc ++#CC = $(CROSS_COMPILE)gcc + + robostix: robostix.c + diff --git a/recipes/robostix/robostix/makefile-rules.patch b/recipes/robostix/robostix/makefile-rules.patch new file mode 100644 index 0000000000..f00d2884e8 --- /dev/null +++ b/recipes/robostix/robostix/makefile-rules.patch @@ -0,0 +1,25 @@ +--- robostix/Rules.mk.orig 2008-03-08 10:36:37.000000000 -0700 ++++ robostix/Rules.mk 2008-03-08 10:37:14.000000000 -0700 +@@ -24,21 +24,7 @@ + vpath %.c ../Common ../Shared
+ vpath %.S ../Common ../Shared
+
+-CFLAGS += -Os \
+- -Wall \
+- -Werror \
+- -Wimplicit \
+- -Wpointer-arith \
+- -Wswitch \
+- -Wredundant-decls \
+- -Wreturn-type \
+- -Wshadow \
+- -Wunused \
+- -Wcast-qual \
+- -Wnested-externs \
+- -Wmissing-prototypes \
+- -Wstrict-prototypes \
+- -Wmissing-declarations
++CFLAGS += -Os
+
+ CPPFLAGS += $(AVR_MCU_FLAGS) -I . -I ../Common -I ../Shared
+ LDFLAGS += $(AVR_MCU_FLAGS) -Wl,-Map,$(basename $@).map
|