diff options
| author | Holger Dengler <dengler@linutronix.de> | 2016-07-13 15:57:22 +0200 |
|---|---|---|
| committer | Holger Dengler <dengler@linutronix.de> | 2016-07-13 15:57:22 +0200 |
| commit | c6c4f7ad380ab212ad7ed5ad80ba633917b77d81 (patch) | |
| tree | 36724c03500159c4d3904625c59c8e55ccaedaf0 | |
| parent | 469f038e44efd1a16a88f52356f5cac3294970fa (diff) | |
| parent | aac5f4965ead3637f508d9af093b53550cd78895 (diff) | |
Merge remote-tracking branch 'remotes/origin/devel/manut/yocto'
Integration of Manu's latest Yocto topics
| -rw-r--r-- | distribution/Kconfig | 2 | ||||
| -rw-r--r-- | distribution/autotools/Kconfig | 5 | ||||
| -rw-r--r-- | distribution/autotools/Makefile | 1 | ||||
| -rw-r--r-- | distribution/autotools/pres_autotools.tex | 7 | ||||
| -rw-r--r-- | distribution/yocto-advanced/exportsrc.bblcass | 8 | ||||
| -rw-r--r-- | distribution/yocto-advanced/yocto-local-conf.tex | 12 | ||||
| -rwxr-xr-x | lx-trainer-vm/dd-single.sh | 5 | ||||
| -rwxr-xr-x | lx-trainer-vm/dd.sh | 32 |
8 files changed, 49 insertions, 23 deletions
diff --git a/distribution/Kconfig b/distribution/Kconfig index ffac90f..b9571e5 100644 --- a/distribution/Kconfig +++ b/distribution/Kconfig @@ -9,6 +9,8 @@ if ELBE source "distribution/elbe-overview/Kconfig" endif +source "distribution/autotools/Kconfig" + menuconfig YOCTO bool "Yocto build system" diff --git a/distribution/autotools/Kconfig b/distribution/autotools/Kconfig new file mode 100644 index 0000000..de39600 --- /dev/null +++ b/distribution/autotools/Kconfig @@ -0,0 +1,5 @@ +config AUTOTOOLS + bool "autotools" + default y + help + Example how to use the elbe adk diff --git a/distribution/autotools/Makefile b/distribution/autotools/Makefile new file mode 100644 index 0000000..0766c4a --- /dev/null +++ b/distribution/autotools/Makefile @@ -0,0 +1 @@ +obj-$(CONFIG_AUTOTOOLS) += pres_autotools.pdf diff --git a/distribution/autotools/pres_autotools.tex b/distribution/autotools/pres_autotools.tex new file mode 100644 index 0000000..b0d4801 --- /dev/null +++ b/distribution/autotools/pres_autotools.tex @@ -0,0 +1,7 @@ +\input{configpres} + +\title{Autotools} +\maketitle +\input{autotools} + +\input{tailpres} diff --git a/distribution/yocto-advanced/exportsrc.bblcass b/distribution/yocto-advanced/exportsrc.bblcass new file mode 100644 index 0000000..c123111 --- /dev/null +++ b/distribution/yocto-advanced/exportsrc.bblcass @@ -0,0 +1,8 @@ +do_exportsrc () { + DEPLOY_DIR_SRC="${DEPLOY_DIR}/src-export/${MACHINE}" + mkdir -p "${DEPLOY_DIR_SRC}" + tar cjf "${DEPLOY_DIR_SRC}/${PN}-${PV}-${PR}.tar.bz2" -C "${WORKDIR}" "${BP}" +} + +addtask exportsrc after do_configure before do_compile + diff --git a/distribution/yocto-advanced/yocto-local-conf.tex b/distribution/yocto-advanced/yocto-local-conf.tex index b8dd222..b1e2a52 100644 --- a/distribution/yocto-advanced/yocto-local-conf.tex +++ b/distribution/yocto-advanced/yocto-local-conf.tex @@ -20,6 +20,18 @@ local.conf is used to configure \end{frame} \begin{frame}[fragile] +\frametitle{Yocto with local mirror} +\begin{description} +\item [PREMIRRORS] list of mirrors that are tried before SRC\_URI +\item [MIRRORS] list of mirrors that are tried after SRC\_URI +\item [BB\_FETCH\_PREMIRRORONLY = "1"] only use sources from PREMIRRORS +\item [BB\_NO\_NETWORK = "1"] throws error instead of accessing internet +\item [BB\_GENERATE\_MIRROR\_TARBALLS = "1"] generates a tarball that can be + used as mirror +\end{description} +\end{frame} + +\begin{frame}[fragile] \frametitle{override default config files} default templates can be overridden by setting TEMPLATECONF to e.g. meta-mini/conf during ./oe-init-buildenv. diff --git a/lx-trainer-vm/dd-single.sh b/lx-trainer-vm/dd-single.sh index 1c17f5e..505afb9 100755 --- a/lx-trainer-vm/dd-single.sh +++ b/lx-trainer-vm/dd-single.sh @@ -5,9 +5,8 @@ dd if=build/lx-trainer.img of=/dev/sdb bs=5M echo -e "n\np\n\n\n\nw" | fdisk /dev/sdb partprobe -mkfs.ext4 -F -L scratch /dev/sdb2 +mkfs.ext4 -F -L lxhome /dev/sdb2 mount /dev/sdb2 /mnt -mkdir /mnt/devel -cp -a scratch/* /mnt/ +cp -a yocto-home-overlay/* /mnt/ umount /mnt diff --git a/lx-trainer-vm/dd.sh b/lx-trainer-vm/dd.sh index 44685bc..a2effd4 100755 --- a/lx-trainer-vm/dd.sh +++ b/lx-trainer-vm/dd.sh @@ -1,10 +1,10 @@ #!/bin/bash cat build/lx-trainer.img | tee \ - >(dd of=/dev/sde) \ - >(dd of=/dev/sdb) \ - >(dd of=/dev/sdc) \ - | dd of=/dev/sdd + >(dd of=/dev/sde bs=5M) \ + >(dd of=/dev/sdb bs=5M) \ + >(dd of=/dev/sdc bs=5M) \ + | dd of=/dev/sdd bs=5M echo -e "n\np\n\n\n\nw" | fdisk /dev/sdb echo -e "n\np\n\n\n\nw" | fdisk /dev/sdc @@ -12,31 +12,23 @@ echo -e "n\np\n\n\n\nw" | fdisk /dev/sdd echo -e "n\np\n\n\n\nw" | fdisk /dev/sde partprobe -mkfs.ext4 -F -L scratch /dev/sdb2 -mkfs.ext4 -F -L scratch /dev/sdc2 -mkfs.ext4 -F -L scratch /dev/sdd2 -mkfs.ext4 -F -L scratch /dev/sde2 +mkfs.ext4 -F -L lxhome /dev/sdb2 +mkfs.ext4 -F -L lxhome /dev/sdc2 +mkfs.ext4 -F -L lxhome /dev/sdd2 +mkfs.ext4 -F -L lxhome /dev/sde2 mount /dev/sdb2 /mnt -mkdir /mnt/devel -chown 1000:1000 /mnt/devel -cp -a scratch/* /mnt/ +cp -a yocto-home-overlay/* /mnt/ umount /mnt mount /dev/sdc2 /mnt -mkdir /mnt/devel -chown 1000:1000 /mnt/devel -cp -a scratch/* /mnt/ +cp -a yocto-home-overlay/* /mnt/ umount /mnt mount /dev/sdd2 /mnt -mkdir /mnt/devel -chown 1000:1000 /mnt/devel -cp -a scratch/* /mnt/ +cp -a yocto-home-overlay/* /mnt/ umount /mnt mount /dev/sde2 /mnt -mkdir /mnt/devel -chown 1000:1000 /mnt/devel -cp -a scratch/* /mnt/ +cp -a yocto-home-overlay/* /mnt/ umount /mnt |
