Commit 544adb2dcf6a4928913a30d1127b545e76ae7cbc
1 parent
0f24053b7f
Exists in
master
mmc: block: Support the fixed index for mmcblk with aliases nodes and add initramfs support
Showing 3 changed files with 3 additions and 4 deletions Inline Diff
recipes-core/images/smarct335x-initramfs-image.bb
1 | DESCRIPTION = "A small image just capable of allowing a device to boot." | 1 | DESCRIPTION = "A small image just capable of allowing a device to boot." |
2 | 2 | ||
3 | IMAGE_INSTALL = "packagegroup-initramfs-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}" | 3 | IMAGE_INSTALL = "packagegroup-initramfs-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP} ${CORE_IMAGE_EXTRA_INSTALL}" |
4 | 4 | ||
5 | IMAGE_LINGUAS = " " | 5 | IMAGE_LINGUAS = " " |
6 | 6 | ||
7 | LICENSE = "MIT" | 7 | LICENSE = "MIT" |
8 | 8 | ||
9 | inherit core-image | 9 | inherit core-image |
10 | 10 | ||
11 | IMAGE_ROOTFS_SIZE = "8192" | 11 | IMAGE_ROOTFS_SIZE = "8192" |
12 | 12 | ||
13 | # remove not needed ipkg informations | 13 | IMAGE_FSTYPES = "ext4" |
14 | ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; " | ||
15 | 14 |
recipes-core/packagegroups/packagegroup-initramfs-boot.bb
1 | # | 1 | # |
2 | # Copyright (C) 2007 OpenedHand Ltd. | 2 | # Copyright (C) 2007 OpenedHand Ltd. |
3 | # | 3 | # |
4 | 4 | ||
5 | SUMMARY = "Minimal boot requirements" | 5 | SUMMARY = "Minimal boot requirements" |
6 | DESCRIPTION = "The minimal set of packages required to boot the system" | 6 | DESCRIPTION = "The minimal set of packages required to boot the system" |
7 | LICENSE = "MIT" | 7 | LICENSE = "MIT" |
8 | DEPENDS = "virtual/kernel" | ||
8 | PR = "r17" | 9 | PR = "r17" |
9 | 10 | ||
10 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 11 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
11 | 12 | ||
12 | inherit packagegroup | 13 | inherit packagegroup |
13 | 14 | ||
14 | # | 15 | # |
15 | # Set by the machine configuration with packages essential for device bootup | 16 | # Set by the machine configuration with packages essential for device bootup |
16 | # | 17 | # |
17 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" | 18 | MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= "" |
18 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" | 19 | MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= "" |
19 | 20 | ||
20 | # Distro can override the following VIRTUAL-RUNTIME providers: | 21 | # Distro can override the following VIRTUAL-RUNTIME providers: |
21 | VIRTUAL-RUNTIME_dev_manager ?= "udev" | 22 | VIRTUAL-RUNTIME_dev_manager ?= "udev" |
22 | VIRTUAL-RUNTIME_login_manager ?= "busybox" | 23 | VIRTUAL-RUNTIME_login_manager ?= "busybox" |
23 | VIRTUAL-RUNTIME_init_manager ?= "sysvinit" | 24 | VIRTUAL-RUNTIME_init_manager ?= "sysvinit" |
24 | VIRTUAL-RUNTIME_initscripts ?= "initscripts" | 25 | VIRTUAL-RUNTIME_initscripts ?= "initscripts" |
25 | VIRTUAL-RUNTIME_keymaps ?= "keymaps" | 26 | VIRTUAL-RUNTIME_keymaps ?= "keymaps" |
26 | 27 | ||
27 | SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock', '', d)} \ | 28 | SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', 'busybox-hwclock', '', d)} \ |
28 | modutils-initscripts \ | 29 | modutils-initscripts \ |
29 | init-ifupdown \ | 30 | init-ifupdown \ |
30 | ${VIRTUAL-RUNTIME_initscripts} \ | 31 | ${VIRTUAL-RUNTIME_initscripts} \ |
31 | " | 32 | " |
32 | |||
33 | RDEPENDS_${PN} = "\ | 33 | RDEPENDS_${PN} = "\ |
34 | base-files \ | 34 | base-files \ |
35 | base-passwd \ | 35 | base-passwd \ |
36 | busybox \ | 36 | busybox \ |
37 | util-linux-blkid \ | 37 | util-linux-blkid \ |
38 | util-linux-mkfs \ | 38 | util-linux-mkfs \ |
39 | util-linux-sfdisk \ | 39 | util-linux-sfdisk \ |
40 | ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", "", d)} \ | 40 | ${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", "", d)} \ |
41 | ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ | 41 | ${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \ |
42 | netbase \ | 42 | netbase \ |
43 | ${VIRTUAL-RUNTIME_login_manager} \ | 43 | ${VIRTUAL-RUNTIME_login_manager} \ |
44 | ${VIRTUAL-RUNTIME_init_manager} \ | 44 | ${VIRTUAL-RUNTIME_init_manager} \ |
45 | ${VIRTUAL-RUNTIME_dev_manager} \ | 45 | ${VIRTUAL-RUNTIME_dev_manager} \ |
46 | ${VIRTUAL-RUNTIME_update-alternatives} \ | 46 | ${VIRTUAL-RUNTIME_update-alternatives} \ |
47 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" | 47 | ${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}" |
48 | 48 | ||
49 | RRECOMMENDS_${PN} = "\ | 49 | RRECOMMENDS_${PN} = "\ |
50 | ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}" | 50 | ${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}" |
recipes-kernel/linux/linux-smarct335x-staging_4.1.bb
1 | SECTION = "kernel" | 1 | SECTION = "kernel" |
2 | DESCRIPTION = "Linux kernel for Embedian SMARC T335X Computer on Module devices" | 2 | DESCRIPTION = "Linux kernel for Embedian SMARC T335X Computer on Module devices" |
3 | LICENSE = "GPLv2" | 3 | LICENSE = "GPLv2" |
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" |
5 | 5 | ||
6 | inherit kernel | 6 | inherit kernel |
7 | 7 | ||
8 | require recipes-kernel/linux/linux-dtb.inc | 8 | require recipes-kernel/linux/linux-dtb.inc |
9 | require recipes-kernel/linux/setup-defconfig.inc | 9 | require recipes-kernel/linux/setup-defconfig.inc |
10 | #require recipes-kernel/linux/multi-kernel.inc | 10 | #require recipes-kernel/linux/multi-kernel.inc |
11 | require recipes-kernel/linux/cmem.inc | 11 | require recipes-kernel/linux/cmem.inc |
12 | 12 | ||
13 | # Look in the generic major.minor directory for files | 13 | # Look in the generic major.minor directory for files |
14 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:" | 14 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-4.1:" |
15 | 15 | ||
16 | # Pull in the devicetree files into the rootfs | 16 | # Pull in the devicetree files into the rootfs |
17 | RDEPENDS_kernel-base += "kernel-devicetree" | 17 | RDEPENDS_kernel-base += "kernel-devicetree" |
18 | 18 | ||
19 | # Add a run-time dependency for the PM firmware to be installed | 19 | # Add a run-time dependency for the PM firmware to be installed |
20 | # on the target file system. | 20 | # on the target file system. |
21 | RDEPENDS_kernel-base_append_ti33x = " am33x-cm3" | 21 | RDEPENDS_kernel-base_append_ti33x = " am33x-cm3" |
22 | RDEPENDS_kernel-base_append_ti43x = " am33x-cm3" | 22 | RDEPENDS_kernel-base_append_ti43x = " am33x-cm3" |
23 | 23 | ||
24 | # Add a run-time dependency for the VPE VPDMA firmware to be installed | 24 | # Add a run-time dependency for the VPE VPDMA firmware to be installed |
25 | # on the target file system. | 25 | # on the target file system. |
26 | RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw" | 26 | RDEPENDS_kernel-base_append_dra7xx = " vpdma-fw" |
27 | 27 | ||
28 | # Default is to package all dtb files for ti33x devices unless building | 28 | # Default is to package all dtb files for ti33x devices unless building |
29 | # for the specific beaglebone machine. | 29 | # for the specific beaglebone machine. |
30 | KERNEL_DEVICETREE_ti33x = "am335x-smarct335x.dtb am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb" | 30 | KERNEL_DEVICETREE_ti33x = "am335x-smarct335x.dtb am335x-evm.dtb am335x-evmsk.dtb am335x-bone.dtb am335x-boneblack.dtb" |
31 | #KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb" | 31 | #KERNEL_DEVICETREE_ti43x = "am43x-epos-evm.dtb am43x-epos-evm-hdmi.dtb am437x-gp-evm.dtb am437x-gp-evm-hdmi.dtb am437x-sk-evm.dtb" |
32 | #KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb" | 32 | #KERNEL_DEVICETREE_beaglebone = "am335x-bone.dtb am335x-boneblack.dtb" |
33 | #KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb" | 33 | #KERNEL_DEVICETREE_omap5-evm = "omap5-uevm.dtb" |
34 | KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb" | 34 | KERNEL_DEVICETREE_dra7xx-evm = "dra7-evm.dtb dra7-evm-lcd-lg.dtb dra7-evm-lcd-osd.dtb dra72-evm.dtb dra72-evm-lcd-lg.dtb dra72-evm-lcd-osd.dtb" |
35 | KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-evm.dtb" | 35 | KERNEL_DEVICETREE_am57xx-evm = "am57xx-beagle-x15.dtb am57xx-evm.dtb" |
36 | KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb" | 36 | KERNEL_DEVICETREE_omap3 = "omap3-beagle.dtb omap3-beagle-xm.dtb omap3-evm.dtb omap3-evm-37xx.dtb am3517-evm.dtb" |
37 | KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" | 37 | KERNEL_DEVICETREE_am3517-evm = "am3517-evm.dtb" |
38 | KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb" | 38 | KERNEL_DEVICETREE_am37x-evm = "omap3-evm-37xx.dtb" |
39 | KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb" | 39 | KERNEL_DEVICETREE_beagleboard = "omap3-beagle.dtb omap3-beagle-xm.dtb" |
40 | KERNEL_DEVICETREE_pandaboard = "omap4-panda.dtb omap4-panda-es.dtb" | 40 | KERNEL_DEVICETREE_pandaboard = "omap4-panda.dtb omap4-panda-es.dtb" |
41 | KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb" | 41 | KERNEL_DEVICETREE_k2hk-evm = "k2hk-evm.dtb" |
42 | KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb" | 42 | KERNEL_DEVICETREE_k2e-evm = "k2e-evm.dtb" |
43 | KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb" | 43 | KERNEL_DEVICETREE_k2l-evm = "k2l-evm.dtb" |
44 | 44 | ||
45 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" | 45 | KERNEL_EXTRA_ARGS += "LOADADDR=${UBOOT_ENTRYPOINT}" |
46 | 46 | ||
47 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3|omap4|keystone|smarct335x" | 47 | COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|omap3|omap4|keystone|smarct335x" |
48 | 48 | ||
49 | S = "${WORKDIR}/git" | 49 | S = "${WORKDIR}/git" |
50 | 50 | ||
51 | # For 4.1.10 Kernel | 51 | # For 4.1.10 Kernel |
52 | BRANCH = "smarct3x-processor-sdk-linux-02.00.01" | 52 | BRANCH = "smarct3x-processor-sdk-linux-02.00.01" |
53 | 53 | ||
54 | # Corresponds to tag smarct3x-processor-sdk-linux-02.00.01 | 54 | # Corresponds to tag smarct3x-processor-sdk-linux-02.00.01 |
55 | SRCREV = "d56e51d2112aeb52430255515dcf494daf7ccdbc" | 55 | SRCREV = "8aa9e85adac609588eeec356e5a85059b3b819ba" |
56 | PV = "4.1.13" | 56 | PV = "4.1.13" |
57 | 57 | ||
58 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild | 58 | # Append to the MACHINE_KERNEL_PR so that a new SRCREV will cause a rebuild |
59 | MACHINE_KERNEL_PR_append = "e+gitr${SRCPV}" | 59 | MACHINE_KERNEL_PR_append = "e+gitr${SRCPV}" |
60 | PR = "${MACHINE_KERNEL_PR}" | 60 | PR = "${MACHINE_KERNEL_PR}" |
61 | 61 | ||
62 | KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" | 62 | KERNEL_CONFIG_DIR = "${S}/ti_config_fragments" |
63 | 63 | ||
64 | KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg" | 64 | KERNEL_CONFIG_FRAGMENTS_append_ti33x = " ${KERNEL_CONFIG_DIR}/am33xx_only.cfg" |
65 | KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg" | 65 | KERNEL_CONFIG_FRAGMENTS_append_ti43x = " ${KERNEL_CONFIG_DIR}/am43xx_only.cfg" |
66 | KERNEL_CONFIG_FRAGMENTS_append_dra7xx = " ${KERNEL_CONFIG_DIR}/dra7_only.cfg" | 66 | KERNEL_CONFIG_FRAGMENTS_append_dra7xx = " ${KERNEL_CONFIG_DIR}/dra7_only.cfg" |
67 | 67 | ||
68 | MULTI_CONFIG_BASE_SUFFIX = "" | 68 | MULTI_CONFIG_BASE_SUFFIX = "" |
69 | 69 | ||
70 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \ | 70 | SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \ |
71 | file://defconfig \ | 71 | file://defconfig \ |
72 | " | 72 | " |
73 | 73 | ||
74 | # Add append for SDK-02.00.00.00 specific changes not in mainline | 74 | # Add append for SDK-02.00.00.00 specific changes not in mainline |
75 | MACHINE_KERNEL_PR_append = "-smarc2" | 75 | MACHINE_KERNEL_PR_append = "-smarc2" |
76 | 76 | ||
77 | EXTRAPATHS_prepend := "${THISDIR}/${P}-4.1:" | 77 | EXTRAPATHS_prepend := "${THISDIR}/${P}-4.1:" |
78 | 78 | ||
79 | require copy-defconfig.inc | 79 | require copy-defconfig.inc |
80 | 80 | ||
81 | KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}" | 81 | KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}" |
82 | 82 | ||
83 | kernel_do_configure_prepend() { | 83 | kernel_do_configure_prepend() { |
84 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] | 84 | if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ] |
85 | then | 85 | then |
86 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion | 86 | echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion |
87 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion | 87 | echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion |
88 | fi | 88 | fi |
89 | } | 89 | } |
90 | 90 |