[Armadeus-commitlog] SF.net SVN: armadeus:[1190] trunk/buildroot/package
Brought to you by:
sszy
|
From: <ar...@us...> - 2009-03-25 09:24:08
|
Revision: 1190
http://armadeus.svn.sourceforge.net/armadeus/?rev=1190&view=rev
Author: artemys
Date: 2009-03-25 09:23:48 +0000 (Wed, 25 Mar 2009)
Log Message:
-----------
[BUILDROOT] Add a package for Freescale BSP test tools
Added Paths:
-----------
trunk/buildroot/package/freescale-tools/
trunk/buildroot/package/freescale-tools/01-misc-20071002-put_correct_path_to_libvpu.patch
trunk/buildroot/package/freescale-tools/02-misc-20071002-remove_index_in_libvpu.patch
trunk/buildroot/package/freescale-tools/tools.mk
Added: trunk/buildroot/package/freescale-tools/01-misc-20071002-put_correct_path_to_libvpu.patch
===================================================================
--- trunk/buildroot/package/freescale-tools/01-misc-20071002-put_correct_path_to_libvpu.patch (rev 0)
+++ trunk/buildroot/package/freescale-tools/01-misc-20071002-put_correct_path_to_libvpu.patch 2009-03-25 09:23:48 UTC (rev 1190)
@@ -0,0 +1,19 @@
+--- misc-20071002.org/test/mxc_vpu_test/Makefile 2009-03-17 17:35:38.000000000 +0100
++++ misc-20071002/test/mxc_vpu_test/Makefile 2009-03-17 17:48:17.000000000 +0100
+@@ -30,14 +30,14 @@
+ all: $(TARGET) $(TARGET1)
+
+ $(TARGET): $(LIBDIR)$(LIBNAME) $(OBJ)
+- $(LINK) -L . -lpthread -o $(TARGET) $(OBJ) $(LIBNAME)
++ $(LINK) -L . -lpthread -o $(TARGET) $(OBJ) $(LIBDIR)/$(LIBNAME)
+ mkdir -p $(OBJDIR)
+ mv $(TARGET) $(OBJDIR)
+ cp ./config/codec* $(OBJDIR)
+ cp ./bin/do_test $(OBJDIR)
+
+ $(TARGET1): $(LIBDIR)$(LIBNAME) ${OBJ1}
+- $(LINK) -L . -lpthread -o $(TARGET1) $(OBJ1) $(LIBNAME)
++ $(LINK) -L . -lpthread -o $(TARGET1) $(OBJ1) $(LIBDIR)/$(LIBNAME)
+ rm -rf *.o *.a
+ # mkdir -p $(OBJDIR)
+ mv $(TARGET1) $(OBJDIR)
Added: trunk/buildroot/package/freescale-tools/02-misc-20071002-remove_index_in_libvpu.patch
===================================================================
--- trunk/buildroot/package/freescale-tools/02-misc-20071002-remove_index_in_libvpu.patch (rev 0)
+++ trunk/buildroot/package/freescale-tools/02-misc-20071002-remove_index_in_libvpu.patch 2009-03-25 09:23:48 UTC (rev 1190)
@@ -0,0 +1,16 @@
+--- misc-20071002.org/lib/vpu/vpu_io.c 2009-03-17 17:35:38.000000000 +0100
++++ misc-20071002/lib/vpu/vpu_io.c 2009-03-17 17:55:35.000000000 +0100
+@@ -374,11 +374,11 @@
+
+ while (fgets(line, 80, fp) != NULL) {
+ if (strncmp(line, "Hardware", 8) == 0) {
+- str = index(line, ':');
++ str = strchr(line, ':');
+ strcpy(cpu, str + 2);
+ }
+ if (strncmp(line, "Revision", 8) == 0) {
+- str = index(line, ':');
++ str = strchr(line, ':');
+ strcpy(rev, str + 2);
+ }
+ }
Added: trunk/buildroot/package/freescale-tools/tools.mk
===================================================================
--- trunk/buildroot/package/freescale-tools/tools.mk (rev 0)
+++ trunk/buildroot/package/freescale-tools/tools.mk 2009-03-25 09:23:48 UTC (rev 1190)
@@ -0,0 +1,63 @@
+#############################################################
+#
+# Miscellaneous tools from Freescale BSP
+#
+#############################################################
+
+FREESCALE_TOOLS_VERSION:=20071002
+FREESCALE_TOOLS_SOURCE:=misc-$(FREESCALE_TOOLS_VERSION).tar.gz
+FREESCALE_TOOLS_PATCH_SOURCE:=misc-vpu_lib-2.2.2-mx27-2.patch
+FREESCALE_TOOLS_SITE:=http://www.bitshrine.org/gpp/
+FREESCALE_TOOLS_PATCH_SITE:=ftp://ftp2.armadeus.com/armadeusw/download/
+FREESCALE_TOOLS_CAT:=$(ZCAT)
+FREESCALE_TOOLS_DIR:=$(BUILD_DIR)/misc-$(FREESCALE_TOOLS_VERSION)
+FREESCALE_TOOLS_TARGET_DIR:=$(TARGET_DIR)/usr/bin/vpu
+FREESCALE_TOOLS_BIN:=mxc_vpu_test.out
+
+
+$(DL_DIR)/$(FREESCALE_TOOLS_PATCH_SOURCE):
+ $(WGET) -P $(DL_DIR) $(FREESCALE_TOOLS_PATCH_SITE)/$(FREESCALE_TOOLS_PATCH_SOURCE)
+ $(WGET) -P $(DL_DIR) $(FREESCALE_TOOLS_PATCH_SITE)/$(FREESCALE_TOOLS_PATCH_SOURCE).md5
+
+$(DL_DIR)/$(FREESCALE_TOOLS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(FREESCALE_TOOLS_SITE)/$(FREESCALE_TOOLS_SOURCE)
+ $(WGET) -P $(DL_DIR) $(FREESCALE_TOOLS_SITE)/$(FREESCALE_TOOLS_SOURCE).md5
+
+freescale-tools-source: $(DL_DIR)/$(FREESCALE_TOOLS_SOURCE) $(DL_DIR)/$(FREESCALE_TOOLS_PATCH_SOURCE)
+
+$(FREESCALE_TOOLS_DIR)/.unpacked: $(DL_DIR)/$(FREESCALE_TOOLS_SOURCE) $(DL_DIR)/$(FREESCALE_TOOLS_PATCH_SOURCE)
+ $(FREESCALE_TOOLS_CAT) $(DL_DIR)/$(FREESCALE_TOOLS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ mv $(BUILD_DIR)/misc $(FREESCALE_TOOLS_DIR)
+ toolchain/patch-kernel.sh $(FREESCALE_TOOLS_DIR) $(DL_DIR) misc-\*.patch
+ toolchain/patch-kernel.sh $(FREESCALE_TOOLS_DIR) package/freescale-tools \*misc-$(FREESCALE_TOOLS_VERSION)\*.patch
+ touch $@
+
+$(FREESCALE_TOOLS_DIR)/.configured: $(FREESCALE_TOOLS_DIR)/.unpacked
+ touch $@
+
+$(FREESCALE_TOOLS_TARGET_DIR)/$(FREESCALE_TOOLS_BIN): $(FREESCALE_TOOLS_DIR)/.configured
+ $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" PLATFORM=IMX27ADS -C $(FREESCALE_TOOLS_DIR)/lib/vpu/
+ $(MAKE) CROSS_COMPILE="$(TARGET_CROSS)" PLATFORM=IMX27ADS \
+ TOPDIR=$(FREESCALE_TOOLS_DIR) \
+ OBJDIR="$(FREESCALE_TOOLS_TARGET_DIR)" \
+ -C $(FREESCALE_TOOLS_DIR)/test/mxc_vpu_test/
+ touch $@
+
+FREESCALE-TOOLS freescale-tools: uclibc $(FREESCALE_TOOLS_TARGET_DIR)/$(FREESCALE_TOOLS_BIN)
+
+freescale-tools-clean:
+ -$(MAKE) -C $(FREESCALE_TOOLS_DIR)/lib/vpu/ clean
+ -$(MAKE) OBJDIR="$(FREESCALE_TOOLS_TARGET_DIR)" \
+ -C $(FREESCALE_TOOLS_DIR)/test/mxc_vpu_test/ clean
+
+freescale-tools-dirclean:
+ rm -rf $(FREESCALE_TOOLS_DIR)
+
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_FREESCALE_TOOLS)),y)
+TARGETS+=freescale-tools
+endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|