summaryrefslogtreecommitdiff
path: root/recipes/gpioconfig/files
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/gpioconfig/files')
-rwxr-xr-xrecipes/gpioconfig/files/GPIOConfig.desktop11
-rwxr-xr-xrecipes/gpioconfig/files/GPIOConfig.desktop~11
-rw-r--r--recipes/gpioconfig/files/GPIOConfig.pngbin0 -> 340 bytes
-rwxr-xr-xrecipes/gpioconfig/files/Makefile31
4 files changed, 53 insertions, 0 deletions
diff --git a/recipes/gpioconfig/files/GPIOConfig.desktop b/recipes/gpioconfig/files/GPIOConfig.desktop
new file mode 100755
index 0000000..18467ab
--- /dev/null
+++ b/recipes/gpioconfig/files/GPIOConfig.desktop
@@ -0,0 +1,11 @@
+#!/usr/bin/env xdg-open
+
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Icon[C]=GPIOConfig.png
+Exec=/usr/bin/GPIOConfig
+Name[C]=GPIOConfig
+Name=GPIOConfig
+Icon=GPIOConfig.png
diff --git a/recipes/gpioconfig/files/GPIOConfig.desktop~ b/recipes/gpioconfig/files/GPIOConfig.desktop~
new file mode 100755
index 0000000..4a0e9ac
--- /dev/null
+++ b/recipes/gpioconfig/files/GPIOConfig.desktop~
@@ -0,0 +1,11 @@
+#!/usr/bin/env xdg-open
+
+[Desktop Entry]
+Version=1.0
+Type=Application
+Terminal=false
+Icon[C]=gnome-panel-launcher
+Exec=/usr/bin/GPIOConfig
+Name[C]=GPIOConfig
+Name=GPIOConfig
+Icon=/usr/share/pixmaps/GPIOConfig.png
diff --git a/recipes/gpioconfig/files/GPIOConfig.png b/recipes/gpioconfig/files/GPIOConfig.png
new file mode 100644
index 0000000..2227e81
--- /dev/null
+++ b/recipes/gpioconfig/files/GPIOConfig.png
Binary files differ
diff --git a/recipes/gpioconfig/files/Makefile b/recipes/gpioconfig/files/Makefile
new file mode 100755
index 0000000..2b0143d
--- /dev/null
+++ b/recipes/gpioconfig/files/Makefile
@@ -0,0 +1,31 @@
+CROSS_COMPILE ?= /vibrante/toolchains/tegra2-4.4.1-nv/bin/arm-none-linux-gnueabi-
+CC ?= $(CROSS_COMPILE)gcc
+STRIP ?= $(CROSS_COMPILE)strip
+
+SYSROOT_DIR=/srv/nfs/rootfs-include-lib-gtk
+prefix = ""
+bindir = $(prefix)/usr/bin
+
+CFLAGS ?= -Wall -g -O2 `pkg-config --cflags gtk+-2.0`
+
+#DRV = gpio_usr_drv
+
+PROG = GPIOConfig
+
+OBJS = gpio_gtk.o custom-list.o gpio_usr_drv.o
+
+all: $(OBJS)
+# $(CC) -o $(DRV) $(DRV).c
+ $(CC) -o $(PROG) $(OBJS) $(LDFLAGS) `pkg-config --cflags gtk+-2.0` `pkg-config --libs gtk+-2.0` -L $(SYSROOT_DIR)/usr/lib -Wl,--allow-shlib-undefined
+ $(STRIP) $(PROG)
+
+%o: %c
+ $(CC) $(CFLAGS) $(CPPFLAGS) `pkg-config --cflags gtk+-2.0` -c $<
+
+clean:
+ rm -f $(DRV) $(PROG) $(OBJS) *.o~ *.h~ 2>/dev/null
+
+install:
+ install -d $(bindir)
+ install $(PROG) $(bindir)
+