diff options
Diffstat (limited to 'meta/recipes-core')
| -rw-r--r-- | meta/recipes-core/images/build-appliance-image_15.0.0.bb | 34 | ||||
| -rwxr-xr-x | meta/recipes-core/initrdscripts/initramfs-framework/init | 4 |
2 files changed, 23 insertions, 15 deletions
diff --git a/meta/recipes-core/images/build-appliance-image_15.0.0.bb b/meta/recipes-core/images/build-appliance-image_15.0.0.bb index c1704e8b89..fbd573e0e2 100644 --- a/meta/recipes-core/images/build-appliance-image_15.0.0.bb +++ b/meta/recipes-core/images/build-appliance-image_15.0.0.bb | |||
| @@ -26,8 +26,14 @@ inherit core-image setuptools3 features_check | |||
| 26 | 26 | ||
| 27 | REQUIRED_DISTRO_FEATURES += "xattr" | 27 | REQUIRED_DISTRO_FEATURES += "xattr" |
| 28 | 28 | ||
| 29 | SRCREV ?= "cb478c6228f0654ded5ac19a8a8d2f8ba9a717af" | 29 | SRCREV_bitbake ?= "8b582ef8dd0cef0192d4c0104bcd9b5d642d132c" |
| 30 | SRC_URI = "git://git.yoctoproject.org/poky;branch=master;destsuffix=poky \ | 30 | SRCREV_oe-core ?= "5298d01663f897e38380116edf23973d2a156cbc" |
| 31 | SRCREV_yocto ?= "fe65e142d0d9ba0e51ff9175ffa82e902f982a20" | ||
| 32 | SRCREV_FORMAT = "bitbake_oe-core_yocto" | ||
| 33 | |||
| 34 | SRC_URI = "git://git.openembedded.org/bitbake;name=bitbake;branch=master;destsuffix=bitbake \ | ||
| 35 | git://git.openembedded.org/openembedded-core;name=oe-core;branch=master;destsuffix=openembedded-core \ | ||
| 36 | git://git.yoctoproject.org/meta-yocto;name=yocto;branch=master;destsuffix=meta-yocto \ | ||
| 31 | file://Yocto_Build_Appliance.vmx \ | 37 | file://Yocto_Build_Appliance.vmx \ |
| 32 | file://Yocto_Build_Appliance.vmxf \ | 38 | file://Yocto_Build_Appliance.vmxf \ |
| 33 | file://README_VirtualBox_Guest_Additions.txt \ | 39 | file://README_VirtualBox_Guest_Additions.txt \ |
| @@ -44,17 +50,20 @@ IMAGE_CMD:ext4:append () { | |||
| 44 | fakeroot do_populate_poky_src () { | 50 | fakeroot do_populate_poky_src () { |
| 45 | # Because fetch2's git's unpack uses -s cloneflag, the unpacked git repo | 51 | # Because fetch2's git's unpack uses -s cloneflag, the unpacked git repo |
| 46 | # will become invalid in the target. | 52 | # will become invalid in the target. |
| 47 | rm -rf ${UNPACKDIR}/poky/.git | 53 | for d in bitbake openembedded-core meta-yocto; do |
| 48 | rm -f ${UNPACKDIR}/poky/.gitignore | 54 | rm -rf ${UNPACKDIR}/$d/.git |
| 55 | rm -f ${UNPACKDIR}/$d/.gitignore | ||
| 56 | cp -R ${UNPACKDIR}/$d ${IMAGE_ROOTFS}/home/builder/ | ||
| 57 | done | ||
| 49 | 58 | ||
| 50 | cp -R ${UNPACKDIR}/poky ${IMAGE_ROOTFS}/home/builder/poky | 59 | mkdir -p ${IMAGE_ROOTFS}/home/builder/openembedded-core/build/conf |
| 60 | echo "INHERIT += \"rm_work\"" >> ${IMAGE_ROOTFS}/home/builder/openembedded-core/build/conf/auto.conf | ||
| 51 | 61 | ||
| 52 | mkdir -p ${IMAGE_ROOTFS}/home/builder/poky/build/conf | ||
| 53 | mkdir -p ${IMAGE_ROOTFS}/home/builder/poky/build/downloads | ||
| 54 | if [ ${BA_INCLUDE_SOURCES} != 0 ]; then | 62 | if [ ${BA_INCLUDE_SOURCES} != 0 ]; then |
| 55 | cp -RpL ${DL_DIR}/* ${IMAGE_ROOTFS}/home/builder/poky/build/downloads/ | 63 | mkdir -p ${IMAGE_ROOTFS}/home/builder/openembedded-core/build/downloads |
| 64 | cp -RpL ${DL_DIR}/* ${IMAGE_ROOTFS}/home/builder/openembedded-core/build/downloads/ | ||
| 56 | # Remove the git2_* tarballs -- this is ok since we still have the git2/. | 65 | # Remove the git2_* tarballs -- this is ok since we still have the git2/. |
| 57 | rm -rf ${IMAGE_ROOTFS}/home/builder/poky/build/downloads/git2_* | 66 | rm -rf ${IMAGE_ROOTFS}/home/builder/openembedded-core/build/downloads/git2_* |
| 58 | fi | 67 | fi |
| 59 | 68 | ||
| 60 | # Place the README_VirtualBox_Guest_Additions file in builders home folder. | 69 | # Place the README_VirtualBox_Guest_Additions file in builders home folder. |
| @@ -63,7 +72,6 @@ fakeroot do_populate_poky_src () { | |||
| 63 | # Place the README_VirtualBox_Toaster file in builders home folder. | 72 | # Place the README_VirtualBox_Toaster file in builders home folder. |
| 64 | cp ${UNPACKDIR}/README_VirtualBox_Toaster.txt ${IMAGE_ROOTFS}/home/builder/ | 73 | cp ${UNPACKDIR}/README_VirtualBox_Toaster.txt ${IMAGE_ROOTFS}/home/builder/ |
| 65 | 74 | ||
| 66 | echo "INHERIT += \"rm_work\"" >> ${IMAGE_ROOTFS}/home/builder/poky/build/conf/auto.conf | ||
| 67 | echo "export LC_ALL=en_US.utf8" >> ${IMAGE_ROOTFS}/home/builder/.bashrc | 75 | echo "export LC_ALL=en_US.utf8" >> ${IMAGE_ROOTFS}/home/builder/.bashrc |
| 68 | echo "export TERM=xterm-color" >> ${IMAGE_ROOTFS}/home/builder/.bashrc | 76 | echo "export TERM=xterm-color" >> ${IMAGE_ROOTFS}/home/builder/.bashrc |
| 69 | 77 | ||
| @@ -79,8 +87,8 @@ fakeroot do_populate_poky_src () { | |||
| 79 | echo "# export ALL_PROXY=https://proxy.example.com:8080" >> ${IMAGE_ROOTFS}/home/builder/.bashrc | 87 | echo "# export ALL_PROXY=https://proxy.example.com:8080" >> ${IMAGE_ROOTFS}/home/builder/.bashrc |
| 80 | echo "# export ALL_PROXY=socks://socks.example.com:1080" >> ${IMAGE_ROOTFS}/home/builder/.bashrc | 88 | echo "# export ALL_PROXY=socks://socks.example.com:1080" >> ${IMAGE_ROOTFS}/home/builder/.bashrc |
| 81 | 89 | ||
| 82 | chown -R builder:builder ${IMAGE_ROOTFS}/home/builder/poky | 90 | chown -R builder:builder ${IMAGE_ROOTFS}/home/builder/ |
| 83 | chmod -R ug+rw ${IMAGE_ROOTFS}/home/builder/poky | 91 | chmod -R ug+rw ${IMAGE_ROOTFS}/home/builder/ |
| 84 | 92 | ||
| 85 | # Assume we will need CDROM to install guest additions | 93 | # Assume we will need CDROM to install guest additions |
| 86 | mkdir -p ${IMAGE_ROOTFS}/media/cdrom | 94 | mkdir -p ${IMAGE_ROOTFS}/media/cdrom |
| @@ -102,7 +110,7 @@ fakeroot do_populate_poky_src () { | |||
| 102 | export STAGING_INCDIR=${STAGING_INCDIR_NATIVE} | 110 | export STAGING_INCDIR=${STAGING_INCDIR_NATIVE} |
| 103 | export HOME=${IMAGE_ROOTFS}/home/builder | 111 | export HOME=${IMAGE_ROOTFS}/home/builder |
| 104 | mkdir -p ${IMAGE_ROOTFS}/home/builder/.cache/pip | 112 | mkdir -p ${IMAGE_ROOTFS}/home/builder/.cache/pip |
| 105 | pip3_install_params="--user -I -U -v -r ${IMAGE_ROOTFS}/home/builder/poky/bitbake/toaster-requirements.txt" | 113 | pip3_install_params="--user -I -U -v -r ${IMAGE_ROOTFS}/home/builder/bitbake/toaster-requirements.txt" |
| 106 | if [ -n "${http_proxy}" ]; then | 114 | if [ -n "${http_proxy}" ]; then |
| 107 | pip3_install_params="${pip3_install_params} --proxy ${http_proxy}" | 115 | pip3_install_params="${pip3_install_params} --proxy ${http_proxy}" |
| 108 | fi | 116 | fi |
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index 5dd252219a..fe6e3cbf07 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init | |||
| @@ -80,8 +80,8 @@ EFI_DIR=/sys/firmware/efi # place to store device firmware information | |||
| 80 | # make mount stop complaining about missing /etc/fstab | 80 | # make mount stop complaining about missing /etc/fstab |
| 81 | touch /etc/fstab | 81 | touch /etc/fstab |
| 82 | 82 | ||
| 83 | # initialize /proc, /sys, /run/lock and /var/lock | 83 | # initialize /proc, /sys and /run/lock |
| 84 | mkdir -p /proc /sys /run /var/lock | 84 | mkdir -p /proc /sys /run |
| 85 | mount -t proc proc /proc | 85 | mount -t proc proc /proc |
| 86 | mount -t sysfs sysfs /sys | 86 | mount -t sysfs sysfs /sys |
| 87 | mount -t tmpfs tmpfs /run | 87 | mount -t tmpfs tmpfs /run |
