aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/meta/meta-toolchain-b2qt-embedded-sdk.bb
blob: 05acf0996bbe39c6c84bb839ee408b0fe8b027e2 (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
#############################################################################
##
## Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
##
## This file is part of the Qt Enterprise Embedded Scripts of the Qt
## framework.
##
## $QT_BEGIN_LICENSE$
## Commercial License Usage Only
## Licensees holding valid commercial Qt license agreements with Digia
## with an appropriate addendum covering the Qt Enterprise Embedded Scripts,
## may use this file in accordance with the terms contained in said license
## agreement.
##
## For further information use the contact form at
## http://www.qt.io/contact-us.
##
##
## $QT_END_LICENSE$
##
#############################################################################

DESCRIPTION = "B2Qt on embedded Linux SDK toolchain"
PR = "r0"
LICENSE = "CLOSED"

TOOLCHAIN_HOST_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-host packagegroup-cross-canadian-${MACHINE}"
TOOLCHAIN_TARGET_TASK = "nativesdk-packagegroup-b2qt-embedded-toolchain-target"

require recipes-core/meta/meta-toolchain.bb

toolchain_create_sdk_env_script_append() {
    sed -i -e '/export CC/d' $script
    sed -i -e '/export CXX/d' $script
    sed -i -e '/export CFLAGS/d' $script
    sed -i -e '/export CXXFLAGS/d' $script
    sed -i -e '/export LDFLAGS/d' $script
    sed -i -e '/export CPPFLAGS/d' $script
    sed -i -e '/export CFLAGS/d' $script
    sed -i -e '/export CPP/d' $script
    sed -i -e '/export AS/d' $script
    sed -i -e '/export LD/d' $script
    sed -i -e '/export STRIP/d' $script
    sed -i -e '/export RANLIB/d' $script
    sed -i -e '/export OBJCOPY/d' $script
    sed -i -e '/export OBJDUMP/d' $script
    sed -i -e '/export AR/d' $script
    sed -i -e '/export NM/d' $script
}