From b38629953bd2e950016da7b5f846261893cc2fab Mon Sep 17 00:00:00 2001 From: Frans Meulenbroeks Date: Sat, 14 Aug 2010 10:45:23 +0200 Subject: serload-native: Removing legacy staging * Replaced do_stage function with do_install and replaced ${STAGING_BINDIR} with ${D}${bindir} * removed FILES_DIR * added PR * ran through oe-stylize Signed-off-by: Ahsan, Noor Signed-off-by: Frans Meulenbroeks --- recipes/simpad-utilities/serload-native.bb | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'recipes') diff --git a/recipes/simpad-utilities/serload-native.bb b/recipes/simpad-utilities/serload-native.bb index 9be199f1e8..cc5da73f83 100644 --- a/recipes/simpad-utilities/serload-native.bb +++ b/recipes/simpad-utilities/serload-native.bb @@ -1,16 +1,19 @@ -SECTION = "console/utils" -LICENSE= "GPL" DESCRIPTION = "Console utility for transferring a SIMpad boot image via serial a SIMpad" -FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/serload" +SECTION = "console/utils" +LICENSE = "GPL" +PR = "r1" + SRC_URI = "file://serialdownload.cpp file://main.cpp file://serialdownload.h" inherit native do_compile() { - cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp . - ${CXX} -I. -o serload main.cpp serialdownload.cpp + cp ${WORKDIR}/*.h ${WORKDIR}/*.cpp . + ${CXX} -I. -o serload main.cpp serialdownload.cpp } - -do_stage() { - install -m 0755 serload ${STAGING_BINDIR}/ +do_install() { + install -d ${D}${bindir}/ + install -m 0755 serload ${D}${bindir}/ } + +NATIVE_INSTALL_WORKS = "1" -- cgit v1.2.3