Compare commits

...

10 Commits

Author SHA1 Message Date
Pau Espin 819c17e138 Makefile: run 'bitbake package-index' after bitbake command building packages
It was recently spotted that during a build of 201705-testing where
sysmocom-openvpn-config was being rebuilt, the Packages(.gz) files
(opkg package indexes) were rebuilt before the new .ipk files for
sysmocom-openvpn-config were written to disk. Also then the Packages
file didn't contain a reference to the new sysmocom-openvpn-config
package version. So, it seems there was a race condition where the
package index was built too early.

Yocto documentation provides some hints:
https://docs.yoctoproject.org/dev-manual/packages.html?highlight=bitbake+package+index#build-considerations
"""
Whenever you perform any sort of build step that can potentially generate
a package or modify existing package, it is always a good idea to
re-generate the package index after the build by using the following
command: bitbake package-index
Do not do "$ bitbake some-package package-index" as BitBake does not schedule
the package index for after the completion of the package you are building.
Consequently, you cannot be sure of the package index including
information for the package you just built. Thus, be sure to run the
package update step separately after building any packages.
"""

So far it seems we were relying on the "create filesystem" task
triggered for image creation which would also trigger the package index
recreation, according to
https://yocto.yoctoproject.narkive.com/rjvLrVpW/question-about-rebuilding-rpm-package-index-for-updated-rpms-when-bitbake-completes
"""
The feed is normally indexed (createrepo) either when you manually run the
package-index operation, or when you construct a filesystem. Until you do that,
the feed directories are transient.
"""

Related: SYS#6023
2023-06-22 16:24:09 +02:00
Oliver Smith 7aca9c9f1e Makefile: git.osmocom.org -> gerrit.osmocom.org
Related: SYS#6022
2022-09-21 12:26:40 +02:00
Harald Welte 7c0b7a9997 Move to sysmocom poky repository
we needed to patch bitbake to make the git fetcher use https by default
in order to still be able to fetch from github repositories.  This means
we cannot continue to use upstreak poky but must use a private fork.
2022-01-11 12:35:53 +01:00
Harald Welte f02bca3f9f Makefile: Switch from git:// got https://
The unauthenticated git protocol on port 9418 is no longer supported.
https://github.blog/2021-09-01-improving-git-protocol-security-github/
2022-01-11 11:02:01 +01:00
Harald Welte e70782692b migrate from git.sysmocom.de to gitea.sysmocom.de 2021-05-16 13:18:34 +02:00
Pau Espin Pedrol bca318fdac Makefile: Add sysmocom-voice-sip-image default target for sysmobts 2021-02-02 18:13:53 +01:00
Pau Espin abf8de0bcf Revert "HACK: disable dahdi on alix/apu2 builds, too."
This reverts commit e158378a69.

Proper fix is available in meta-telephony
I6b4802374194d0fb722d0c4fd8d6ed72cd468262.

Related: SYS#4760
2019-12-23 11:40:52 +01:00
Harald Welte e158378a69 HACK: disable dahdi on alix/apu2 builds, too.
We are seeing very strange build errors, and I have not the
slightest clue how to debug those:

ERROR: dahdi-linux-2.10.2-r0 do_package_write_ipk: Error executing a python function in exec_python_func() autogenerated:

The stack trace of python calls that resulted in this exception/failure was:
File: 'exec_python_func() autogenerated', lineno: 2, function: <module>
     0001:
 *** 0002:do_package_ipk(d)
     0003:
File: '/home/oe/system-images/git/poky/meta/classes/package_ipk.bbclass', lineno: 231, function: do_package_ipk
     0227:            conffiles.close()
     0228:
     0229:        os.chdir(basedir)
     0230:        subprocess.check_output("PATH=\"%s\" %s %s %s" % (localdata.getVar("PATH"),
 *** 0231:                                                          d.getVar("OPKGBUILDCMD"), pkg, pkgoutdir), shell=True)
     0232:
     0233:        if d.getVar('IPK_SIGN_PACKAGES') == '1':
     0234:            ipkver = "%s-%s" % (d.getVar('PKGV'), d.getVar('PKGR'))
     0235:            ipk_to_sign = "%s/%s_%s_%s.ipk" % (pkgoutdir, pkgname, ipkver, d.getVar('PACKAGE_ARCH'))
File: '/usr/lib/python3.4/subprocess.py', lineno: 620, function: check_output
     0616:            process.wait()
     0617:            raise
     0618:        retcode = process.poll()
     0619:        if retcode:
 *** 0620:            raise CalledProcessError(retcode, process.args, output=output)
     0621:    return output
     0622:
     0623:
     0624:def list2cmdline(seq):
Exception: subprocess.CalledProcessError: Command 'PATH="/home/oe/system-images/build.apu2/tmp/sysroots-uninative/x86_64-linux/usr/bin:/home/oe/system-images/git/poky/scripts:/home/oe/system-images/build.apu2/tmp/work/all-poky-linux/dahdi-linux/2.10.2-r0/recipe-sysroot-native/usr/bin/i586-poky-linux:/home/oe/system-images/build.apu2/tmp/work/all-poky-linux/dahdi-linux/2.10.2-r0/recipe-sysroot/usr/bin/crossscripts:/home/oe/system-images/build.apu2/tmp/work/all-poky-linux/dahdi-linux/2.10.2-r0/recipe-sysroot-native/usr/sbin:/home/oe/system-images/build.apu2/tmp/work/all-poky-linux/dahdi-linux/2.10.2-r0/recipe-sysroot-native/usr/bin:/home/oe/system-images/build.apu2/tmp/work/all-poky-linux/dahdi-linux/2.10.2-r0/recipe-sysroot-native/sbin:/home/oe/system-images/build.apu2/tmp/work/all-poky-linux/dahdi-linux/2.10.2-r0/recipe-sysroot-native/bin:/home/oe/system-images/git/poky/bitbake/bin:/home/oe/system-images/build.apu2/tmp/hosttools" opkg-build dahdi-firmware /home/oe/system-images/build.apu2/tmp/work/qemux86-poky-linux/dahdi-linux/2.10.2-r0/deploy-ipks/all' returned non-zero exit status 127

ERROR: dahdi-linux-2.10.2-r0 do_package_write_ipk: Function failed: do_package_ipk
ERROR: Logfile of failure stored in: /home/oe/system-images/build.apu2/tmp/work/qemux86-poky-linux/dahdi-linux/2.10.2-r0/temp/log.do_package_write_ipk.787195
ERROR: Task (/home/oe/system-images/git/meta-telephony/recipes-isdn/dahdi-linux/dahdi-linux_2.10.2.bb:do_package_write_ipk) failed with exit code '1'
2019-12-12 11:53:40 +01:00
Pau Espin 6c68a99f45 cfg: Disable libosmo-abis DAHDI support for ARM BTS 2019-12-03 12:33:30 +01:00
Daniel Willmann 861c37e332 Revert "Makefile: Remove oc2g from MACHINES to prevent automatic build"
This reverts commit a3e4df7d16.
make build-all will now build the oc2g images as well
2019-02-04 12:15:23 +01:00
4 changed files with 15 additions and 8 deletions

View File

@ -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)

View File

@ -6,3 +6,5 @@ PACKAGE_FEED_URIS = "https://autoupdate:eechiesuboot@downloads.sysmocom.de/gener
# HW doesn't have rtc
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
# Disable DAHDI support in libosmo-abis:
PACKAGECONFIG_remove_pn-libosmo-abis = "dahdi"

View File

@ -9,3 +9,6 @@ MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
# Ignore old kernels
BBMASK="recipes-bsp/linux/linux_2.6.39.bb recipes-bsp/linux/linux-sysmocom_3.10.bb"
PREFERRED_VERSION_linux-sysmocom = "4.9.14+git%"
# Disable DAHDI support in libosmo-abis:
PACKAGECONFIG_remove_pn-libosmo-abis = "dahdi"

View File

@ -6,3 +6,5 @@ PACKAGE_FEED_URIS = "https://autoupdate:eechiesuboot@feeds.sysmocom.de/generic/s
# HW doesn't have rtc
MACHINE_FEATURES_BACKFILL_CONSIDERED = "rtc"
# Disable DAHDI support in libosmo-abis:
PACKAGECONFIG_remove_pn-libosmo-abis = "dahdi"