Skip to contentSkip to conversation

fb-test-app: new package

PATCH Superseded ludovic.desroches at atmel.com 2 participants 3 messages Oct 9, 2012 – Oct 10, 2012

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 fb-test-app: new package

From: Ludovic Desroches <[email protected]>

Test suite for Linux framebuffer.

---
 package/Config.in                  |  1 +
 package/fb-test-app/Config.in      |  6 ++++++
 package/fb-test-app/fb-test-app.mk | 34 ++++++++++++++++++++++++++++++++++
 3 files changed, 41 insertions(+)
 create mode 100644 package/fb-test-app/Config.in
 create mode 100644 package/fb-test-app/fb-test-app.mk
package/Config.in +1 -0
index 50b7631..a1ca25d 100644
@@ -117,6 +117,7 @@ source "package/fbset/Config.in"
 endif
 source "package/fbterm/Config.in"
 source "package/fbv/Config.in"
+source "package/fb-test-app/Config.in"
 source "package/imagemagick/Config.in"
 source "package/linux-fusion/Config.in"
 source "package/lite/Config.in"
package/fb-test-app/Config.in new file +6 -0
new file mode 100644
index 0000000..23b5568
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_FB_TEST_APP
+	bool "fb-test-app"
+	help
+	  Test suite for Linux framebuffer.
+
+	  https://github.com/prpplague/fb-test-app
package/fb-test-app/fb-test-app.mk new file +34 -0
new file mode 100644
index 0000000..9ea932a
@@ -0,0 +1,34 @@
+#############################################################
+#
+# fb-test-app
+#
+#############################################################
+
+FB_TEST_APP_VERSION = v1.0.0
+FB_TEST_APP_SITE = http://github.com/prpplague/fb-test-app/tarball/$(FB_TEST_APP_VERSION)
+FB_TEST_APP_LICENSE = GPLv2
+FB_TEST_APP_LICENSE_FILE = COPYING
+
+define FB_TEST_APP_BUILD_CMDS
+	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all
+endef
+
+define FB_TEST_APP_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/perf $(TARGET_DIR)/usr/bin/fb-test-perf
+	$(INSTALL) -D -m 0755 $(@D)/rect $(TARGET_DIR)/usr/bin/fb-test-rect
+	$(INSTALL) -D -m 0755 $(@D)/fb-test $(TARGET_DIR)/usr/bin/fb-test
+	$(INSTALL) -D -m 0755 $(@D)/offset $(TARGET_DIR)/usr/bin/fb-test-offset
+endef
+
+define FB_TEST_APP_UNINSTALL_TARGET_CMDS
+	rm -f $(TARGET_DIR)/usr/bin/fb-test-perf
+	rm -f $(TARGET_DIR)/usr/bin/fb-test-rect
+	rm -f $(TARGET_DIR)/usr/bin/fb-test
+	rm -f $(TARGET_DIR)/usr/bin/fb-test-offset
+endef
+
+define FB_TEST_APP_CLEAN_CMDS
+	$(MAKE) -C $(@D) clean
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.11.3
#1 lore raw

PATCH v2 1/1 fb-test-app: new package

package/fb-test-app/fb-test-app.mk line 13

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<[email protected]> writes:

From: Ludovic Desroches <[email protected]> Test suite for Linux framebuffer.

package/fb-test-app/fb-test-app.mk new file +3 -0
+
+define FB_TEST_APP_BUILD_CMDS
+	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all

We should also pass our CFLAGS and LDFLAGS. I've added a patch to let the fb-test-app build system support this and then used TARGET_CONFIGURE_OPTS instead.

Committed with that change, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#2 lore raw

PATCH v2 1/1 fb-test-app: new package

Le 10/10/2012 02:47 PM, Peter Korsgaard a ?crit :

Quoted 11 lines

package/fb-test-app/fb-test-app.mk line 13

Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

<[email protected]> writes:

From: Ludovic Desroches <[email protected]> Test suite for Linux framebuffer.

package/fb-test-app/fb-test-app.mk new file +3 -0
+
+define FB_TEST_APP_BUILD_CMDS
+	$(MAKE) CC="$(TARGET_CC)" LD="$(TARGET_LD)" -C $(@D) all

We should also pass our CFLAGS and LDFLAGS. I've added a patch to let the fb-test-app build system support this and then used TARGET_CONFIGURE_OPTS instead.

Ok, thanks Peter for this improvement.

Quoted 3 lines

Committed with that change, thanks.