Commit 4f16d310b8c77b7c7db074a03352a9159c0d69e9

Authored by Eric Lee
1 parent aef74ae3e9
Exists in master

Modify some recipts for newer yocto update and kernel defconfig file to better s…

…upport power management

Showing 18 changed files with 85 additions and 95 deletions Side-by-side Diff

recipes-core/base-files/base-files_%.bbappend
1 1 # look for files in this layer first
2 2 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
3 3  
4   -PR_append = "-smarc4"
  4 +PR_append = ".smarc4"
recipes-core/busybox/busybox_%.bbappend
  1 +# look for files in this layer first
  2 +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  3 +
  4 +PR_append = ".smarc1"
  5 +
  6 +SRC_URI += " \
  7 + file://defconfig \
  8 +"
recipes-core/busybox/busybox_1.23.1.bbappend
1   -# look for files in this layer first
2   -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
3   -
4   -PR_append = "-smarc1"
5   -
6   -SRC_URI += " \
7   - file://defconfig \
8   -"
recipes-core/init-ifupdown/init-ifupdown_%.bbappend
1 1 # look for files in this layer first
2 2 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
3 3  
4   -PR_append = "-smarc0"
  4 +PR_append = ".smarc0"
recipes-core/initscripts/initscripts_1.0.bbappend
1 1 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
2   -PR_append = "-smarc"
  2 +PR_append = ".smarc"
3 3  
4 4 do_install_append(){
5 5 ln -sf ../init.d/networking ${D}${sysconfdir}/rc5.d/S20networking
recipes-core/udev/eudev/dra7xx/udev-cache.default
  1 +# Default for /etc/init.d/udev
  2 +
  3 +# Comment this out to disable device cache
  4 +#DEVCACHE="/etc/dev.tar"
  5 +PROBE_PLATFORM_BUS="yes"
recipes-core/udev/eudev/keystone/udev-cache.default
  1 +# Default for /etc/init.d/udev
  2 +
  3 +# Comment this out to disable device cache
  4 +#DEVCACHE="/etc/dev.tar"
  5 +PROBE_PLATFORM_BUS="yes"
recipes-core/udev/eudev/local.rules
  1 +# There are a number of modifiers that are allowed to be used in some
  2 +# of the different fields. They provide the following subsitutions:
  3 +#
  4 +# %n the "kernel number" of the device.
  5 +# For example, 'sda3' has a "kernel number" of '3'
  6 +# %e the smallest number for that name which does not matches an existing node
  7 +# %k the kernel name for the device
  8 +# %M the kernel major number for the device
  9 +# %m the kernel minor number for the device
  10 +# %b the bus id for the device
  11 +# %c the string returned by the PROGRAM
  12 +# %s{filename} the content of a sysfs attribute
  13 +# %% the '%' char itself
  14 +#
  15 +
  16 +# Try and modprobe for drivers for new hardware
  17 +ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
  18 +
  19 +# Create a symlink to any touchscreen input device
  20 +SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
  21 +
  22 +# Auto-mount any SD cards
  23 +ACTION=="add", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
  24 +ACTION=="remove", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
  25 +ACTION=="add", DEVPATH=="/devices/44000000\.ocp/48880000\.omap_dwc3_1/48890000\.usb/udc*", RUN+="/usr/bin/usb1-rules.sh"
  26 +ACTION=="add", DEVPATH=="/devices/44000000\.ocp/488c0000\.omap_dwc3_2/488d0000\.usb/udc*", RUN+="/usr/bin/usb2-rules.sh"
recipes-core/udev/eudev/usb1-rules.sh
  1 +#!bin/sh
  2 +/sbin/modprobe g_ncm -r
  3 +/sbin/modprobe g_ncm
recipes-core/udev/eudev/usb2-rules.sh
  1 +#!bin/sh
  2 +/sbin/modprobe g_zero -r
  3 +/sbin/modprobe g_zero
recipes-core/udev/eudev_%.bbappend
  1 +# This fixes an issue with touchscreens not being detected with the default
  2 +# local.rules. This can be removed when this change is picked up and
  3 +# meta-arago switches to Dora
  4 +
  5 +# look for files in this layer first
  6 +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
  7 +
  8 +PR_append = ".smarc5"
  9 +
  10 +PACKAGE_ARCH = "${MACHINE_ARCH}"
  11 +
  12 +SRC_URI_append = " \
  13 + file://usb1-rules.sh \
  14 + file://usb2-rules.sh"
  15 +
  16 +do_install_append() {
  17 + install -d ${D}/${bindir}
  18 +
  19 + install -m 0755 ${WORKDIR}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
  20 + install -m 0755 ${WORKDIR}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
  21 + ln -sf libudev.so.1 ${D}${base_libdir}/libudev.so.0
  22 +}
recipes-core/udev/udev/dra7xx/udev-cache.default
1   -# Default for /etc/init.d/udev
2   -
3   -# Comment this out to disable device cache
4   -#DEVCACHE="/etc/dev.tar"
5   -PROBE_PLATFORM_BUS="yes"
recipes-core/udev/udev/local.rules
1   -# There are a number of modifiers that are allowed to be used in some
2   -# of the different fields. They provide the following subsitutions:
3   -#
4   -# %n the "kernel number" of the device.
5   -# For example, 'sda3' has a "kernel number" of '3'
6   -# %e the smallest number for that name which does not matches an existing node
7   -# %k the kernel name for the device
8   -# %M the kernel major number for the device
9   -# %m the kernel minor number for the device
10   -# %b the bus id for the device
11   -# %c the string returned by the PROGRAM
12   -# %s{filename} the content of a sysfs attribute
13   -# %% the '%' char itself
14   -#
15   -
16   -# Try and modprobe for drivers for new hardware
17   -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}"
18   -
19   -# Create a symlink to any touchscreen input device
20   -SUBSYSTEM=="input", KERNEL=="event[0-9]*", ENV{ID_INPUT_TOUCHSCREEN}=="1", SYMLINK+="input/touchscreen0"
21   -
22   -# Auto-mount any SD cards
23   -ACTION=="add", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
24   -ACTION=="remove", KERNEL=="mmcblk[0-9]p[0-9]", SUBSYSTEM=="block", RUN+="/etc/udev/scripts/mount.sh"
25   -ACTION=="add", DEVPATH=="/devices/44000000\.ocp/48880000\.omap_dwc3_1/48890000\.usb/udc*", RUN+="/usr/bin/usb1-rules.sh"
26   -ACTION=="add", DEVPATH=="/devices/44000000\.ocp/488c0000\.omap_dwc3_2/488d0000\.usb/udc*", RUN+="/usr/bin/usb2-rules.sh"
recipes-core/udev/udev/usb1-rules.sh
1   -#!bin/sh
2   -/sbin/modprobe g_ncm -r
3   -/sbin/modprobe g_ncm
recipes-core/udev/udev/usb2-rules.sh
1   -#!bin/sh
2   -/sbin/modprobe g_zero -r
3   -/sbin/modprobe g_zero
recipes-core/udev/udev_%.bbappend
1   -# This fixes an issue with touchscreens not being detected with the default
2   -# local.rules. This can be removed when this change is picked up and
3   -# meta-arago switches to Dora
4   -
5   -# look for files in this layer first
6   -FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
7   -
8   -PR_append = "-smarc4"
9   -
10   -PACKAGE_ARCH = "${MACHINE_ARCH}"
11   -
12   -SRC_URI_append = " \
13   - file://usb1-rules.sh \
14   - file://usb2-rules.sh"
15   -
16   -do_install_append() {
17   - install -d ${D}/${bindir}
18   -
19   - install -m 0755 ${WORKDIR}/usb1-rules.sh ${D}${bindir}/usb1-rules.sh
20   - install -m 0755 ${WORKDIR}/usb2-rules.sh ${D}${bindir}/usb2-rules.sh
21   -}
recipes-kernel/linux/linux-smarct437x-staging-4.4/defconfig
... ... @@ -604,12 +604,11 @@
604 604 CONFIG_CPU_IDLE=y
605 605 CONFIG_CPU_IDLE_GOV_LADDER=y
606 606 CONFIG_CPU_IDLE_GOV_MENU=y
607   -CONFIG_DT_IDLE_STATES=y
608 607  
609 608 #
610 609 # ARM CPU Idle Drivers
611 610 #
612   -CONFIG_ARM_CPUIDLE=y
  611 +# CONFIG_ARM_CPUIDLE is not set
613 612 # CONFIG_ARCH_NEEDS_CPU_IDLE_COUPLED is not set
614 613  
615 614 #
... ... @@ -1169,7 +1168,6 @@
1169 1168 CONFIG_FW_LOADER=y
1170 1169 CONFIG_FIRMWARE_IN_KERNEL=y
1171 1170 CONFIG_EXTRA_FIRMWARE=""
1172   -CONFIG_EXTRA_FIRMWARE_DIR="firmware"
1173 1171 CONFIG_FW_LOADER_USER_HELPER=y
1174 1172 CONFIG_FW_LOADER_USER_HELPER_FALLBACK=y
1175 1173 CONFIG_WANT_DEV_COREDUMP=y
... ... @@ -3671,7 +3669,10 @@
3671 3669 # CONFIG_ASYNC_TX_DMA is not set
3672 3670 # CONFIG_DMATEST is not set
3673 3671 # CONFIG_AUXDISPLAY is not set
3674   -# CONFIG_UIO is not set
  3672 +CONFIG_UIO=y
  3673 +CONFIG_UIO_PDRV_GENIRQ=y
  3674 +CONFIG_UIO_DMEM_GENIRQ=y
  3675 +# CONFIG_UIO_PRUSS is not set
3675 3676 # CONFIG_VFIO is not set
3676 3677 # CONFIG_VIRT_DRIVERS is not set
3677 3678 CONFIG_VIRTIO=y
... ... @@ -3763,7 +3764,7 @@
3763 3764 # CONFIG_SOC_BRCMSTB is not set
3764 3765 # CONFIG_SUNXI_SRAM is not set
3765 3766 CONFIG_SOC_TI=y
3766   -CONFIG_AMX3_PM=m
  3767 +CONFIG_AMX3_PM=y
3767 3768 CONFIG_OPP_DOMAIN_TI=y
3768 3769 CONFIG_WKUP_M3_IPC=y
3769 3770 # CONFIG_PM_DEVFREQ is not set
3770 3771  
... ... @@ -3779,10 +3780,10 @@
3779 3780 # CONFIG_EXTCON_SM5502 is not set
3780 3781 CONFIG_EXTCON_USB_GPIO=m
3781 3782 CONFIG_MEMORY=y
3782   -# CONFIG_TI_EMIF is not set
  3783 +CONFIG_TI_EMIF=y
3783 3784 CONFIG_OMAP_GPMC=y
3784   -# CONFIG_OMAP_GPMC_DEBUG is not set
3785   -CONFIG_TI_EMIF_SRAM=m
  3785 +CONFIG_OMAP_GPMC_DEBUG=y
  3786 +CONFIG_TI_EMIF_SRAM=y
3786 3787 CONFIG_IIO=y
3787 3788 CONFIG_IIO_BUFFER=y
3788 3789 # CONFIG_IIO_BUFFER_CB is not set
... ... @@ -4646,7 +4647,7 @@
4646 4647 CONFIG_NLATTR=y
4647 4648 CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE=y
4648 4649 # CONFIG_CORDIC is not set
4649   -# CONFIG_DDR is not set
  4650 +CONFIG_DDR=y
4650 4651 CONFIG_LIBFDT=y
4651 4652 CONFIG_OID_REGISTRY=y
4652 4653 CONFIG_FONT_SUPPORT=y
recipes-kernel/linux/linux-smarct437x-staging_4.4.bb
... ... @@ -72,21 +72,4 @@
72 72 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${BRANCH} \
73 73 file://defconfig \
74 74 "
75   -
76   -# Add append for SDK-03.00.00.04 specific changes not in mainline
77   -MACHINE_KERNEL_PR_append = "-smarc2"
78   -
79   -EXTRAPATHS_prepend := "${THISDIR}/${P}:"
80   -
81   -require copy-defconfig.inc
82   -
83   -KERNEL_LOCALVERSION = "-g${@d.getVar('SRCPV', True).partition('+')[2][0:7]}"
84   -
85   -kernel_do_configure_prepend() {
86   - if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
87   - then
88   - echo ${KERNEL_LOCALVERSION} > ${B}/.scmversion
89   - echo ${KERNEL_LOCALVERSION} > ${S}/.scmversion
90   - fi
91   -}