aboutsummaryrefslogtreecommitdiffstats
path: root/meta-microblaze/recipes-core/newlib/libgloss_%.bbappend
blob: 15be173261228ac4c7a7cbf2138a60dd8b88109f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require microblaze-newlib.inc

do_configure:prepend:microblaze() {
    # hack for microblaze, which needs xilinx.ld to literally do any linking (its hard coded in its LINK_SPEC)
    export CC="${CC} -L${S}/libgloss/microblaze"
}

# Libgloss provides various .o files in libdir
# These must NOT be stripped, but for some reason they are installed +x
# which triggers them to be stripped.
do_install:append:microblaze() {
    chmod 0644 ${D}${libdir}/*.o
}