|
|
|
@ -25,11 +25,11 @@ endif
|
|
|
|
|
SYSMOCOM_RELEASE=201705
|
|
|
|
|
POKY_RELEASE=pyro
|
|
|
|
|
REPOS=poky meta-telephony meta-qt5 meta-sysmocom-bsp meta-smalltalk
|
|
|
|
|
MACHINES=sysmobts sysmobts2100 sysmocom-apu2 sysmocom-alix
|
|
|
|
|
MACHINES=sysmobts sysmobts2100 sysmocom-apu2 sysmocom-alix oc2g
|
|
|
|
|
FEED_NAME=$(SYSMOCOM_RELEASE)-testing
|
|
|
|
|
|
|
|
|
|
# The default targets to pick depending on machine
|
|
|
|
|
BUILD_TARGET_sysmobts = meta-toolchain-osmo task-sysmocom-feed sysmocom-core-image sysmocom-nitb-image sysmocom-core-rauc-image sysmocom-nitb-rauc-image image-rauc-rescue-initramfs image-rauc-slot-initramfs image-rauc-ubi
|
|
|
|
|
BUILD_TARGET_sysmobts = meta-toolchain-osmo task-sysmocom-feed sysmocom-core-image sysmocom-nitb-image sysmocom-voice-sip-image sysmocom-core-rauc-image sysmocom-nitb-rauc-image image-rauc-rescue-initramfs image-rauc-slot-initramfs image-rauc-ubi
|
|
|
|
|
BUILD_TARGET_sysmobts2100 = meta-toolchain-osmo task-sysmocom-feed sysmocom-core-image sysmocom-nitb-image
|
|
|
|
|
BUILD_TARGET_oc2g = meta-toolchain-osmo task-sysmocom-feed sysmocom-core-image sysmocom-nitb-image
|
|
|
|
|
BUILD_TARGET_sysmocom-apu2 = core-image-minimal-initramfs meta-toolchain-osmo task-sysmocom-feed sysmocom-core-image sysmocom-nitb-image core-image-minimal-initramfs
|
|
|
|
@ -93,15 +93,15 @@ git:
|
|
|
|
|
|
|
|
|
|
## Clone repositories. The other option is by variable something like BRNACH_poky, REPO_poky
|
|
|
|
|
git/poky: | git
|
|
|
|
|
$(V)cd git && git clone --branch=$(GIT_BRANCH_POKY) --depth=1 git://git.yoctoproject.org/poky
|
|
|
|
|
$(V)cd git && git clone --branch=$(GIT_BRANCH_POKY) --depth=1 https://gitea.sysmocom.de/sysmo-bts/generic-poky poky
|
|
|
|
|
git/meta-sysmocom-bsp: | git
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_SYSMOCOM_BSP) git://git.sysmocom.de/poky/meta-sysmocom-bsp
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_SYSMOCOM_BSP) https://gitea.sysmocom.de/sysmo-bts/meta-sysmocom-bsp
|
|
|
|
|
git/meta-telephony: | git
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_TELEPHONY) git://git.osmocom.org/meta-telephony
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_TELEPHONY) https://gerrit.osmocom.org/meta-telephony
|
|
|
|
|
git/meta-smalltalk: | git
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_SMALLTALK) git://github.com/sysmocom/meta-smalltalk
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_SMALLTALK) https://github.com/sysmocom/meta-smalltalk
|
|
|
|
|
git/meta-qt5: | git
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_QT5) git://github.com/sysmocom/meta-qt5
|
|
|
|
|
cd git && git clone --branch=$(GIT_BRANCH_QT5) https://github.com/sysmocom/meta-qt5
|
|
|
|
|
|
|
|
|
|
## Create a build directory, e.g. build.sysmobts
|
|
|
|
|
## Use Poky to set-up the directory and then customize it. Copy files
|
|
|
|
@ -131,7 +131,7 @@ build.%: | git/poky
|
|
|
|
|
|
|
|
|
|
# Start a build..
|
|
|
|
|
%-build: | build.$(subst -build,,%) git/poky
|
|
|
|
|
$(Q)/bin/bash -c "source git/poky/oe-init-build-env build.$(CUR_MACHINE) && bitbake $(BUILD_TARGETS)"
|
|
|
|
|
$(Q)/bin/bash -c "source git/poky/oe-init-build-env build.$(CUR_MACHINE) && bitbake $(BUILD_TARGETS) && bitbake package-index"
|
|
|
|
|
|
|
|
|
|
%-upload: | build.$(subst -upload,,%) git/poky
|
|
|
|
|
$(Q)cd build.$(CUR_MACHINE) && ../scripts/upload-build.sh $(CUR_MACHINE) $(FEED_NAME)
|
|
|
|
|