blob: d43d1200a3aa963fa53eca27e13050d468ef5bc4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
DESCRIPTION = "This is a cross development C compiler, assembler and linker environment for the production of 8086 executables (Optionally MSDOS COM)"
HOMEPAGE = "http://www.debath.co.uk/dev86/"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
SECTION = "console/tools"
BASE_PV = "0.16.21"
PV = "${BASE_PV}+git"
SRCREV = "e254e0b19651d3b8a20225b40281c9974a95dec4"
SRC_URI = "git://github.com/jbruchon/${BPN}.git;protocol=https;branch=master \
file://0001-cpp-Makefile-respect-LDFLAGS-when-building-bcc-cpp.patch \
file://0003-cpp-update-token1.tok-to-make-new-gperf-happy-regen..patch \
file://0004-regen-token2.h-token1.h-with-gperf-3.1.patch \
file://cross.patch \
file://0001-cpp-fix-race-writing-token.h-files.patch \
"
S = "${WORKDIR}/git"
DEPENDS = "gperf-native"
BBCLASSEXTEND = "native nativesdk"
EXTRA_OEMAKE = "VERSION=${BASE_PV} PREFIX=${prefix} DIST=${D} LDFLAGS='${LDFLAGS}' INEXE=''"
do_compile() {
# always regenerate token1.h, token2.h for deterministic behavior
rm -f ${S}/cpp/token1.h ${S}/cpp/token2.h
oe_runmake make.fil
oe_runmake -f make.fil bcc86 as86 ld86
}
do_install() {
if [ "${prefix}"=="" ] ; then
export prefix=/usr
fi
oe_runmake install-bcc
ln -s ../lib/bcc/bcc-cpp ${D}${prefix}/bin/bcc-cpp
ln -s ../lib/bcc/bcc-cc1 ${D}${prefix}/bin/bcc-cc1
}
FILES:${PN} += "${libdir}/bcc"
# http://gecko.lge.com:8000/Errors/Details/832862
# http://errors.yoctoproject.org/Errors/Details/766930/
# cpp.c:548:1: error: type of 'ch' defaults to 'int' [-Wimplicit-int]
# strsave.c:47:42: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# strsave.c:55:26: error: implicit declaration of function 'hash' [-Wimplicit-function-declaration]
# strsave.c:66:32: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# symbol.c:60:42: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# symbol.c:72:30: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# symbol.c:77:13: error: implicit declaration of function 'hash' [-Wimplicit-function-declaration]
# tok_class.c:305:43: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# tok_io.c:219:20: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
# tok_io.c:488:20: error: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# unproto.c:188:51: error: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
CFLAGS += "-Wno-error=implicit-int -Wno-error=implicit-function-declaration"
# http://errors.yoctoproject.org/Errors/Details/853302/
CFLAGS += "-std=gnu17"
# http://errors.yoctoproject.org/Errors/Details/853303/
# ar.c:615:23: error: passing argument 1 of 'ctime' from incompatible pointer type [-Wincompatible-pointer-types]
CFLAGS += "-Wno-error=incompatible-pointer-types"
EXTRA_OEMAKE += "CFLAGS='${CFLAGS}'"
|