diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 7e89544..0fb73e3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -7,16 +7,45 @@ jobs: runs-on: ci-yocto-jammy container: volumes: - - /home/yocto-build/diya-opi-distrib:/build - timeout-minutes: 480 + - /home/yocto-build:/build + # options: --cpus 2.5 + timeout-minutes: 720 steps: - name: Check out repository code uses: actions/checkout@v3 - name: Update submodule run: git submodule update --init - - name: Building image and sdk + - name: Init env run: | - cd poky && source oe-init-build-env /build - cat conf/*.conf + echo "" >> build/conf/local.conf + echo "DL_DIR = \"/build/download\"" >> build/conf/local.conf + echo "TMPDIR = \"/build/diya-opi-distrib\"" >> build/conf/local.conf + echo "SSTATE_DIR = \"/build/sstate\"" >> build/conf/local.conf + echo "CACHE = \"/build/diya-opi-distrib-cache\"" >> build/conf/local.conf + echo "BB_CACHEDIR = \"/build/diya-opi-distrib-cache\"" >> build/conf/local.conf + echo "PERSISTENT_DIR = \"/build/diya-opi-distrib-cache\"" >> build/conf/local.conf + # echo "BB_NUMBER_THREADS = \"2\"" >> build/conf/local.conf + # echo "PARALLEL_MAKE = \"-j 2\"" >> build/conf/local.conf + cat build/conf/*.conf + - name: build booloader for Orpi + run: | + cd poky && source oe-init-build-env ../build + printenv + bitbake u-boot + - name: build image for Orpi + run: | + cd poky && source oe-init-build-env ../build + printenv bitbake core-image-base + - name: build sdk for Orpi + run: | + cd poky && source oe-init-build-env ../build bitbake core-image-base -c populate_sdk + - name: build x86_64 qemu image + run: | + cd poky && source oe-init-build-env ../build + MACHINE=qemux86-64 bitbake core-image-base + - name: build x86_64 qemu sdk + run: | + cd poky && source oe-init-build-env ../build + MACHINE=qemux86-64 bitbake core-image-base -c populate_sdk diff --git a/build/conf/bblayers.conf b/build/conf/bblayers.conf index 775149b..8ffe559 100644 --- a/build/conf/bblayers.conf +++ b/build/conf/bblayers.conf @@ -1,19 +1,19 @@ -# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf -# changes incompatibly -POKY_BBLAYERS_CONF_VERSION = "2" - -BBPATH = "${TOPDIR}" -BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" -BBFILES ?= "" - -BBLAYERS ?= " \ - ${BSPDIR}/poky/meta \ - ${BSPDIR}/poky/meta-poky \ - ${BSPDIR}/poky/meta-yocto-bsp \ - ${BSPDIR}/meta-wayland \ - ${BSPDIR}/meta-diya \ - ${BSPDIR}/meta-opi-diya \ - ${BSPDIR}/meta-openembedded/meta-oe \ - ${BSPDIR}/meta-openembedded/meta-python \ - ${BSPDIR}/meta-openembedded/meta-multimedia \ +# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf +# changes incompatibly +POKY_BBLAYERS_CONF_VERSION = "2" + +BBPATH = "${TOPDIR}" +BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}" +BBFILES ?= "" + +BBLAYERS ?= " \ + ${BSPDIR}/poky/meta \ + ${BSPDIR}/poky/meta-poky \ + ${BSPDIR}/poky/meta-yocto-bsp \ + ${BSPDIR}/meta-wayland \ + ${BSPDIR}/meta-diya \ + ${BSPDIR}/meta-opi-diya \ + ${BSPDIR}/meta-openembedded/meta-oe \ + ${BSPDIR}/meta-openembedded/meta-python \ + ${BSPDIR}/meta-openembedded/meta-multimedia \ " \ No newline at end of file