summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/pseudo/pseudo-test.bb
blob: ec6380bddd20f0fd907bcadaf9ae1fc031d99b3b (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
LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"

DEPENDS = "qtbase-native"
CLEANBROKEN = "1"

inherit qmake5_paths

RULES = "999"
PARALLEL_MAKE = "-j 30"

do_compile() {
    # with normall install command it doesn't trigger the issue
    # echo "QINSTALL      = ${STAGING_BINDIR_NATIVE}/install" > Makefile
    /bin/echo "QINSTALL      = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/qmake -install qinstall" > Makefile
    ALL="all: "
    for i in `seq -w 1 ${RULES}`; do
        /bin/echo $i > ${S}/$i.txt
        /bin/echo -e "R$i:\n\t-\$(QINSTALL) ${S}/$i.txt ${D}/$i.txt && mv ${D}/$i.txt ${D}/`expr $i + 1`.txt" >> Makefile;
        ALL="$ALL R$i"
    done
    /bin/echo ${ALL} >> Makefile
}

do_install() {
    # create the files first, so qmake replaces them
    for i in `seq -w 1 ${RULES}`; do
        /bin/echo $i > ${D}/$i.txt
    done
    oe_runmake all
}

FILES_${PN} = "/"