Changes between Version 19 and Version 20 of Building%20SHR%20with%20chroot


Ignore:
Timestamp:
05/02/12 11:05:48 (14 months ago)
Author:
Ben
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Building%20SHR%20with%20chroot

    v19 v20  
    2525 
    2626The above command will checkout the shr-chroot repository to a directory called shr-chroot. It will download a large number of files via git so it may take a while to complete if you have a slow connection. It will also change UID/GID of included bitbake account from default 1026 to UID/GID of user who called setup-shr-chroot. 
    27 Then you need root to be able to bind important system directories to it and then change / to it. 
     27 
     28== Entering the chroot == 
     29First enter the directory: 
    2830{{{ 
    2931$ cd shr-chroot 
     32}}} 
     33 
     34Then you need sudo in order to bind important system directories, and then change the "/" directory via the following command: 
     35{{{ 
    3036$ sudo ./shr-chroot.sh 
    3137}}} 
    3238 
    33 Now you don't need root anymore, so switch to prepared bitbake account and setup preferred shr version. 
     39At this stage sudo/root is no longer required, so we switch to the ready made user account "bitbake" account. 
    3440{{{ 
    3541$ su - bitbake 
    36 $ make setup-shr-core # for up-to-date code. #or for deprecated code "make setup-shr-unstable" or "setup-shr-testing" 
    3742}}} 
    3843 
    39 This will checkout common directory with shared config files and Makefile, openembedded directory with OE and shr-unstable directory. You need to do this step even if you have old shr-unstable builddir to get new config files! 
     44Next we need to checkout a common directory with shared configuration files and Makefile, openembedded directory with OE and shr-core directory: 
     45{{{ 
     46$ make setup-shr-core 
     47}}} 
    4048 
    4149You are nearly ready to build your first image. But before you can tweak some configurations files, see next section. 
    4250 
    43 == Setup Non shr-chroot (if you like to build without shr-chroot but use native build host dependencies) == 
    44 If you want to build SHR without setting up a chroot environment but use the programs installed on your native build host use these commands: 
    45 {{{ 
    46 make setup-shr-core 
    47 make setup-bitbake 
    48 }}} 
    49  
    50 The disadvantage is that there may be some untested influences of your host build system and the SHR build. 
    51  
    5251= Configuration = 
    5352 
    54 local.conf is a central configuration file in your openembedded/shr/yocto/etc. tree. It's located at 
    55  
    56 shr-unstable/conf/local.conf or shr-testing/conf/local.conf 
     53local.conf is a central configuration file in your openembedded/shr/yocto/etc. tree. It's located at: shr-core/conf/local.conf 
    5754 
    5855Although it should be setup already when using Makefile, you might want to make a few teaks: