commit | 262f540d2dbfd79ef9c20696b1526cdc4c97cb3d | [log] [tgz] |
---|---|---|
author | Jackie Huang <jackie.huang@windriver.com> | Tue May 25 17:12:25 2021 +0800 |
committer | Jackie Huang <jackie.huang@windriver.com> | Thu May 12 21:48:41 2022 +0800 |
tree | 130cb949b0dfa275ff3a7ae9d7739760dc5ccc76 | |
parent | 2ead29a1d5dacb282f8fd48215a4324418a874c7 [diff] |
python-ansible: add crypto module for stx 5.0 * crypto module is required for stx 5.0, or the ansible bootstrap failed with: ``` fatal: [localhost]: FAILED! => { "reason": "no action detected in task. This often indicates a misspelled module name, or incorrect module path.\n\nThe error appears to be in '/usr/share/ansible/stx-ansible/playbooks/roles/common/create-etcd-certs/tasks/main.yml': line 12, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate private key for etcd server and client\n ^ here\n" } ``` * add a patch for crypto module to allow the constraint value to be lower case to avoid the following issue: ``` File "/tmp/ansible_openssl_csr_payload_OzIIJq/ansible_openssl_csr_payload.zip/ansible/module_utils/crypto.py", line 1821, in cryptography_get_basic_constraints raise OpenSSLObjectError('Unknown basic constraint value "{0}" for CA'.format(constraint[3:])) ``` Issue-ID: INF-215 Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Change-Id: I856fc8f0ba9cdcb3137de2cffe3e5d9d13765f74
This includes a Yocto/OpenEmbedded compatible layer meta-stx-oran and wrapper scripts to pull all required Yocto/OE layers to build out the reference platform.
meta-stx-oran layer depends on many Yocto/OE layers with 'thud' branch (Yocto version 2.6),to have a better user experience, meta-stx-oran depends on WRLinux 1018 open source version and uses wrlinux setup tools to create the build environment.
The Yocto Project is an open source collaboration project that provides templates, tools and methods to help you create custom Linux-based systems for embedded and IOT products, regardless of the hardware architecture.
Wind River is a founding member of the Linux Foundation's Yocto Project and continues to help maintain many Yocto Project components.
Wind River Linux is based on Yocto and is the leading free open-source Linux for the embedded industry.
Your host need to meet the requirements for Yocto, please refer to:
The recommended and tested host is Ubuntu 16.04/18.04 and CentOS 7.
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping make xsltproc docbook-utils fop dblatex xmlto \ python-git
* To install the required packages for CentOS 7:
$ sudo yum install -y epel-release $ sudo yum makecache $ sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \ diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \ perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-Digest-SHA \ python34-pip xz which SDL-devel xterm
# Get the wrapper script with either curl or wget $ curl -o build_oran.sh 'https://gerrit.o-ran-sc.org/r/gitweb?p=pti/rtp.git;a=blob_plain;f=scripts/build_oran.sh;hb=HEAD' $ wget -O build_oran.sh 'https://gerrit.o-ran-sc.org/r/gitweb?p=pti/rtp.git;a=blob_plain;f=scripts/build_oran.sh;hb=HEAD' $ chmod +x build_oran.sh $ WORKSPACE=/path/to/workspace $ ./build_oran.sh -w ${WORKSPACE}
If all go well, you will get the ISO image in: ${WORKSPACE}/prj_wrl1018_oran/tmp-glibc/deploy/images/intel-x86-64/oran-image-inf-host-intel-x86-64.iso
Copyright (C) 2019 Wind River Systems, Inc.
Source code included in the tree for individual recipes is under the LICENSE stated in the associated recipe (.bb file) unless otherwise stated.
The metadata is under the following license unless otherwise stated.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.