Changes between Version 19 and Version 20 of Building%20SHR%20with%20chroot
- Timestamp:
- 05/02/12 11:05:48 (14 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Building%20SHR%20with%20chroot
v19 v20 25 25 26 26 The 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 == 29 First enter the directory: 28 30 {{{ 29 31 $ cd shr-chroot 32 }}} 33 34 Then you need sudo in order to bind important system directories, and then change the "/" directory via the following command: 35 {{{ 30 36 $ sudo ./shr-chroot.sh 31 37 }}} 32 38 33 Now you don't need root anymore, so switch to prepared bitbake account and setup preferred shr version.39 At this stage sudo/root is no longer required, so we switch to the ready made user account "bitbake" account. 34 40 {{{ 35 41 $ su - bitbake 36 $ make setup-shr-core # for up-to-date code. #or for deprecated code "make setup-shr-unstable" or "setup-shr-testing"37 42 }}} 38 43 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! 44 Next 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 }}} 40 48 41 49 You are nearly ready to build your first image. But before you can tweak some configurations files, see next section. 42 50 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-core47 make setup-bitbake48 }}}49 50 The disadvantage is that there may be some untested influences of your host build system and the SHR build.51 52 51 = Configuration = 53 52 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 53 local.conf is a central configuration file in your openembedded/shr/yocto/etc. tree. It's located at: shr-core/conf/local.conf 57 54 58 55 Although it should be setup already when using Makefile, you might want to make a few teaks:
