aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/simpad-utilities/serload-native.bb
blob: cc5da73f83dc868a516e35bbac69681bcc19118a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
DESCRIPTION = "Console utility for transferring a SIMpad boot image via serial a SIMpad"
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
}
do_install() {
        install -d ${D}${bindir}/
        install -m 0755 serload ${D}${bindir}/
}

NATIVE_INSTALL_WORKS = "1"