update README
authorRonan Le Martret <ronan@fridu.net>
Thu, 24 Apr 2014 13:46:06 +0000 (15:46 +0200)
committerRonan Le Martret <ronan@fridu.net>
Thu, 24 Apr 2014 13:46:06 +0000 (15:46 +0200)
Change-Id: I5a3dc2eeb489112e25c82f3a8b5ca54f9e9f8788
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
README.md

index a3c4253..3f879cf 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,19 +1,19 @@
 Create a Tizen Common x86_64 image with Yocto
 =============================================
 
-Target: Haswell CPU
+Target: Haswell/Ivy CPU
 
 # Create your working directory
 
 Create a working directory (for example "~/yocto"):
 
-       mkdir ~/yocto
-       cd ~/yocto
+       mkdir -p ${HOME}/yocto
+       cd ${HOME}/yocto
 
 Create a download directory (optional). It will act as a common download
 directory amongst projects:
 
-       mkdir ~/downloads
+       mkdir -p ${HOME}/yocto/downloads
 
 # Download sources
 
@@ -31,14 +31,14 @@ Download openembedded layers:
 
 Download tizen layer:
 
-       git@github.com:eurogiciel-oss/meta-tizen.git
+       git clone git@github.com:eurogiciel-oss/meta-tizen.git
 
 # Configuration
 
 Configure the environment:
 
-       cd poky
-       . ./oe-init-build-env
+       cd ${HOME}/yocto/poky
+       source ./oe-init-build-env build
 
 # Configuration files
 
@@ -55,81 +55,68 @@ for the recipes.
        BBFILES ?= ""
 
        BBLAYERS ?= " \
-         /home/user/yocto/poky/meta \
-         /home/user/yocto/poky/meta-yocto \
-         /home/user/yocto/poky/meta-yocto-bsp \
-         /home/user/yocto/meta-intel \
-         /home/user/yocto/meta-intel/meta-isg/meta-haswell-wc \
-         /home/user/yocto/meta-openembedded/meta-efl \
-         /home/user/yocto/meta-openembedded/meta-oe \
-         /home/user/yocto/meta-openembedded/meta-multimedia \
-         /home/user/yocto/meta-openembedded/meta-ruby \
-         /home/user/yocto/meta-openembedded/meta-systemd \
-         /home/user/yocto/meta-tizen \
+         ${HOME}/yocto/poky/meta \
+         ${HOME}/yocto/poky/meta-yocto \
+         ${HOME}/yocto/poky/meta-yocto-bsp \
+         ${HOME}/yocto/meta-intel \
+         ${HOME}/yocto/meta-intel/meta-isg/meta-haswell-wc \
+         ${HOME}/yocto/meta-openembedded/meta-efl \
+         ${HOME}/yocto/meta-openembedded/meta-oe \
+         ${HOME}/yocto/meta-openembedded/meta-multimedia \
+         ${HOME}/yocto/meta-openembedded/meta-ruby \
+         ${HOME}/yocto/meta-openembedded/meta-systemd \
+         ${HOME}/yocto/meta-tizen \
          "
+       #For Arch haswell
+       #BBLAYERS += "${HOME}/yocto/meta-intel/meta-haswell-wc"
+       #For Arch Ivy
+       BBLAYERS += "${HOME}/yocto/meta-intel/meta-romley"
 
 ## conf/local.conf
 
 Most of default values can be kept. The one that needs to be changed is:
 
-       MACHINE ?= "qemux86-64:wq
-       :wq"
+        #For qemu
+       MACHINE ?= "qemux86-64"
+        #For haswell
+       MACHINE ?= "haswell-wc"
+        #For Ivy
+       MACHINE ?= "romley-ivb"
 
 Other useful option to set:
 
 Download directory:
-
        DL_DIR ?= "${HOME}/yocto/downloads"
 
 Setting the download directory DL_DIR to a directory shared amongst
 projects prevents common data from being downloaded for each project.
 
 Terminal emulator:
-
        OE_TERMINAL = "screen"
 
 The terminal emulator you want to use.
 
-Example of a complete configuration file (without comments):
+# WARNING
+# WARNING TMP TRICKS WARNING
+# WARNING
+Unfortunately we have to copy some files to the meta directory
 
-       BB_NUMBER_THREADS ?= "${@oe.utils.cpu_count()}"
-       PARALLEL_MAKE ?= "-j ${@oe.utils.cpu_count()}"
-       MACHINE ?= "genericx86-64"
-       DL_DIR ?= "${HOME}/yocto/downloads"
-       BB_GENERATE_MIRROR_TARBALLS = "1"
-       DISTRO ?= "poky"
-       PACKAGE_CLASSES ?= "package_rpm"
-       EXTRA_IMAGE_FEATURES = "debug-tweaks"
-       USER_CLASSES ?= "buildstats image-mklibs image-prelink"
-       OE_TERMINAL = "screen"
-       PATCHRESOLVE = "noop"
-       BB_DISKMON_DIRS = "\
-               STOPTASKS,${TMPDIR},1G,100K \
-               STOPTASKS,${DL_DIR},1G,100K \
-               STOPTASKS,${SSTATE_DIR},1G,100K \
-               ABORT,${TMPDIR},100M,1K \
-               ABORT,${DL_DIR},100M,1K \
-               ABORT,${SSTATE_DIR},100M,1K"
-               PACKAGECONFIG_pn-qemu-native = "sdl"
-               ASSUME_PROVIDED += "libsdl-native"
-       CONF_VERSION = "1"
-
-1) Unfortunately we have to copy some files to the meta directory
-#ls -1 classes/
-    image.bbclass
-    rootfs_rpm.bbclass
-#ls -1 lib/oe/
-package_manager.py
-smack.py
+    ls -1 classes/
+     image.bbclass
+     rootfs_rpm.bbclass
+
+    ls -1 lib/oe/
+     package_manager.py
+     smack.py
 
 This should be temporary and will be removed as soon as possible.
 
-# cp classes/* ${POCKY_PATH}/meta/classes/
-# cp lib/oe/* ${POCKY_PATH}/lib/oe/
+    cp ${HOME}/yocto/meta-tizen/classes/* ${HOME}/yocto/poky/meta/classes/
+    cp ${HOME}/yocto/meta-tizen/lib/oe/* ${HOME}/yocto/poky/meta/lib/oe/
 
 # Build the Tizen Common image
 
-       bitbake tizen-common-core-image-minimal
+       bitbake tizen-common-core-image-minimal-dev
 
 Two useful options are:
 
@@ -140,7 +127,7 @@ Two useful options are:
 'v' "Output more log message data to the terminal."
 
 Which gives:
-       1) bitbake -kv tizen-common-core-image-minimal
-       2) runqemu qemux86-64 tizen-common-core-image-minimal bootparams="S"
-       3) /etc/smack/init_attr
-The generate image can be found in tmp/deploy/images/qemux86-64/
+       1) bitbake -kv tizen-common-core-image-minimal-dev
+       2) runqemu qemux86-64 tizen-common-core-image-minimal
+
+The generate image can be found in tmp/deploy/images/${MACHINE}