diff options
author | Koen Kooi <koen@openembedded.org> | 2009-01-10 10:44:13 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-01-10 10:44:13 +0100 |
commit | d076ad3dbeac4bf7a58a335348c1560dd23799a7 (patch) | |
tree | f402fe30741bb8ea76d0f411a1179c6ac937be76 /packages/robostix | |
parent | 06af67f2e653d6b0d45117f9aaad0b25db1eaa67 (diff) |
gumstix utils: add char-driver, gpio-event, i2c and microwindows
Diffstat (limited to 'packages/robostix')
-rw-r--r-- | packages/robostix/robostix.bb | 135 | ||||
-rw-r--r-- | packages/robostix/robostix/gummake.patch | 26 | ||||
-rw-r--r-- | packages/robostix/robostix/makefile-rules.patch | 25 |
3 files changed, 186 insertions, 0 deletions
diff --git a/packages/robostix/robostix.bb b/packages/robostix/robostix.bb new file mode 100644 index 0000000000..5e1f8c8b69 --- /dev/null +++ b/packages/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/packages/robostix/robostix/gummake.patch b/packages/robostix/robostix/gummake.patch new file mode 100644 index 0000000000..0b968592b5 --- /dev/null +++ b/packages/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/packages/robostix/robostix/makefile-rules.patch b/packages/robostix/robostix/makefile-rules.patch new file mode 100644 index 0000000000..f00d2884e8 --- /dev/null +++ b/packages/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
|