From 9c47c678db8c6ddd87f1f1e80a74b5f0b784d8a6 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 24 Jun 2008 16:23:24 +0000 Subject: ezx-boot-usb-native ALL create .inc and deploy into proper directory (DEPLOY_DIR_TOOLS) --- packages/ezx/ezx-boot-usb-native.inc | 32 +++++++++++++++++++++++++++++ packages/ezx/ezx-boot-usb-native_0.1.0.bb | 25 +---------------------- packages/ezx/ezx-boot-usb-native_0.2.0.bb | 28 +------------------------ packages/ezx/ezx-boot-usb-native_svn.bb | 34 ++----------------------------- 4 files changed, 36 insertions(+), 83 deletions(-) create mode 100644 packages/ezx/ezx-boot-usb-native.inc (limited to 'packages/ezx') diff --git a/packages/ezx/ezx-boot-usb-native.inc b/packages/ezx/ezx-boot-usb-native.inc new file mode 100644 index 0000000000..e2ebb52df4 --- /dev/null +++ b/packages/ezx/ezx-boot-usb-native.inc @@ -0,0 +1,32 @@ +DESCRIPTION = "Boots a Motorola EZX device with a user supplied kernel zImage" +DEPENDS = "libusb-native" +SECTION = "devel" +AUTHOR = "Harald Welte " +LICENSE = "GPL" + +SRC_URI = "\ + svn://svn.openezx.org/trunk/src/host;module=boot_usb;proto=http \ + file://asm-arm \ +" +S = "${WORKDIR}/boot_usb" + +inherit native + +do_compile() { + ${CC} -I${WORKDIR} ${CFLAGS} ${LDFLAGS} -lusb -o ezx-boot-usb boot_usb.c +} + +do_deploy() { + install -d ${DEPLOY_DIR_TOOLS} + install -m 0755 ezx-boot-usb ${DEPLOY_DIR_TOOLS}/ezx-boot-usb-${PV} +} + +do_stage() { + : +} + +do_install() { + : +} + +addtask deploy before do_build after do_compile diff --git a/packages/ezx/ezx-boot-usb-native_0.1.0.bb b/packages/ezx/ezx-boot-usb-native_0.1.0.bb index 5919f28a11..b70aca3709 100644 --- a/packages/ezx/ezx-boot-usb-native_0.1.0.bb +++ b/packages/ezx/ezx-boot-usb-native_0.1.0.bb @@ -1,30 +1,7 @@ -DESCRIPTION = "Boots an EZX device with a user supplied kernel zImage" -DEPENDS = "libusb-native" -SECTION = "devel" -AUTHOR = "Harald Welte" -LICENSE = "GPL" +require ezx-boot-usb-native.inc PR = "r0" SRC_URI = "http://www.openezx.org/download/boot_usb-${PV}.tar.bz2" S = "${WORKDIR}/boot_usb-${PV}" inherit native - -do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} -lusb -o ezx-boot-usb boot_usb.c -} - -do_deploy() { - install -d ${DEPLOY_DIR_IMAGE} - install -m 0755 ezx-boot-usb ${DEPLOY_DIR_IMAGE}/ezx-boot-usb -} - -do_stage() { - : -} - -do_install() { - : -} - -addtask deploy before do_build after do_compile diff --git a/packages/ezx/ezx-boot-usb-native_0.2.0.bb b/packages/ezx/ezx-boot-usb-native_0.2.0.bb index 6091e36d11..7c2883b5b7 100644 --- a/packages/ezx/ezx-boot-usb-native_0.2.0.bb +++ b/packages/ezx/ezx-boot-usb-native_0.2.0.bb @@ -1,31 +1,5 @@ -DESCRIPTION = "Boots a Motorola EZX device with a user supplied kernel zImage" -DEPENDS = "libusb-native" -SECTION = "devel" -AUTHOR = "Team OpenEZX " -LICENSE = "GPL" -PR = "r0" +require ezx-boot-usb-native.inc SRC_URI = "http://www.openezx.org/download/boot_usb-${PV}.tar.bz2 \ file://asm-arm" S = "${WORKDIR}/boot_usb-${PV}" - -inherit native - -do_compile() { - ${CC} ${CFLAGS} -I${WORKDIR} ${LDFLAGS} -lusb -o ezx-boot-usb boot_usb.c -} - -do_deploy() { - install -d ${DEPLOY_DIR_IMAGE} - install -m 0755 ezx-boot-usb ${DEPLOY_DIR_IMAGE}/ezx-boot-usb -} - -do_stage() { - : -} - -do_install() { - : -} - -addtask deploy before do_build after do_compile diff --git a/packages/ezx/ezx-boot-usb-native_svn.bb b/packages/ezx/ezx-boot-usb-native_svn.bb index 64e8a486e0..6ab4263dba 100644 --- a/packages/ezx/ezx-boot-usb-native_svn.bb +++ b/packages/ezx/ezx-boot-usb-native_svn.bb @@ -1,35 +1,5 @@ -DESCRIPTION = "Boots an EZX device with a user supplied kernel zImage" -DEPENDS = "libusb-native" -SECTION = "devel" -AUTHOR = "Harald Welte" -LICENSE = "GPL" -PR = "r1" +require ezx-boot-usb-native.inc DEFAULT_PREFERENCE = "-1" -REV = "1922" -PV = "0.1.0+r${REV}" - -SRC_URI = "svn://svn.openezx.org/trunk/src/host;module=boot_usb;proto=http;rev=${REV}" -S = "${WORKDIR}/boot_usb" - -inherit native - -do_compile() { - ${CC} ${CFLAGS} ${LDFLAGS} -lusb -o ezx-boot-usb boot_usb.c -} - -do_deploy() { - install -d ${DEPLOY_DIR_IMAGE} - install -m 0755 ezx-boot-usb ${DEPLOY_DIR_IMAGE}/ezx-boot-usb -} - -do_stage() { - : -} - -do_install() { - : -} - -addtask deploy before do_build after do_compile +PV = "0.2.0+r${SRCREV}" -- cgit v1.2.3