Jump to: navigation, search

Difference between revisions of "StarlingX/Developer Guide/Build System"

m (Structure)
(Local Disk)
Line 42: Line 42:
 
=== Local Disk ===
 
=== Local Disk ===
  
 +
<br><source lang="sh">
 +
[user@container ~]$ tree -d -L 2 /localdisk/
 +
/localdisk/
 +
├── designer
 +
│   └── user
 +
└── loadbuild
 +
    ├── mock
 +
    ├── mock-cache
 +
    └── user
 +
 +
6 directories
 +
[user@container ~]$
 +
</source>
  
 
==== Designer ====
 
==== Designer ====
Line 50: Line 63:
  
 
The 'loadbuild' disk is for the build environment and the generated rpms and iso.
 
The 'loadbuild' disk is for the build environment and the generated rpms and iso.
 
<br><source lang="sh">
 
</source>
 
  
 
== Debug ==
 
== Debug ==

Revision as of 01:56, 28 July 2018

Structure

Environment Variables


[user@container ~]$ echo $MY_WORKSPACE
/localdisk/loadbuild/user/starlingx
[user@container ~]$ echo $MY_REPO
/localdisk/designer/user/starlingx/cgcs-root
[user@container ~]$ echo $MY_REPO_ROOT_DIR
/localdisk/designer/user/starlingx

Mirror


[user@container ~]$ tree -d -L 8 /import/
/import/
└── mirrors
    └── CentOS
        ├── stx-r1
        │   └── CentOS
        │       └── pike
        │           ├── Binary
        │           │   ├── EFI
        │           │   │   └── BOOT
        │           │   ├── images
        │           │   │   └── pxeboot
        │           │   ├── isolinux
        │           │   ├── LiveOS
        │           │   ├── noarch
        │           │   └── x86_64
        │           ├── downloads
        │           │   └── puppet
        │           └── Source
        └── tis-installer

18 directories
[user@container ~]$

Local Disk


[user@container ~]$ tree -d -L 2 /localdisk/
/localdisk/
├── designer
│   └── user
└── loadbuild
    ├── mock
    ├── mock-cache
    └── user

6 directories
[user@container ~]$

Designer

The 'designer' disk is for sourcecode.

Loadbuild

The 'loadbuild' disk is for the build environment and the generated rpms and iso.

Debug

Mock

For serial build use:

$ export MY_BUILD_ENVIRONMENT=$USER-$PROJECT-$SRC_BUILD_ENVIRONMENT
$ export MY_DEBUG_BUILD_CFG_STD=$MY_WORKSPACE/std/configs/${MY_BUILD_ENVIRONMENT}-std/${MY_BUILD_ENVIRONMENT}-std.cfg

For parallel build use:

$ export MY_BUILD_ENVIRONMENT=$USER-$PROJECT-$SRC_BUILD_ENVIRONMENT
$ export MY_DEBUG_BUILD_CFG_STD=$MY_WORKSPACE/std/configs/${MY_BUILD_ENVIRONMENT}-std/${MY_BUILD_ENVIRONMENT}-std.b0.cfg

Enter your mock

$ mock -r $MY_DEBUG_BUILD_CFG_STD --shell

Build ISO

$ ls $MY_WORKSPACE/export/
cgts_deps_tmp.txt  deps_detail.txt  deps.txt  dist  last_test.txt  local.txt  mirrors  mounts_used.log  warnings.txt  yum.conf
$ cat $MY_WORKSPACE/export/deps_detail.txt