b2286535c9
1: Building rpms now produces an rpm.lst file. This file serves to list all rpms produced by the build. A seperate rpm.lst file is producede for each build type (std, rt, installer). The file is co-resident with the matching repodata directory. The rpm.lst files will need to be published by cengn for each layer build. The download tools in stx-tools will need to find the rpm.lst files of lower layer builds, and use it to direct the download of rpms from the lower layer. 2: Building rpms now produces an image.inc file. This file serves to list all rpms that the layer recommends be built into an iso. The file is stored under the $MY_WORKSPACE/<build-type> subdirectory, although it has identical content for any build-type. The image.inc file will need to be published by cengn for each layer build. The download tools in stx-tools will need to download the per-layer image.inc files to the $MY_REPO/cgcs-centos-repo/layer_image_inc/ sub-directory, renaming the file in some layer specific way. The build-iso tool will process any *.inc files found under $MY_REPO/cgcs-centos-repo/layer_image_inc/ , adding those rpms to the iso. 3) Add a mechanism for layer specific mock.cfg prototypes. This will allow special handling of the real-time (aka 'rt'), repositories for layer builds that need to do a 'rt' build. 4) Add support for a $MY_REPO/cgcs-centos-repo/rt subdirectory, a place to build a repo of real-time rpms originating from lower layer builds. The download tools in stx-tools will need to populate the new rt repos. As of this writing, non-rt rpms remain in $MY_REPO/cgcs-centos-repo/. i.e. there is not a new $MY_REPO/cgcs-centos-repo/std/ directory. 5) Some changes to make us more flexible about where we find realease and bsp files. 6) Found that kernel mudules were not reliably building against the hearnel-headers of our modified kernel. Found that adding '--update' to our mock build command was not working. Does mock expect '--update' to only be used independently of a build command? It does work when used in that manner, so that's what we will do. 7) The build-pkgs, build-srpms, build-rpms family of commands can take a layer argument and/or will read the LAYER environment variable. Current the only use of this variable is to modify the build-info. It does NOT limit the compile to packages for a specific layer. Story: 2006166 Task: 37094 Depends-On: https://review.opendev.org/698756 Depends-On: https://review.opendev.org/700819 Change-Id: I817e08a19cdabe08b3fcc47dee63a36b461c13c0 Co-Authored-by: Martin Chen <haochuan.z.chen@intel.com> Signed-off-by: Scott Little <scott.little@windriver.com>
59 lines
1.2 KiB
Protocol Buffer
59 lines
1.2 KiB
Protocol Buffer
config_opts['root'] = 'BUILD_ENV/mock'
|
|
config_opts['target_arch'] = 'x86_64'
|
|
config_opts['legal_host_arches'] = ('x86_64',)
|
|
config_opts['chroot_setup_cmd'] = 'install @buildsys-build'
|
|
config_opts['dist'] = 'el7' # only useful for --resultdir variable subst
|
|
config_opts['releasever'] = '7'
|
|
config_opts['rpmbuild_networking'] = False
|
|
|
|
|
|
config_opts['yum.conf'] = """
|
|
[main]
|
|
keepcache=1
|
|
debuglevel=2
|
|
reposdir=/dev/null
|
|
logfile=/var/log/yum.log
|
|
retries=20
|
|
obsoletes=1
|
|
gpgcheck=0
|
|
assumeyes=1
|
|
syslog_ident=mock
|
|
syslog_device=
|
|
|
|
# repos
|
|
[local-std]
|
|
name=local-std
|
|
baseurl=LOCAL_BASE/MY_BUILD_DIR/std/rpmbuild/RPMS
|
|
enabled=1
|
|
skip_if_unavailable=1
|
|
metadata_expire=0
|
|
|
|
[local-rt]
|
|
name=local-rt
|
|
baseurl=LOCAL_BASE/MY_BUILD_DIR/rt/rpmbuild/RPMS
|
|
enabled=1
|
|
skip_if_unavailable=1
|
|
metadata_expire=0
|
|
|
|
[local-installer]
|
|
name=local-installer
|
|
baseurl=LOCAL_BASE/MY_BUILD_DIR/installer/rpmbuild/RPMS
|
|
enabled=1
|
|
skip_if_unavailable=1
|
|
metadata_expire=0
|
|
|
|
[StxCentos7Distro]
|
|
name=Stx-Centos-7-Distro
|
|
enabled=1
|
|
baseurl=LOCAL_BASE/MY_REPO_DIR/cgcs-centos-repo/Binary
|
|
failovermethod=priority
|
|
exclude=kernel-devel libvirt-devel
|
|
|
|
[StxCentos7Distro-rt]
|
|
name=Stx-Centos-7-Distro-rt
|
|
enabled=1
|
|
baseurl=LOCAL_BASE/MY_REPO_DIR/cgcs-centos-repo/rt/Binary
|
|
failovermethod=priority
|
|
|
|
"""
|