Initial commit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1,175 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
@@ -0,0 +1,12 @@
|
||||
Different components of meta-aspeed are under different licenses (a mix
|
||||
of MIT and Apache-2.0). Please see:
|
||||
|
||||
COPYING.Apache-2.0
|
||||
COPYING.MIT (MIT)
|
||||
|
||||
All metadata is MIT licensed unless otherwise stated. Source code
|
||||
included in tree for individual recipes is under the LICENSE stated in
|
||||
the associated recipe (.bb file) unless otherwise stated.
|
||||
|
||||
License information for any other files is either explicitly stated
|
||||
or defaults to Apache-2.0.
|
||||
@@ -0,0 +1,7 @@
|
||||
owners:
|
||||
- joel@jms.id.au
|
||||
|
||||
matchers:
|
||||
- partial_regex: recipes-bsp/u-boot
|
||||
reviewers:
|
||||
- zweiss@equinix.com
|
||||
@@ -0,0 +1,36 @@
|
||||
OpenEmbedded/Yocto BSP layer for Aspeed's platforms
|
||||
======================================================================
|
||||
|
||||
This layer provides support for Aspeed's platforms for use with OpenEmbedded
|
||||
and/or Yocto.
|
||||
|
||||
```
|
||||
This layer depends on:
|
||||
|
||||
URI: git://git.openembedded.org/openembedded-core
|
||||
layers: meta
|
||||
branch: master
|
||||
revision: HEAD
|
||||
```
|
||||
|
||||
Contributing
|
||||
------------
|
||||
|
||||
meta-aspeed patches are reviewed using the Gerrit instance at
|
||||
https://gerrit.openbmc.org.
|
||||
|
||||
Please submit patches to Gerrit. More information on using Gerrit can be found
|
||||
[here](https://github.com/openbmc/docs/blob/master/CONTRIBUTING.md#submitting-changes-via-gerrit-server).
|
||||
https://github.com/openbmc/meta-aspeed is a hosting mirror only and GitHub
|
||||
pull requests are not monitored and will not be accepted.
|
||||
|
||||
Patch checklist. Please ensure patches adhere to the following guidelines:
|
||||
|
||||
- meta-aspeed uses the [OE style
|
||||
guidelines](https://www.openembedded.org/wiki/Styleguide).
|
||||
- follow [the seven rules of a great git commit
|
||||
message](https://chris.beams.io/posts/git-commit/#seven-rules)
|
||||
|
||||
For questions or help please come join us on the [mailing
|
||||
list](https://lists.ozlabs.org/listinfo/openbmc) or on
|
||||
[Discord](https://discord.gg/69Km47zH98).
|
||||
@@ -0,0 +1,78 @@
|
||||
# ASPEED AST2600 devices can use Aspeed's utility 'otptool'
|
||||
# to create OTP image
|
||||
# The variables below carry default values to the create_otp()
|
||||
# function below.
|
||||
OTPTOOL_CONFIGS ?= ""
|
||||
OTPTOOL_KEY_DIR ?= ""
|
||||
OTPTOOL_USER_DIR ?= ""
|
||||
OTPTOOL_EXTRA_OPTS ?= ""
|
||||
OTPTOOL_EXTRA_DEPENDS ?= " socsec-native"
|
||||
DEPENDS += '${@oe.utils.conditional("SOCSEC_SIGN_ENABLE", "1", "${OTPTOOL_EXTRA_DEPENDS}", "", d)}'
|
||||
|
||||
do_otptool() {
|
||||
local otptool_config=$1
|
||||
otptool_config_slug="$(basename ${otptool_config} .json)"
|
||||
otptool_config_outdir="${B}"/"${CONFIG_B_PATH}"/"${otptool_config_slug}"
|
||||
otptool_user_folder="$([ -n "${OTPTOOL_USER_DIR}" ] && echo --user_data_folder ${OTPTOOL_USER_DIR})"
|
||||
mkdir -p "${otptool_config_outdir}"
|
||||
otptool make_otp_image \
|
||||
--key_folder ${OTPTOOL_KEY_DIR} \
|
||||
--output_folder "${otptool_config_outdir}" \
|
||||
${otptool_user_folder} \
|
||||
${otptool_config} \
|
||||
${OTPTOOL_EXTRA_OPTS}
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
bbfatal "Generated OTP image failed."
|
||||
fi
|
||||
|
||||
otptool print "${otptool_config_outdir}"/otp-all.image
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
bbfatal "Printed OTP image failed."
|
||||
fi
|
||||
|
||||
install -m 0644 -T \
|
||||
"${otptool_config_outdir}"/otp-all.image \
|
||||
${DEPLOYDIR}/"${otptool_config_slug}"-otp-all.image
|
||||
}
|
||||
|
||||
# Creates the OTP image
|
||||
create_otp_helper() {
|
||||
if [ "${SOC_FAMILY}" != "aspeed-g6" ] ; then
|
||||
bbwarn "OTP creation is only supported on AST2600 boards"
|
||||
elif [ -z "${OTPTOOL_CONFIGS}" ] ; then
|
||||
bbfatal "OTPTOOL_CONFIGS is empty, no otptool configurations available"
|
||||
elif [ ! -d "${OTPTOOL_KEY_DIR}" ] ; then
|
||||
bbfatal "Invalid otptool signing key directory: ${OTPTOOL_KEY_DIR}"
|
||||
else
|
||||
for otptool_config in ${OTPTOOL_CONFIGS} ; do
|
||||
if [ ! -e ${otptool_config} ] ; then
|
||||
bbfatal "Invalid otptool config: ${otptool_config}"
|
||||
fi
|
||||
|
||||
do_otptool $otptool_config
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
create_otp() {
|
||||
mkdir -p ${DEPLOYDIR}
|
||||
if [ -n "${UBOOT_CONFIG}" ]; then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
CONFIG_B_PATH="${config}"
|
||||
cd ${B}/${config}
|
||||
create_otp_helper
|
||||
done
|
||||
else
|
||||
CONFIG_B_PATH=""
|
||||
cd ${B}
|
||||
create_otp_helper
|
||||
fi
|
||||
}
|
||||
|
||||
do_deploy:prepend() {
|
||||
if [ "${SOCSEC_SIGN_ENABLE}" = "1" ] ; then
|
||||
create_otp
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
# ASPEED AST2600 devices can use Aspeed's utility 'socsec'
|
||||
# to sign the SPL (pubkey written to OTP region)
|
||||
# The variables below carry default values to the spl_sign()
|
||||
# function below.
|
||||
SOCSEC_SIGN_ENABLE ?= "0"
|
||||
SOCSEC_SIGN_KEY ?= ""
|
||||
SOCSEC_SIGN_SOC ?= "2600"
|
||||
SOCSEC_SIGN_ALGO ?= "RSA4096_SHA512"
|
||||
SOCSEC_SIGN_HELPER ?= ""
|
||||
# u-boot-aspeed-sdk commit '2c3b53489c ast2600: Modify SPL SRAM layout'
|
||||
# changes the SRAM layout so that the verification region does NOT
|
||||
# intersects the stack. The parameter below can be used to instruct
|
||||
# socsec to work in either mode (ommitting it throws a warning), but
|
||||
# newer (post v00.03.03) u-boot-aspeed-sdk need this set to false
|
||||
# A1 rsa order is little endian and A3 is big endian
|
||||
# Set big endian for A3 support
|
||||
SOCSEC_SIGN_EXTRA_OPTS ?= "--stack_intersects_verification_region=false --rsa_key_order=big"
|
||||
DEPENDS += '${@oe.utils.conditional("SOCSEC_SIGN_ENABLE", "1", " socsec-native", "", d)}'
|
||||
|
||||
|
||||
# Signs the SPL binary with a pre-established key
|
||||
sign_spl_helper() {
|
||||
signing_helper_args=""
|
||||
|
||||
if [ "${SOC_FAMILY}" != "aspeed-g6" ] ; then
|
||||
bbwarn "SPL signing is only supported on AST2600 boards"
|
||||
elif [ ! -e "${SOCSEC_SIGN_KEY}" ] ; then
|
||||
bbfatal "Invalid socsec signing key: ${SOCSEC_SIGN_KEY}"
|
||||
else
|
||||
rm -f ${SPL_BINARY}.staged
|
||||
|
||||
if [ -n "${SOCSEC_SIGN_HELPER}" ] ; then
|
||||
signing_helper_args="--signing_helper ${SOCSEC_SIGN_HELPER}"
|
||||
fi
|
||||
socsec make_secure_bl1_image \
|
||||
--soc ${SOCSEC_SIGN_SOC} \
|
||||
--algorithm ${SOCSEC_SIGN_ALGO} \
|
||||
--rsa_sign_key ${SOCSEC_SIGN_KEY} \
|
||||
--bl1_image ${DEPLOYDIR}/${SPL_IMAGE} \
|
||||
$signing_helper_args \
|
||||
${SOCSEC_SIGN_EXTRA_OPTS} \
|
||||
--output ${SPL_BINARY}.staged
|
||||
cp -f ${SPL_BINARY}.staged ${B}/$CONFIG_B_PATH/${SPL_BINARY}
|
||||
mv -f ${SPL_BINARY}.staged ${DEPLOYDIR}/${SPL_IMAGE}
|
||||
fi
|
||||
}
|
||||
|
||||
sign_spl() {
|
||||
mkdir -p ${DEPLOYDIR}
|
||||
if [ -n "${UBOOT_CONFIG}" ]; then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
CONFIG_B_PATH="$config"
|
||||
cd ${B}/$config
|
||||
sign_spl_helper
|
||||
done
|
||||
else
|
||||
CONFIG_B_PATH=""
|
||||
cd ${B}
|
||||
sign_spl_helper
|
||||
fi
|
||||
}
|
||||
|
||||
verify_spl_otp() {
|
||||
for otptool_config in ${OTPTOOL_CONFIGS} ; do
|
||||
socsec verify \
|
||||
--sec_image ${DEPLOYDIR}/${SPL_IMAGE} \
|
||||
--otp_image ${DEPLOYDIR}/"$(basename ${otptool_config} .json)"-otp-all.image
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
bbfatal "Verified OTP image failed."
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
do_deploy:append() {
|
||||
if [ "${SOCSEC_SIGN_ENABLE}" = "1" -a -n "${SPL_BINARY}" ] ; then
|
||||
sign_spl
|
||||
verify_spl_otp
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH .= ":${LAYERDIR}"
|
||||
|
||||
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "aspeed-layer"
|
||||
BBFILE_PATTERN_aspeed-layer := "^${LAYERDIR}/"
|
||||
LAYERVERSION_aspeed-layer = "1"
|
||||
LAYERSERIES_COMPAT_aspeed-layer = "langdale mickledore"
|
||||
@@ -0,0 +1 @@
|
||||
OVERRIDES .= ":uboot-flash-${FLASH_SIZE}"
|
||||
@@ -0,0 +1,11 @@
|
||||
KERNEL_DEVICETREE = "aspeed-ast2500-evb.dtb"
|
||||
|
||||
UBOOT_MACHINE = "evb-ast2500_defconfig"
|
||||
UBOOT_DEVICETREE = "ast2500-evb"
|
||||
|
||||
require conf/machine/include/ast2500.inc
|
||||
require conf/machine/include/obmc-evb-common.inc
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS4"
|
||||
|
||||
FLASH_SIZE = "32768"
|
||||
@@ -0,0 +1,22 @@
|
||||
KERNEL_DEVICETREE = "aspeed-ast2600-evb.dtb"
|
||||
|
||||
UBOOT_MACHINE = "ast2600_openbmc_spl_defconfig"
|
||||
UBOOT_DEVICETREE = "ast2600-evb"
|
||||
SPL_BINARY = "spl/u-boot-spl.bin"
|
||||
# Disable hardware root of trust by default.
|
||||
# If users want to enable secure boot,
|
||||
# please do the following steps.
|
||||
# 1. Set SOCSEC_SIGN_ENABLE to “1”.
|
||||
# 2. Provide platform OTP config.
|
||||
# There was an example in p10bmc.
|
||||
# If users enable socsec signing but do not provide OTP config,
|
||||
# u-boot will be built failed.
|
||||
SOCSEC_SIGN_ENABLE = "0"
|
||||
|
||||
require conf/machine/include/ast2600.inc
|
||||
require conf/machine/include/obmc-evb-common.inc
|
||||
|
||||
SERIAL_CONSOLES = "115200;ttyS4"
|
||||
|
||||
# AST2600 EVB has 64MB SPI flash
|
||||
FLASH_SIZE = "65536"
|
||||
@@ -0,0 +1,57 @@
|
||||
PREFERRED_PROVIDER_virtual/kernel ?= "linux-aspeed"
|
||||
|
||||
PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot-aspeed-sdk"
|
||||
PREFERRED_PROVIDER_u-boot ?= "u-boot-aspeed-sdk"
|
||||
PREFERRED_PROVIDER_u-boot-fw-utils ?= "u-boot-fw-utils-aspeed-sdk"
|
||||
|
||||
# Build a FIT image and stuff core-image-minimal in it by default.
|
||||
KERNEL_IMAGETYPE ?= "fitImage"
|
||||
KERNEL_CLASSES ?= "kernel-fitimage"
|
||||
INITRAMFS_IMAGE ?= "aspeed-image-initramfs"
|
||||
INITRAMFS_FSTYPES ?= "cpio.xz"
|
||||
|
||||
WKS_FILE ?= "emmc-aspeed.wks.in"
|
||||
WKS_FILE_DEPENDS ?= " \
|
||||
phosphor-hostfw-image \
|
||||
virtual/bootloader \
|
||||
virtual/kernel \
|
||||
"
|
||||
WKS_HOSTFW_SIZE ?= "5G"
|
||||
IMAGE_BOOT_FILES ?= "fitImage-${INITRAMFS_IMAGE}-${MACHINE}-${MACHINE};fitImage"
|
||||
|
||||
MACHINE_EXTRA_RRECOMMENDS += "udev-aspeed-vuart udev-aspeed-mtd-partitions"
|
||||
MACHINE_FEATURES += "hw-rng"
|
||||
|
||||
MACHINEOVERRIDES =. "aspeed:"
|
||||
|
||||
SERIAL_CONSOLES ?= "115200;ttyS4"
|
||||
|
||||
DEFAULTTUNE:aspeed-g5 ?= "arm1176jzs"
|
||||
DEFAULTTUNE:aspeed-g6 ?= "armv7ahf-vfpv4d16"
|
||||
|
||||
UBOOT_ENTRYPOINT:aspeed-g4 ?= "0x40001000"
|
||||
UBOOT_ENTRYPOINT:aspeed-g5 ?= "0x80001000"
|
||||
UBOOT_ENTRYPOINT:aspeed-g6 ?= "0x80001000"
|
||||
UBOOT_LOADADDRESS:aspeed-g4 ?= "0x40001000"
|
||||
UBOOT_LOADADDRESS:aspeed-g5 ?= "0x80001000"
|
||||
UBOOT_LOADADDRESS:aspeed-g6 ?= "0x80001000"
|
||||
|
||||
# runqemu support
|
||||
EXTRA_IMAGEDEPENDS += "qemu-helper-native"
|
||||
IMAGE_CLASSES += "qemuboot"
|
||||
QB_SYSTEM_NAME = "qemu-system-arm"
|
||||
QB_ROOTFS_OPT = "-drive file=@ROOTFS@,if=mtd,format=raw"
|
||||
QB_DEFAULT_FSTYPE = "static.mtd"
|
||||
# Disable virtio-pci device
|
||||
QB_RNG = ""
|
||||
QB_NETWORK_DEVICE = "-net nic"
|
||||
# Boot from drive
|
||||
QB_DEFAULT_KERNEL = "none"
|
||||
# runqemu overrides default memory size
|
||||
QB_MEM = "-m 512"
|
||||
|
||||
QB_MACHINE:aspeed-g4 = "-machine palmetto-bmc"
|
||||
QB_MACHINE:aspeed-g5 = "-machine ast2500-evb"
|
||||
QB_MACHINE:aspeed-g6 = "-machine ast2600-evb"
|
||||
QB_MEM:aspeed-g5 = "-m 1G"
|
||||
QB_MEM:aspeed-g6 = "-m 1G"
|
||||
@@ -0,0 +1,4 @@
|
||||
SOC_FAMILY = "aspeed-g4"
|
||||
include conf/machine/include/soc-family.inc
|
||||
require conf/machine/include/aspeed.inc
|
||||
require conf/machine/include/arm/armv5/tune-arm926ejs.inc
|
||||
@@ -0,0 +1,4 @@
|
||||
SOC_FAMILY = "aspeed-g5"
|
||||
include conf/machine/include/soc-family.inc
|
||||
require conf/machine/include/aspeed.inc
|
||||
require conf/machine/include/arm/armv6/tune-arm1176jz-s.inc
|
||||
@@ -0,0 +1,9 @@
|
||||
SOC_FAMILY = "aspeed-g6"
|
||||
|
||||
# Enable SPL signing by default
|
||||
SOCSEC_SIGN_ENABLE ?= "1"
|
||||
SOCSEC_SIGN_SOC ?= "2600"
|
||||
|
||||
include conf/machine/include/soc-family.inc
|
||||
require conf/machine/include/aspeed.inc
|
||||
include conf/machine/include/arm/arch-armv7a.inc
|
||||
@@ -0,0 +1,7 @@
|
||||
BBPATH = "${TOPDIR}"
|
||||
BBFILES ?= ""
|
||||
|
||||
BBLAYERS ?= " \
|
||||
##OEROOT##/meta \
|
||||
##OEROOT##/meta-aspeed \
|
||||
"
|
||||
@@ -0,0 +1,5 @@
|
||||
#MACHINE ?= "evb-ast2500"
|
||||
MACHINE ??= "evb-ast2600"
|
||||
|
||||
# Allow logging in if the user does not set the root password.
|
||||
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
|
||||
@@ -0,0 +1,3 @@
|
||||
IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}"
|
||||
|
||||
require recipes-core/images/core-image-minimal.bb
|
||||
@@ -0,0 +1,40 @@
|
||||
SUMMARY = "Two partition MTD image with u-boot and kernel"
|
||||
HOMEPAGE = "https://github.com/openbmc/meta-aspeed"
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit deploy
|
||||
|
||||
UBOOT_SUFFIX ?= "bin"
|
||||
ASPEED_IMAGE_KERNEL_OFFSET_KB ?= "512"
|
||||
ASPEED_IMAGE_SIZE_KB ?= "32768"
|
||||
ASPEED_IMAGE_KERNEL_IMAGE ?= "fitImage-${INITRAMFS_IMAGE}-${MACHINE}-${MACHINE}"
|
||||
ASPEED_IMAGE_NAME ?= "aspeed-norootfs-${MACHINE}.bin"
|
||||
|
||||
do_compile() {
|
||||
dd if=/dev/zero bs=1k count=${ASPEED_IMAGE_SIZE_KB} | \
|
||||
tr '\000' '\377' > ${B}/aspeed-norootfs.bin
|
||||
dd if=${DEPLOY_DIR_IMAGE}/u-boot.${UBOOT_SUFFIX} of=${B}/aspeed-norootfs.bin \
|
||||
conv=notrunc
|
||||
dd if=${DEPLOY_DIR_IMAGE}/${ASPEED_IMAGE_KERNEL_IMAGE} \
|
||||
of=${B}/aspeed-norootfs.bin conv=notrunc \
|
||||
seek=${ASPEED_IMAGE_KERNEL_OFFSET_KB} bs=1k
|
||||
}
|
||||
|
||||
do_deploy() {
|
||||
install -m644 -D ${B}/aspeed-norootfs.bin ${DEPLOYDIR}/${ASPEED_IMAGE_NAME}
|
||||
}
|
||||
|
||||
do_compile[depends] = "virtual/kernel:do_deploy u-boot:do_deploy"
|
||||
do_fetch[noexec] = "1"
|
||||
do_unpack[noexec] = "1"
|
||||
do_patch[noexec] = "1"
|
||||
do_configure[noexec] = "1"
|
||||
do_install[noexec] = "1"
|
||||
deltask do_populate_sysroot
|
||||
do_package[noexec] = "1"
|
||||
deltask do_package_qa
|
||||
do_packagedata[noexec] = "1"
|
||||
deltask do_package_write_ipk
|
||||
deltask do_package_write_deb
|
||||
deltask do_package_write_rpm
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -0,0 +1,26 @@
|
||||
SUMMARY = "Secure-boot utilities for ASPEED BMC SoCs"
|
||||
HOMEPAGE = "https://github.com/AspeedTech-BMC/socsec/"
|
||||
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE;md5=d50b901333b4eedfee074ebcd6a6d611"
|
||||
|
||||
BRANCH ?= "master"
|
||||
SRC_URI = "git://github.com/AspeedTech-BMC/socsec.git;protocol=https;branch=${BRANCH}"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
inherit python3native setuptools3
|
||||
|
||||
DEPENDS += "${PYTHON_PN}-bitarray-native"
|
||||
DEPENDS += "${PYTHON_PN}-ecdsa-native"
|
||||
DEPENDS += "${PYTHON_PN}-pycryptodome-native"
|
||||
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-bitarray"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-core"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-jsonschema"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-jstyleson"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-pycryptodome"
|
||||
RDEPENDS:${PN} += "${PYTHON_PN}-ecdsa"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
include socsec.inc
|
||||
|
||||
SRCREV = "32fb3f1b2d0955233122d0ffd53cb7833d97eb87"
|
||||
@@ -0,0 +1,25 @@
|
||||
# Configuration file for fw_(printenv/setenv) utility.
|
||||
# Up to two entries are valid, in this case the redundant
|
||||
# environment sector is assumed present.
|
||||
# Notice, that the "Number of sectors" is ignored on NOR and SPI-dataflash.
|
||||
# Furthermore, if the Flash sector size is omitted, this value is assumed to
|
||||
# be the same as the Environment size, which is valid for NOR and SPI-dataflash
|
||||
|
||||
# NOR example
|
||||
# MTD device name Device offset Env. size Flash sector size Number of sectors
|
||||
#/dev/mtd1 0x0000 0x20000 0x20000
|
||||
#/dev/mtd2 0x0000 0x4000 0x4000
|
||||
|
||||
# MTD SPI-dataflash example
|
||||
# MTD device name Device offset Env. size Flash sector size Number of sectors
|
||||
#/dev/mtd2 0x00000 0x20000
|
||||
/dev/mtd/alt-u-boot-env 0x00000 0x10000
|
||||
/dev/mtd/alt-u-boot-env 0x10000 0x10000
|
||||
#/dev/mtd5 0x4200 0x4200
|
||||
#/dev/mtd6 0x4200 0x4200
|
||||
|
||||
# NAND example
|
||||
#/dev/mtd0 0x4000 0x4000 0x20000 2
|
||||
|
||||
# Block device example
|
||||
#/dev/mmcblk0 0xc0000 0x20000
|
||||
@@ -0,0 +1,39 @@
|
||||
OE needs to be able to change the default compiler. If we pass in HOSTCC
|
||||
through the make command, it overwrites not only this setting but also the
|
||||
setting in tools/Makefile wrapped in ifneq ($(CROSS_BUILD_TOOLS),) which
|
||||
breaks the build.
|
||||
|
||||
We therefore use override to ensure the value of HOSTCC is overwritten when
|
||||
needed.
|
||||
|
||||
RP: Updated the patch to the version being submitted to upstream u-boot
|
||||
|
||||
Upstream-Status: Submitted [emailed to Masahiro Yamada for discussion]
|
||||
RP 2017/3/11
|
||||
|
||||
Index: git/tools/Makefile
|
||||
===================================================================
|
||||
--- git.orig/tools/Makefile
|
||||
+++ git/tools/Makefile
|
||||
@@ -262,7 +262,7 @@ $(LICENSE_H): $(obj)/bin2header $(srctre
|
||||
subdir- += env
|
||||
|
||||
ifneq ($(CROSS_BUILD_TOOLS),)
|
||||
-HOSTCC = $(CC)
|
||||
+override HOSTCC = $(CC)
|
||||
|
||||
quiet_cmd_crosstools_strip = STRIP $^
|
||||
cmd_crosstools_strip = $(STRIP) $^; touch $@
|
||||
Index: git/tools/env/Makefile
|
||||
===================================================================
|
||||
--- git.orig/tools/env/Makefile
|
||||
+++ git/tools/env/Makefile
|
||||
@@ -8,7 +8,7 @@
|
||||
# fw_printenv is supposed to run on the target system, which means it should be
|
||||
# built with cross tools. Although it may look weird, we only replace "HOSTCC"
|
||||
# with "CC" here for the maximum code reuse of scripts/Makefile.host.
|
||||
-HOSTCC = $(CC)
|
||||
+override HOSTCC = $(CC)
|
||||
|
||||
# Compile for a hosted environment on the target
|
||||
HOST_EXTRACFLAGS = $(patsubst -I%,-idirafter%, $(filter -I%, $(UBOOTINCLUDE))) \
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "evb",
|
||||
"version": "A3",
|
||||
"data_region": {
|
||||
"patch": true,
|
||||
"ecc_region": true,
|
||||
"user_data": [
|
||||
{
|
||||
// dw_hex
|
||||
// bin
|
||||
"types": "dw_hex",
|
||||
"file": "emmc_patch.hex",
|
||||
"offset": "0x1B80"
|
||||
}
|
||||
]
|
||||
},
|
||||
"config_region": {
|
||||
// OTPCFG0[14]
|
||||
// false: Enable patch code
|
||||
// true : Disable patch code
|
||||
"Disable patch code": false,
|
||||
// OTPCFG14[10-0]
|
||||
"Patch code location": "0x6E0",
|
||||
// OTPCFG14[16-11] 24 DW
|
||||
"Patch code size": "0x18"
|
||||
},
|
||||
"otp_strap": {
|
||||
// OTPSTRAP[1]
|
||||
"Enable boot from eMMC": {
|
||||
// false: Disable boot from eMMC
|
||||
// true : Enable boot from eMMC
|
||||
"value": true,
|
||||
"otp_protect": false,
|
||||
"ignore": false
|
||||
},
|
||||
// OTPSTRAP[43]
|
||||
"Enable boot SPI or eMMC ABR": {
|
||||
// false: Disable boot SPI or eMMC ABR
|
||||
// true : Enable boot SPI or eMMC ABR
|
||||
"value": true,
|
||||
"otp_protect": false,
|
||||
"ignore": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
# Configuration file for fw_(printenv/setenv) utility.
|
||||
# Up to two entries are valid, in this case the redundant
|
||||
# environment sector is assumed present.
|
||||
# Notice, that the "Number of sectors" is ignored on NOR and SPI-dataflash.
|
||||
# Furthermore, if the Flash sector size is omitted, this value is assumed to
|
||||
# be the same as the Environment size, which is valid for NOR and SPI-dataflash
|
||||
|
||||
# NOR example
|
||||
# MTD device name Device offset Env. size Flash sector size Number of sectors
|
||||
#/dev/mtd1 0x0000 0x20000 0x20000
|
||||
#/dev/mtd2 0x0000 0x4000 0x4000
|
||||
|
||||
# MTD SPI-dataflash example
|
||||
# MTD device name Device offset Env. size Flash sector size Number of sectors
|
||||
#/dev/mtd2 0x00000 0x20000
|
||||
/dev/mtd/u-boot-env 0x00000 0x10000
|
||||
/dev/mtd/u-boot-env 0x10000 0x10000
|
||||
#/dev/mtd5 0x4200 0x4200
|
||||
#/dev/mtd6 0x4200 0x4200
|
||||
|
||||
# NAND example
|
||||
#/dev/mtd0 0x4000 0x4000 0x20000 2
|
||||
|
||||
# Block device example
|
||||
#/dev/mmcblk0 0xc0000 0x20000
|
||||
@@ -0,0 +1,3 @@
|
||||
# Device name Device offset Env. size
|
||||
/dev/mmcblk0p1 0x00000 0x10000
|
||||
/dev/mmcblk0p1 0x10000 0x10000
|
||||
@@ -0,0 +1,2 @@
|
||||
# MTD device name Device offset Env. size Flash sector size Number of sectors
|
||||
/dev/mtd/u-boot-env 0x0000 0x20000 0x1000
|
||||
@@ -0,0 +1,59 @@
|
||||
# U-Boot SPL 'Insecure' key (also known as 'development' or
|
||||
# 'imprint' key), used to sign development images of the ASPEED
|
||||
# AST2600 boards' U-boot SPL. This key SHOULD NOT be used to
|
||||
# sign production images.
|
||||
# This key is 4096 bits in size and any key overriding it must
|
||||
# also change the SOCSEC_SIGN_ALGO variable.
|
||||
# See meta-aspeed/classes/socsec-sign.bbclass for more info.
|
||||
|
||||
-----BEGIN RSA PRIVATE KEY-----
|
||||
MIIJKQIBAAKCAgEA6hC1IHlB4SqRbesC8BtC00icAYUuYmAiO6CHCyph2Pv2CQT5
|
||||
Yct8WSKA/6kNAUpsJwlM18ZX0yMcGVZeS9058hgZdMgoDC57Jw5Tw5foN6CBBF72
|
||||
oJM5Z+wAjD41jiX1T2tsCvlWLeNOS1RcqViLDOdk++olpVgsSlAvW23DmblVxVhz
|
||||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E KEY-----
|
||||
@@ -0,0 +1,18 @@
|
||||
# Public portion of the U-Boot SPL 'Insecure' key kept here
|
||||
# as a convenience.
|
||||
# Please refer to 'rsa_oem_dss_key.pem' for more info
|
||||
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA6hC1IHlB4SqRbesC8BtC
|
||||
00icAYUuYmAiO6CHCyph2Pv2CQT5Yct8WSKA/6kNAUpsJwlM18ZX0yMcGVZeS905
|
||||
8hgZdMgoDC57Jw5Tw5foN6CBBF72oJM5Z+wAjD41jiX1T2tsCvlWLeNOS1RcqViL
|
||||
DOdk++olpVgsSlAvW23DmblVxVhz67L55vK6lc4r/VcVtHJ2bdehjk6j/BcehdQc
|
||||
hhz76fpL9EBZJ1tm9k+m7aRhhRqfBJUP5/Jl1+paRY1dBDVzjmE+DneVYvBuMfvh
|
||||
3gQlQVwomsdImH/VuWQc9xAozacBs6RtWHxIS+uf9qUDR622mKueKojH3PPMO+4s
|
||||
u5EGRNKAAH9dS356pqhzpmZvgFvUJ7zZFxQBfjpMrF+fGHUD0QkUofAxlpeyldv/
|
||||
+ubxzwUm0PrYGIhowuPItT7/ASqzxCKa/dfYVCTlPSJOP+Wi00pJBZOFuDk4HHao
|
||||
98BCUeGE4t065Di81GZ2F9amf5B//jIjkM3o9vrThe3GWbWtP3kmw7OQyMeUzUKx
|
||||
IUTq3cvblNpo80gfYzYwWQakjhE6aV7xLQIxv28c8I2JrsvjXQIAg77W/XdT/+rS
|
||||
53k3DgrcjK7l7nWjmOxXr6p9f9fFHXF/fmEYeeuK6NaFH24LW97jk+IRjv8ig29Z
|
||||
yrzEctuzky80lHcVFYnE/3cCAwEAAQ==
|
||||
-----END PUBLIC KEY-----
|
||||
@@ -0,0 +1,11 @@
|
||||
bootargs=console=ttyS4,115200n8
|
||||
boota=setenv bootpart 2; setenv rootfs rofs-a; run bootmmc
|
||||
bootb=setenv bootpart 3; setenv rootfs rofs-b; run bootmmc
|
||||
bootcmd=setenv origbootargs ${bootargs}; run bootconfcmd; run bootsidecmd
|
||||
bootconfcmd=if test ${fitconfig} -n; then setenv bootmconf "#${fitconfig}"; fi
|
||||
bootdelay=2
|
||||
bootmmc=run setmmcargs; ext4load mmc 0:${bootpart} ${loadaddr} fitImage && bootm ${loadaddr}${bootmconf}; echo Error loading kernel FIT image with fitconfig ${fitconfig}; bootm ${loadaddr}; echo Error loading kernel FIT image
|
||||
bootside=a
|
||||
bootsidecmd=if test ${bootside} = b; then run bootb; run boota; else run boota; run bootb; fi
|
||||
loadaddr=0x83000000
|
||||
setmmcargs=setenv bootargs ${origbootargs} rootwait root=PARTLABEL=${rootfs}
|
||||
@@ -0,0 +1,3 @@
|
||||
CONFIG_BOOTCOMMAND="bootm 20080000"
|
||||
CONFIG_ENV_SIZE=0x20000
|
||||
CONFIG_ENV_OFFSET=0x60000
|
||||
@@ -0,0 +1,2 @@
|
||||
CONFIG_ENV_SIZE=0x20000
|
||||
CONFIG_ENV_OFFSET=0xE0000
|
||||
@@ -0,0 +1,24 @@
|
||||
2c000000
|
||||
558000ff
|
||||
a4001cf4
|
||||
7ab20001
|
||||
46b50001
|
||||
86a0d888
|
||||
d2b82510
|
||||
7ab5000b
|
||||
46b50001
|
||||
86a0d878
|
||||
d15920a0
|
||||
696a0010
|
||||
796b0018
|
||||
8560d868
|
||||
6a8a001b
|
||||
7a94001f
|
||||
9e80d85c
|
||||
2aa01688
|
||||
56b5a8a8
|
||||
deb82010
|
||||
dc182070
|
||||
55600001
|
||||
dd792074
|
||||
a000189c
|
||||
@@ -0,0 +1,37 @@
|
||||
require u-boot-common-aspeed-sdk_${PV}.inc
|
||||
|
||||
UBOOT_MAKE_TARGET ?= "DEVICE_TREE=${UBOOT_DEVICETREE}"
|
||||
|
||||
require recipes-bsp/u-boot/u-boot.inc
|
||||
|
||||
PROVIDES += "u-boot"
|
||||
DEPENDS += "bc-native dtc-native"
|
||||
|
||||
SRC_URI:append:df-phosphor-mmc = " file://u-boot-env-ast2600.txt"
|
||||
SRC_URI += " \
|
||||
file://rsa_oem_dss_key.pem;sha256sum=64a379979200d39949d3e5b0038e3fdd5548600b2f7077a17e35422336075ad4 \
|
||||
file://rsa_pub_oem_dss_key.pem;sha256sum=40132a694a10af2d1b094b1cb5adab4d6b4db2a35e02d848b2b6a85e60738264 \
|
||||
file://user/ \
|
||||
"
|
||||
|
||||
SOCSEC_SIGN_KEY ?= "${WORKDIR}/rsa_oem_dss_key.pem"
|
||||
SOCSEC_SIGN_ALGO ?= "RSA4096_SHA512"
|
||||
SOCSEC_SIGN_EXTRA_OPTS ?= "--stack_intersects_verification_region=false --rsa_key_order=big"
|
||||
|
||||
OTPTOOL_USER_DIR ?= "${WORKDIR}/user"
|
||||
|
||||
inherit socsec-sign
|
||||
inherit otptool
|
||||
|
||||
UBOOT_ENV_SIZE:df-phosphor-mmc = "0x10000"
|
||||
UBOOT_ENV:df-phosphor-mmc = "u-boot-env"
|
||||
UBOOT_ENV_SUFFIX:df-phosphor-mmc = "bin"
|
||||
UBOOT_ENV_TXT:df-phosphor-mmc = "u-boot-env-ast2600.txt"
|
||||
|
||||
do_compile:append() {
|
||||
if [ -n "${UBOOT_ENV}" ]
|
||||
then
|
||||
# Generate redundant environment image
|
||||
${B}/tools/mkenvimage -r -s ${UBOOT_ENV_SIZE} -o ${WORKDIR}/${UBOOT_ENV_BINARY} ${WORKDIR}/${UBOOT_ENV_TXT}
|
||||
fi
|
||||
}
|
||||
@@ -0,0 +1,295 @@
|
||||
SUMMARY = "Universal Boot Loader for embedded devices"
|
||||
PROVIDES = "virtual/bootloader"
|
||||
|
||||
B = "${WORKDIR}/build"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
|
||||
DEPENDS += "kern-tools-native"
|
||||
|
||||
inherit uboot-config uboot-extlinux-config uboot-sign deploy cml1 python3native
|
||||
|
||||
DEPENDS += "swig-native"
|
||||
|
||||
EXTRA_OEMAKE = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${TARGET_PREFIX}gcc ${TOOLCHAIN_OPTIONS}" V=1'
|
||||
EXTRA_OEMAKE += 'HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}"'
|
||||
EXTRA_OEMAKE += 'STAGING_INCDIR=${STAGING_INCDIR_NATIVE} STAGING_LIBDIR=${STAGING_LIBDIR_NATIVE}'
|
||||
|
||||
PACKAGECONFIG ??= "openssl"
|
||||
# u-boot will compile its own tools during the build, with specific
|
||||
# configurations (aka when CONFIG_FIT_SIGNATURE is enabled) openssl is needed as
|
||||
# a host build dependency.
|
||||
PACKAGECONFIG[openssl] = ",,openssl-native"
|
||||
|
||||
# Allow setting an additional version string that will be picked up by the
|
||||
# u-boot build system and appended to the u-boot version. If the .scmversion
|
||||
# file already exists it will not be overwritten.
|
||||
UBOOT_LOCALVERSION ?= ""
|
||||
|
||||
# returns all the elements from the src uri that are .cfg files
|
||||
def find_cfgs(d):
|
||||
sources=src_patches(d, True)
|
||||
sources_list=[]
|
||||
for s in sources:
|
||||
if s.endswith('.cfg'):
|
||||
sources_list.append(s)
|
||||
|
||||
return sources_list
|
||||
|
||||
do_configure () {
|
||||
if [ -z "${UBOOT_CONFIG}" ]; then
|
||||
if [ -n "${UBOOT_MACHINE}" ]; then
|
||||
oe_runmake -C ${S} O=${B} ${UBOOT_MACHINE}
|
||||
else
|
||||
oe_runmake -C ${S} O=${B} oldconfig
|
||||
fi
|
||||
merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
|
||||
cml1_do_configure
|
||||
fi
|
||||
}
|
||||
|
||||
do_compile () {
|
||||
if [ "${@bb.utils.filter('DISTRO_FEATURES', 'ld-is-gold', d)}" ]; then
|
||||
sed -i 's/$(CROSS_COMPILE)ld$/$(CROSS_COMPILE)ld.bfd/g' ${S}/config.mk
|
||||
fi
|
||||
|
||||
unset LDFLAGS
|
||||
unset CFLAGS
|
||||
unset CPPFLAGS
|
||||
|
||||
if [ ! -e ${B}/.scmversion -a ! -e ${S}/.scmversion ]
|
||||
then
|
||||
echo ${UBOOT_LOCALVERSION} > ${B}/.scmversion
|
||||
echo ${UBOOT_LOCALVERSION} > ${S}/.scmversion
|
||||
fi
|
||||
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
unset i j k
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
oe_runmake -C ${S} O=${B}/${config} ${config}
|
||||
oe_runmake -C ${S} O=${B}/${config} ${UBOOT_MAKE_TARGET}
|
||||
for binary in ${UBOOT_BINARIES}; do
|
||||
k=$(expr $k + 1);
|
||||
if [ $k -eq $i ]; then
|
||||
cp ${B}/${config}/${binary} ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX}
|
||||
fi
|
||||
done
|
||||
unset k
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
oe_runmake -C ${S} O=${B} ${UBOOT_MAKE_TARGET}
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
do_install () {
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
install -d ${D}/boot
|
||||
install -m 644 ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${D}/boot/${UBOOT_BINARY}
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
install -d ${D}/boot
|
||||
install -m 644 ${B}/${UBOOT_BINARY} ${D}/boot/${UBOOT_IMAGE}
|
||||
ln -sf ${UBOOT_IMAGE} ${D}/boot/${UBOOT_BINARY}
|
||||
fi
|
||||
|
||||
if [ -n "${UBOOT_ELF}" ]
|
||||
then
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
install -m 644 ${B}/${config}/${UBOOT_ELF} ${D}/boot/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY}-${type}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${D}/boot/${UBOOT_BINARY}
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
install -m 644 ${B}/${UBOOT_ELF} ${D}/boot/${UBOOT_ELF_IMAGE}
|
||||
ln -sf ${UBOOT_ELF_IMAGE} ${D}/boot/${UBOOT_ELF_BINARY}
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -e ${WORKDIR}/fw_env.config ] ; then
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
|
||||
fi
|
||||
|
||||
if [ -n "${SPL_BINARY}" ]
|
||||
then
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
install -m 644 ${B}/${config}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}-${type}-${PV}-${PR}
|
||||
ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}-${type}
|
||||
ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${D}/boot/${SPL_BINARYNAME}
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
install -m 644 ${B}/${SPL_BINARY} ${D}/boot/${SPL_IMAGE}
|
||||
ln -sf ${SPL_IMAGE} ${D}/boot/${SPL_BINARYNAME}
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -n "${UBOOT_ENV}" ]
|
||||
then
|
||||
install -m 644 ${WORKDIR}/${UBOOT_ENV_BINARY} ${D}/boot/${UBOOT_ENV_IMAGE}
|
||||
ln -sf ${UBOOT_ENV_IMAGE} ${D}/boot/${UBOOT_ENV_BINARY}
|
||||
fi
|
||||
|
||||
if [ "${UBOOT_EXTLINUX}" = "1" ]
|
||||
then
|
||||
install -Dm 0644 ${UBOOT_EXTLINUX_CONFIG} ${D}/${UBOOT_EXTLINUX_INSTALL_DIR}/${UBOOT_EXTLINUX_CONF_NAME}
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
PACKAGE_BEFORE_PN += "${PN}-env"
|
||||
|
||||
RPROVIDES:${PN}-env += "u-boot-default-env"
|
||||
FILES:${PN} = "/boot ${sysconfdir} ${datadir}"
|
||||
RDEPENDS:${PN} += "${PN}-env"
|
||||
|
||||
do_deploy () {
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
install -d ${DEPLOYDIR}
|
||||
install -m 644 ${B}/${config}/u-boot-${type}.${UBOOT_SUFFIX} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX}
|
||||
cd ${DEPLOYDIR}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}-${type}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_SYMLINK}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARY}-${type}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_SUFFIX} ${UBOOT_BINARY}
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
install -d ${DEPLOYDIR}
|
||||
install -m 644 ${B}/${UBOOT_BINARY} ${DEPLOYDIR}/${UBOOT_IMAGE}
|
||||
cd ${DEPLOYDIR}
|
||||
rm -f ${UBOOT_BINARY} ${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${UBOOT_SYMLINK}
|
||||
ln -sf ${UBOOT_IMAGE} ${UBOOT_BINARY}
|
||||
fi
|
||||
|
||||
if [ -n "${UBOOT_ELF}" ]
|
||||
then
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
install -m 644 ${B}/${config}/${UBOOT_ELF} ${DEPLOYDIR}/u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}-${type}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}-${type}
|
||||
ln -sf u-boot-${type}-${PV}-${PR}.${UBOOT_ELF_SUFFIX} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
install -m 644 ${B}/${UBOOT_ELF} ${DEPLOYDIR}/${UBOOT_ELF_IMAGE}
|
||||
ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_BINARY}
|
||||
ln -sf ${UBOOT_ELF_IMAGE} ${DEPLOYDIR}/${UBOOT_ELF_SYMLINK}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "${SPL_BINARY}" ]
|
||||
then
|
||||
if [ -n "${UBOOT_CONFIG}" ]
|
||||
then
|
||||
for config in ${UBOOT_MACHINE}; do
|
||||
i=$(expr $i + 1);
|
||||
for type in ${UBOOT_CONFIG}; do
|
||||
j=$(expr $j + 1);
|
||||
if [ $j -eq $i ]
|
||||
then
|
||||
install -m 644 ${B}/${config}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}-${type}-${PV}-${PR}
|
||||
rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}-${type}
|
||||
ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}-${type}
|
||||
ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_BINARYNAME}
|
||||
ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_SYMLINK}-${type}
|
||||
ln -sf ${SPL_IMAGE}-${type}-${PV}-${PR} ${DEPLOYDIR}/${SPL_SYMLINK}
|
||||
fi
|
||||
done
|
||||
unset j
|
||||
done
|
||||
unset i
|
||||
else
|
||||
install -m 644 ${B}/${SPL_BINARY} ${DEPLOYDIR}/${SPL_IMAGE}
|
||||
rm -f ${DEPLOYDIR}/${SPL_BINARYNAME} ${DEPLOYDIR}/${SPL_SYMLINK}
|
||||
ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_BINARYNAME}
|
||||
ln -sf ${SPL_IMAGE} ${DEPLOYDIR}/${SPL_SYMLINK}
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
if [ -n "${UBOOT_ENV}" ]
|
||||
then
|
||||
install -m 644 ${WORKDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_IMAGE}
|
||||
rm -f ${DEPLOYDIR}/${UBOOT_ENV_BINARY} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK}
|
||||
ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_BINARY}
|
||||
ln -sf ${UBOOT_ENV_IMAGE} ${DEPLOYDIR}/${UBOOT_ENV_SYMLINK}
|
||||
fi
|
||||
|
||||
if [ "${UBOOT_EXTLINUX}" = "1" ]
|
||||
then
|
||||
install -m 644 ${UBOOT_EXTLINUX_CONFIG} ${DEPLOYDIR}/${UBOOT_EXTLINUX_SYMLINK}
|
||||
ln -sf ${UBOOT_EXTLINUX_SYMLINK} ${DEPLOYDIR}/${UBOOT_EXTLINUX_CONF_NAME}-${MACHINE}
|
||||
ln -sf ${UBOOT_EXTLINUX_SYMLINK} ${DEPLOYDIR}/${UBOOT_EXTLINUX_CONF_NAME}
|
||||
fi
|
||||
}
|
||||
|
||||
addtask deploy before do_build after do_compile
|
||||
@@ -0,0 +1,9 @@
|
||||
require u-boot-common-aspeed_${PV}.inc
|
||||
require u-boot-aspeed.inc
|
||||
|
||||
PROVIDES += "u-boot"
|
||||
DEPENDS += "dtc-native"
|
||||
|
||||
# FIXME this can/should be removed when we have rebased off our
|
||||
# 2016 snapshot onto a more modern (circa late 2018) u-boot tree.
|
||||
BUILD_CFLAGS:remove = "-isystem${STAGING_INCDIR_NATIVE}"
|
||||
@@ -0,0 +1,26 @@
|
||||
require conf/machine/distro/include/uboot-distrovars.inc
|
||||
|
||||
HOMEPAGE = "https://github.com/AspeedTech-BMC/u-boot"
|
||||
SECTION = "bootloaders"
|
||||
DEPENDS += "flex-native bison-native xxd-native"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=30503fd321432fc713238f582193b78e"
|
||||
PE = "1"
|
||||
|
||||
# We use the revision in order to avoid having to fetch it from the
|
||||
# repo during parse
|
||||
SRCREV = "66672e5af36fe294df56f8e7942069e3909f3790"
|
||||
SRC_URI = "git://git@github.com/openbmc/u-boot.git;nobranch=1;protocol=https"
|
||||
|
||||
SRC_URI:append:uboot-flash-32768 = " file://u-boot_flash_32M.cfg"
|
||||
SRC_URI:append:uboot-flash-65536 = " file://u-boot_flash_64M.cfg"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
B = "${WORKDIR}/build"
|
||||
do_configure[cleandirs] = "${B}"
|
||||
|
||||
# We don't have 'u-boot-initial-env' target in our u-boot version
|
||||
UBOOT_INITIAL_ENV=""
|
||||
|
||||
PV = "v2019.04+git${SRCPV}"
|
||||
@@ -0,0 +1,18 @@
|
||||
HOMEPAGE = "https://github.com/openbmc/u-boot"
|
||||
SECTION = "bootloaders"
|
||||
DEPENDS += "flex-native bison-native"
|
||||
|
||||
LICENSE = "GPL-2.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://Licenses/README;md5=a2c678cfd4a4d97135585cad908541c6"
|
||||
PE = "1"
|
||||
|
||||
# We use the revision in order to avoid having to fetch it from the
|
||||
# repo during parse
|
||||
SRCREV = "1ded9fa3a26262efa12aa316f66c73298a84d838"
|
||||
|
||||
UBRANCH = "v2016.07-aspeed-openbmc"
|
||||
SRC_URI = "git://git@github.com/openbmc/u-boot.git;branch=${UBRANCH};protocol=https"
|
||||
|
||||
S = "${WORKDIR}/git"
|
||||
|
||||
PV = "v2016.07+git${SRCPV}"
|
||||
@@ -0,0 +1,45 @@
|
||||
require u-boot-common-aspeed-sdk_${PV}.inc
|
||||
require recipes-bsp/u-boot/u-boot-configure.inc
|
||||
|
||||
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
|
||||
DEPENDS += "mtd-utils"
|
||||
|
||||
PROVIDES += "u-boot-fw-utils"
|
||||
RPROVIDES:${PN} += "u-boot-fw-utils"
|
||||
|
||||
# The 32MB NOR and 64MB NOR layouts use the same configuration
|
||||
SRC_URI += "file://fw_env_flash_nor.config"
|
||||
SRC_URI += "file://fw_env_ast2600_mmc.config"
|
||||
|
||||
ENV_CONFIG_FILE = "fw_env_flash_nor.config"
|
||||
ENV_CONFIG_FILE:df-phosphor-mmc = "fw_env_ast2600_mmc.config"
|
||||
|
||||
INSANE_SKIP:${PN} = "already-stripped"
|
||||
EXTRA_OEMAKE:class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
|
||||
EXTRA_OEMAKE:class-cross = 'HOSTCC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
|
||||
|
||||
inherit uboot-config
|
||||
|
||||
do_compile () {
|
||||
oe_runmake envtools
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${base_sbindir}
|
||||
install -m 755 ${B}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
|
||||
ln -sf fw_printenv ${D}${base_sbindir}/fw_setenv
|
||||
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 644 ${WORKDIR}/${ENV_CONFIG_FILE} ${D}${sysconfdir}/fw_env.config
|
||||
}
|
||||
|
||||
do_install:class-cross () {
|
||||
install -d ${D}${bindir_cross}
|
||||
install -m 755 ${B}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
|
||||
ln -sf fw_printenv ${D}${bindir_cross}/fw_setenv
|
||||
}
|
||||
|
||||
SYSROOT_DIRS:append:class-cross = " ${bindir_cross}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
BBCLASSEXTEND = "cross"
|
||||
@@ -0,0 +1,44 @@
|
||||
require u-boot-common-aspeed_${PV}.inc
|
||||
|
||||
SRC_URI += "file://default-gcc.patch"
|
||||
SRC_URI += "file://fw_env.config"
|
||||
SRC_URI += "file://alt_fw_env.config"
|
||||
|
||||
SUMMARY = "U-Boot bootloader fw_printenv/setenv utilities"
|
||||
DEPENDS += "mtd-utils"
|
||||
|
||||
PROVIDES += "u-boot-fw-utils"
|
||||
|
||||
INSANE_SKIP:${PN} = "already-stripped"
|
||||
EXTRA_OEMAKE:class-target = 'CROSS_COMPILE=${TARGET_PREFIX} CC="${CC} ${CFLAGS} ${LDFLAGS}" HOSTCC="${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS}" V=1'
|
||||
EXTRA_OEMAKE:class-cross = 'ARCH=${TARGET_ARCH} CC="${CC} ${CFLAGS} ${LDFLAGS}" V=1'
|
||||
|
||||
inherit uboot-config
|
||||
|
||||
do_compile () {
|
||||
oe_runmake ${UBOOT_MACHINE}
|
||||
oe_runmake env
|
||||
}
|
||||
|
||||
do_install () {
|
||||
install -d ${D}${base_sbindir}
|
||||
install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_printenv
|
||||
install -m 755 ${S}/tools/env/fw_printenv ${D}${base_sbindir}/fw_setenv
|
||||
|
||||
install -d ${D}${sysconfdir}
|
||||
install -m 644 ${WORKDIR}/fw_env.config ${D}${sysconfdir}/fw_env.config
|
||||
install -m 644 ${WORKDIR}/alt_fw_env.config ${D}${sysconfdir}/alt_fw_env.config
|
||||
}
|
||||
|
||||
do_install:class-cross () {
|
||||
install -d ${D}${bindir_cross}
|
||||
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_printenv
|
||||
install -m 755 ${S}/tools/env/fw_printenv ${D}${bindir_cross}/fw_setenv
|
||||
}
|
||||
|
||||
SYSROOT_DIRS:append:class-cross = " ${bindir_cross}"
|
||||
|
||||
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
||||
BBCLASSEXTEND = "cross"
|
||||
|
||||
RDEPENDS:${PN} = "udev-aspeed-mtd-partitions"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "udev rules for MTD partitions"
|
||||
DESCRIPTION = "udev rules for MTD partitions"
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
SRC_URI += "file://76-aspeed-mtd-partitions.rules"
|
||||
|
||||
RDEPENDS:${PN} += "udev"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${nonarch_base_libdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/76-aspeed-mtd-partitions.rules ${D}/${nonarch_base_libdir}/udev/rules.d
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
ENV{DEVTYPE}=="mtd", SYMLINK+="mtd/%s{name}"
|
||||
@@ -0,0 +1,15 @@
|
||||
SUMMARY = "udev rules for Aspeed VUART"
|
||||
DESCRIPTION = "udev rules for Aspeed VUART"
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
SRC_URI += "file://61-aspeed-vuart.rules"
|
||||
|
||||
RDEPENDS:${PN} += "udev"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}/${nonarch_base_libdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/61-aspeed-vuart.rules ${D}/${nonarch_base_libdir}/udev/rules.d
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="tty", ATTRS{iomem_base}=="0x1E787000", SYMLINK+="ttyVUART0", TAG+="systemd"
|
||||
@@ -0,0 +1,29 @@
|
||||
DESCRIPTION = "Linux kernel for Aspeed"
|
||||
SECTION = "kernel"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
|
||||
PROVIDES += "virtual/kernel"
|
||||
|
||||
KCONFIG_MODE="--alldefconfig"
|
||||
|
||||
KSRC ?= "git://github.com/openbmc/linux;protocol=https;branch=${KBRANCH}"
|
||||
SRC_URI += "${KSRC}"
|
||||
SRC_URI += " \
|
||||
file://defconfig \
|
||||
file://rsa_oem_fitimage_key.key;sha256sum=eeb4ff2ebbfbd97b6254fe6dbaeea41067e54c65176c233ec7b2ab2decf1ddcd \
|
||||
file://rsa_oem_fitimage_key.crt;sha256sum=45f5a55497cce8040999bf9f3214d471ac7b83ab7acef41c4425a34662e8372e \
|
||||
${@bb.utils.contains('MACHINE_FEATURES', 'tpm2', 'file://tpm/tpm2.scc file://tpm/tpm2.cfg', '', d)} \
|
||||
${@bb.utils.contains_any('DISTRO_FEATURES', \
|
||||
'obmc-static-norootfs obmc-ubi-fs', \
|
||||
'file://ubi/ubi.scc file://ubi/ubi.cfg', '', d)} \
|
||||
"
|
||||
|
||||
LINUX_VERSION_EXTENSION ?= "-${SRCREV}"
|
||||
|
||||
PV = "${LINUX_VERSION}+git${SRCPV}"
|
||||
|
||||
inherit kernel
|
||||
require recipes-kernel/linux/linux-yocto.inc
|
||||
|
||||
# From 5.6+ the COPYING file changed
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
|
||||
@@ -0,0 +1,229 @@
|
||||
CONFIG_KERNEL_XZ=y
|
||||
# CONFIG_SWAP is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_BPF_SYSCALL=y
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
CONFIG_LOG_BUF_SHIFT=16
|
||||
CONFIG_CGROUPS=y
|
||||
CONFIG_CGROUP_BPF=y
|
||||
CONFIG_NAMESPACES=y
|
||||
CONFIG_USER_NS=y
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
# CONFIG_RD_BZIP2 is not set
|
||||
# CONFIG_RD_LZO is not set
|
||||
# CONFIG_RD_LZ4 is not set
|
||||
# CONFIG_UID16 is not set
|
||||
# CONFIG_SYSFS_SYSCALL is not set
|
||||
# CONFIG_AIO is not set
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_PERF_EVENTS=y
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
CONFIG_SLAB_FREELIST_RANDOM=y
|
||||
CONFIG_SLAB_FREELIST_HARDENED=y
|
||||
# CONFIG_ARCH_MULTI_V7 is not set
|
||||
CONFIG_ARCH_ASPEED=y
|
||||
CONFIG_MACH_ASPEED_G4=y
|
||||
CONFIG_VMSPLIT_2G=y
|
||||
CONFIG_AEABI=y
|
||||
CONFIG_UACCESS_WITH_MEMCPY=y
|
||||
# CONFIG_ATAGS is not set
|
||||
CONFIG_KEXEC=y
|
||||
CONFIG_JUMP_LABEL=y
|
||||
CONFIG_STRICT_KERNEL_RWX=y
|
||||
# CONFIG_BLK_DEBUG_FS is not set
|
||||
# CONFIG_MQ_IOSCHED_DEADLINE is not set
|
||||
# CONFIG_MQ_IOSCHED_KYBER is not set
|
||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||
# CONFIG_COMPACTION is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_PACKET_DIAG=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_UNIX_DIAG=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_ADVANCED_ROUTER=y
|
||||
CONFIG_IP_MULTIPLE_TABLES=y
|
||||
CONFIG_IP_ROUTE_MULTIPATH=y
|
||||
CONFIG_IP_ROUTE_VERBOSE=y
|
||||
CONFIG_SYN_COOKIES=y
|
||||
# CONFIG_INET_DIAG is not set
|
||||
CONFIG_IPV6_ROUTER_PREF=y
|
||||
CONFIG_IPV6_ROUTE_INFO=y
|
||||
CONFIG_IPV6_OPTIMISTIC_DAD=y
|
||||
# CONFIG_IPV6_SIT is not set
|
||||
CONFIG_IPV6_MULTIPLE_TABLES=y
|
||||
CONFIG_NETFILTER=y
|
||||
# CONFIG_NETFILTER_ADVANCED is not set
|
||||
CONFIG_VLAN_8021Q=y
|
||||
CONFIG_NET_NCSI=y
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_PARTITIONED_MASTER=y
|
||||
CONFIG_MTD_SPI_NOR=y
|
||||
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
|
||||
CONFIG_SPI_ASPEED_SMC=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_EEPROM_AT24=y
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_NETCONSOLE=y
|
||||
# CONFIG_NET_VENDOR_ALACRITECH is not set
|
||||
# CONFIG_NET_VENDOR_AMAZON is not set
|
||||
# CONFIG_NET_VENDOR_AQUANTIA is not set
|
||||
# CONFIG_NET_VENDOR_ARC is not set
|
||||
# CONFIG_NET_VENDOR_BROADCOM is not set
|
||||
# CONFIG_NET_VENDOR_CIRRUS is not set
|
||||
# CONFIG_NET_VENDOR_CORTINA is not set
|
||||
# CONFIG_NET_VENDOR_EZCHIP is not set
|
||||
CONFIG_FTGMAC100=y
|
||||
# CONFIG_NET_VENDOR_HISILICON is not set
|
||||
# CONFIG_NET_VENDOR_HUAWEI is not set
|
||||
# CONFIG_NET_VENDOR_INTEL is not set
|
||||
# CONFIG_NET_VENDOR_MARVELL is not set
|
||||
# CONFIG_NET_VENDOR_MELLANOX is not set
|
||||
# CONFIG_NET_VENDOR_MICREL is not set
|
||||
# CONFIG_NET_VENDOR_MICROSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NATSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NETRONOME is not set
|
||||
# CONFIG_NET_VENDOR_NI is not set
|
||||
# CONFIG_NET_VENDOR_QUALCOMM is not set
|
||||
# CONFIG_NET_VENDOR_RENESAS is not set
|
||||
# CONFIG_NET_VENDOR_ROCKER is not set
|
||||
# CONFIG_NET_VENDOR_SAMSUNG is not set
|
||||
# CONFIG_NET_VENDOR_SEEQ is not set
|
||||
# CONFIG_NET_VENDOR_SOLARFLARE is not set
|
||||
# CONFIG_NET_VENDOR_SMSC is not set
|
||||
# CONFIG_NET_VENDOR_SOCIONEXT is not set
|
||||
# CONFIG_NET_VENDOR_STMICRO is not set
|
||||
# CONFIG_NET_VENDOR_SYNOPSYS is not set
|
||||
# CONFIG_NET_VENDOR_VIA is not set
|
||||
# CONFIG_NET_VENDOR_WIZNET is not set
|
||||
CONFIG_BROADCOM_PHY=y
|
||||
CONFIG_REALTEK_PHY=y
|
||||
# CONFIG_WLAN is not set
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
# CONFIG_KEYBOARD_ATKBD is not set
|
||||
CONFIG_KEYBOARD_GPIO=y
|
||||
CONFIG_KEYBOARD_GPIO_POLLED=y
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
# CONFIG_SERIO is not set
|
||||
# CONFIG_VT is not set
|
||||
# CONFIG_LEGACY_PTYS is not set
|
||||
CONFIG_SERIAL_8250=y
|
||||
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_SERIAL_8250_NR_UARTS=6
|
||||
CONFIG_SERIAL_8250_RUNTIME_UARTS=6
|
||||
CONFIG_SERIAL_8250_EXTENDED=y
|
||||
CONFIG_SERIAL_8250_ASPEED_VUART=y
|
||||
CONFIG_SERIAL_8250_SHARE_IRQ=y
|
||||
CONFIG_SERIAL_OF_PLATFORM=y
|
||||
CONFIG_ASPEED_KCS_IPMI_BMC=y
|
||||
CONFIG_IPMI_KCS_BMC_CDEV_IPMI=y
|
||||
CONFIG_ASPEED_BT_IPMI_BMC=y
|
||||
CONFIG_HW_RANDOM_TIMERIOMEM=y
|
||||
CONFIG_DEVMEM_BOOTPARAM=y
|
||||
CONFIG_I2C=y
|
||||
# CONFIG_I2C_COMPAT is not set
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_MUX=y
|
||||
CONFIG_I2C_MUX_PCA9541=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_I2C_ASPEED=y
|
||||
CONFIG_I2C_FSI=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_GPIOLIB=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_ASPEED=y
|
||||
CONFIG_W1=y
|
||||
CONFIG_W1_MASTER_GPIO=y
|
||||
CONFIG_W1_SLAVE_THERM=y
|
||||
CONFIG_SENSORS_ASPEED=y
|
||||
CONFIG_SENSORS_IIO_HWMON=y
|
||||
CONFIG_SENSORS_LM75=y
|
||||
CONFIG_SENSORS_NCT7904=y
|
||||
CONFIG_SENSORS_OCC_P8_I2C=y
|
||||
CONFIG_PMBUS=y
|
||||
CONFIG_SENSORS_ADM1275=y
|
||||
CONFIG_SENSORS_IBM_CFFPS=y
|
||||
CONFIG_SENSORS_IR35221=y
|
||||
CONFIG_SENSORS_LM25066=y
|
||||
CONFIG_SENSORS_MAX31785=y
|
||||
CONFIG_SENSORS_UCD9000=y
|
||||
CONFIG_SENSORS_UCD9200=y
|
||||
CONFIG_SENSORS_TMP421=y
|
||||
CONFIG_SENSORS_W83773G=y
|
||||
CONFIG_WATCHDOG_SYSFS=y
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_CLASS_FLASH=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_LEDS_PCA955X=y
|
||||
CONFIG_LEDS_PCA955X_GPIO=y
|
||||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_TIMER=y
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_DS1307=y
|
||||
CONFIG_RTC_DRV_PCF8523=y
|
||||
CONFIG_RTC_DRV_RV8803=y
|
||||
# CONFIG_VIRTIO_MENU is not set
|
||||
# CONFIG_IOMMU_SUPPORT is not set
|
||||
CONFIG_IIO=y
|
||||
CONFIG_ASPEED_ADC=y
|
||||
CONFIG_MAX1363=y
|
||||
CONFIG_BMP280=y
|
||||
CONFIG_FSI=y
|
||||
CONFIG_FSI_MASTER_HUB=y
|
||||
CONFIG_FSI_MASTER_AST_CF=y
|
||||
CONFIG_FSI_SCOM=y
|
||||
CONFIG_FANOTIFY=y
|
||||
CONFIG_OVERLAY_FS=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_JFFS2_FS=y
|
||||
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
|
||||
CONFIG_JFFS2_SUMMARY=y
|
||||
CONFIG_JFFS2_FS_XATTR=y
|
||||
CONFIG_SQUASHFS=y
|
||||
CONFIG_SQUASHFS_XZ=y
|
||||
CONFIG_SQUASHFS_ZSTD=y
|
||||
# CONFIG_NETWORK_FILESYSTEMS is not set
|
||||
CONFIG_HARDENED_USERCOPY=y
|
||||
CONFIG_FORTIFY_SOURCE=y
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
CONFIG_CRYPTO_SHA256=y
|
||||
CONFIG_CRYPTO_USER_API_HASH=y
|
||||
# CONFIG_CRYPTO_HW is not set
|
||||
# CONFIG_XZ_DEC_X86 is not set
|
||||
# CONFIG_XZ_DEC_POWERPC is not set
|
||||
# CONFIG_XZ_DEC_IA64 is not set
|
||||
# CONFIG_XZ_DEC_SPARC is not set
|
||||
CONFIG_PRINTK_TIME=y
|
||||
CONFIG_DYNAMIC_DEBUG=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_INFO_REDUCED=y
|
||||
CONFIG_DEBUG_INFO_DWARF4=y
|
||||
CONFIG_GDB_SCRIPTS=y
|
||||
CONFIG_STRIP_ASM_SYMS=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_SLUB_DEBUG is not set
|
||||
CONFIG_DEBUG_WX=y
|
||||
CONFIG_SCHED_STACK_END_CHECK=y
|
||||
CONFIG_PANIC_ON_OOPS=y
|
||||
CONFIG_PANIC_TIMEOUT=-1
|
||||
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||
# CONFIG_DETECT_HUNG_TASK is not set
|
||||
CONFIG_WQ_WATCHDOG=y
|
||||
# CONFIG_SCHED_DEBUG is not set
|
||||
CONFIG_DEBUG_LIST=y
|
||||
CONFIG_FUNCTION_TRACER=y
|
||||
CONFIG_DEBUG_USER=y
|
||||
# CONFIG_RUNTIME_TESTING_MENU is not set
|
||||
@@ -0,0 +1,257 @@
|
||||
CONFIG_KERNEL_XZ=y
|
||||
# CONFIG_SWAP is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_BPF_SYSCALL=y
|
||||
CONFIG_PSI=y
|
||||
CONFIG_PSI_DEFAULT_DISABLED=y
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
CONFIG_LOG_BUF_SHIFT=16
|
||||
CONFIG_CGROUPS=y
|
||||
CONFIG_CGROUP_BPF=y
|
||||
CONFIG_NAMESPACES=y
|
||||
CONFIG_USER_NS=y
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
# CONFIG_RD_BZIP2 is not set
|
||||
# CONFIG_RD_LZO is not set
|
||||
# CONFIG_RD_LZ4 is not set
|
||||
# CONFIG_UID16 is not set
|
||||
# CONFIG_SYSFS_SYSCALL is not set
|
||||
# CONFIG_AIO is not set
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_PERF_EVENTS=y
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
CONFIG_SLAB_FREELIST_RANDOM=y
|
||||
CONFIG_SLAB_FREELIST_HARDENED=y
|
||||
CONFIG_ARCH_MULTI_V6=y
|
||||
# CONFIG_ARCH_MULTI_V7 is not set
|
||||
CONFIG_ARCH_ASPEED=y
|
||||
CONFIG_MACH_ASPEED_G5=y
|
||||
# CONFIG_CACHE_L2X0 is not set
|
||||
CONFIG_VMSPLIT_2G=y
|
||||
CONFIG_UACCESS_WITH_MEMCPY=y
|
||||
# CONFIG_ATAGS is not set
|
||||
CONFIG_KEXEC=y
|
||||
# CONFIG_SUSPEND is not set
|
||||
CONFIG_JUMP_LABEL=y
|
||||
CONFIG_STRICT_KERNEL_RWX=y
|
||||
# CONFIG_BLK_DEBUG_FS is not set
|
||||
# CONFIG_MQ_IOSCHED_DEADLINE is not set
|
||||
# CONFIG_MQ_IOSCHED_KYBER is not set
|
||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||
# CONFIG_COMPACTION is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_PACKET_DIAG=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_UNIX_DIAG=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_ADVANCED_ROUTER=y
|
||||
CONFIG_IP_MULTIPLE_TABLES=y
|
||||
CONFIG_IP_ROUTE_MULTIPATH=y
|
||||
CONFIG_IP_ROUTE_VERBOSE=y
|
||||
CONFIG_SYN_COOKIES=y
|
||||
# CONFIG_INET_DIAG is not set
|
||||
CONFIG_IPV6_ROUTER_PREF=y
|
||||
CONFIG_IPV6_ROUTE_INFO=y
|
||||
CONFIG_IPV6_OPTIMISTIC_DAD=y
|
||||
# CONFIG_IPV6_SIT is not set
|
||||
CONFIG_IPV6_MULTIPLE_TABLES=y
|
||||
CONFIG_NETFILTER=y
|
||||
# CONFIG_NETFILTER_ADVANCED is not set
|
||||
CONFIG_VLAN_8021Q=y
|
||||
CONFIG_NET_NCSI=y
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_PARTITIONED_MASTER=y
|
||||
CONFIG_MTD_SPI_NOR=y
|
||||
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
|
||||
CONFIG_SPI_ASPEED_SMC=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_NBD=y
|
||||
CONFIG_EEPROM_AT24=y
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_NETCONSOLE=y
|
||||
# CONFIG_NET_VENDOR_ALACRITECH is not set
|
||||
# CONFIG_NET_VENDOR_AMAZON is not set
|
||||
# CONFIG_NET_VENDOR_AQUANTIA is not set
|
||||
# CONFIG_NET_VENDOR_ARC is not set
|
||||
# CONFIG_NET_VENDOR_BROADCOM is not set
|
||||
# CONFIG_NET_VENDOR_CIRRUS is not set
|
||||
# CONFIG_NET_VENDOR_CORTINA is not set
|
||||
# CONFIG_NET_VENDOR_EZCHIP is not set
|
||||
CONFIG_FTGMAC100=y
|
||||
# CONFIG_NET_VENDOR_HISILICON is not set
|
||||
# CONFIG_NET_VENDOR_HUAWEI is not set
|
||||
# CONFIG_NET_VENDOR_INTEL is not set
|
||||
# CONFIG_NET_VENDOR_MARVELL is not set
|
||||
# CONFIG_NET_VENDOR_MELLANOX is not set
|
||||
# CONFIG_NET_VENDOR_MICREL is not set
|
||||
# CONFIG_NET_VENDOR_MICROSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NATSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NETRONOME is not set
|
||||
# CONFIG_NET_VENDOR_NI is not set
|
||||
# CONFIG_NET_VENDOR_QUALCOMM is not set
|
||||
# CONFIG_NET_VENDOR_RENESAS is not set
|
||||
# CONFIG_NET_VENDOR_ROCKER is not set
|
||||
# CONFIG_NET_VENDOR_SAMSUNG is not set
|
||||
# CONFIG_NET_VENDOR_SEEQ is not set
|
||||
# CONFIG_NET_VENDOR_SOLARFLARE is not set
|
||||
# CONFIG_NET_VENDOR_SMSC is not set
|
||||
# CONFIG_NET_VENDOR_SOCIONEXT is not set
|
||||
# CONFIG_NET_VENDOR_STMICRO is not set
|
||||
# CONFIG_NET_VENDOR_SYNOPSYS is not set
|
||||
# CONFIG_NET_VENDOR_VIA is not set
|
||||
# CONFIG_NET_VENDOR_WIZNET is not set
|
||||
CONFIG_BROADCOM_PHY=y
|
||||
CONFIG_REALTEK_PHY=y
|
||||
# CONFIG_WLAN is not set
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
# CONFIG_KEYBOARD_ATKBD is not set
|
||||
CONFIG_KEYBOARD_GPIO=y
|
||||
CONFIG_KEYBOARD_GPIO_POLLED=y
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
CONFIG_INPUT_MISC=y
|
||||
CONFIG_INPUT_IBM_PANEL=y
|
||||
# CONFIG_SERIO is not set
|
||||
# CONFIG_VT is not set
|
||||
# CONFIG_LEGACY_PTYS is not set
|
||||
CONFIG_SERIAL_8250=y
|
||||
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_SERIAL_8250_NR_UARTS=6
|
||||
CONFIG_SERIAL_8250_RUNTIME_UARTS=6
|
||||
CONFIG_SERIAL_8250_EXTENDED=y
|
||||
CONFIG_SERIAL_8250_ASPEED_VUART=y
|
||||
CONFIG_SERIAL_8250_SHARE_IRQ=y
|
||||
CONFIG_SERIAL_OF_PLATFORM=y
|
||||
CONFIG_ASPEED_KCS_IPMI_BMC=y
|
||||
CONFIG_IPMI_KCS_BMC_CDEV_IPMI=y
|
||||
CONFIG_ASPEED_BT_IPMI_BMC=y
|
||||
CONFIG_HW_RANDOM_TIMERIOMEM=y
|
||||
CONFIG_DEVMEM_BOOTPARAM=y
|
||||
# CONFIG_I2C_COMPAT is not set
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_MUX_PCA9541=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_I2C_ASPEED=y
|
||||
CONFIG_I2C_FSI=y
|
||||
CONFIG_I2C_SLAVE=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_GPIOLIB=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_ASPEED=y
|
||||
CONFIG_GPIO_PCA953X=y
|
||||
CONFIG_GPIO_PCA953X_IRQ=y
|
||||
CONFIG_W1=y
|
||||
CONFIG_W1_MASTER_GPIO=y
|
||||
CONFIG_W1_SLAVE_THERM=y
|
||||
CONFIG_SENSORS_ASPEED=y
|
||||
CONFIG_SENSORS_IIO_HWMON=y
|
||||
CONFIG_SENSORS_LM75=y
|
||||
CONFIG_SENSORS_NCT7904=y
|
||||
CONFIG_SENSORS_OCC_P8_I2C=y
|
||||
CONFIG_SENSORS_OCC_P9_SBE=y
|
||||
CONFIG_PMBUS=y
|
||||
CONFIG_SENSORS_ADM1275=y
|
||||
CONFIG_SENSORS_IBM_CFFPS=y
|
||||
CONFIG_SENSORS_IR35221=y
|
||||
CONFIG_SENSORS_LM25066=y
|
||||
CONFIG_SENSORS_MAX31785=y
|
||||
CONFIG_SENSORS_UCD9000=y
|
||||
CONFIG_SENSORS_UCD9200=y
|
||||
CONFIG_SENSORS_TMP421=y
|
||||
CONFIG_SENSORS_W83773G=y
|
||||
CONFIG_WATCHDOG_SYSFS=y
|
||||
CONFIG_MEDIA_SUPPORT=y
|
||||
CONFIG_MEDIA_SUPPORT_FILTER=y
|
||||
CONFIG_MEDIA_PLATFORM_SUPPORT=y
|
||||
CONFIG_V4L_PLATFORM_DRIVERS=y
|
||||
CONFIG_VIDEO_ASPEED=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_ASPEED_GFX=y
|
||||
CONFIG_FB=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_ASPEED_VHUB=y
|
||||
CONFIG_USB_CONFIGFS=y
|
||||
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
|
||||
CONFIG_USB_CONFIGFS_F_HID=y
|
||||
CONFIG_USB_MASS_STORAGE=y
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_CLASS_FLASH=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_LEDS_PCA955X=y
|
||||
CONFIG_LEDS_PCA955X_GPIO=y
|
||||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_TIMER=y
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_DS1307=y
|
||||
CONFIG_RTC_DRV_PCF8523=y
|
||||
CONFIG_RTC_DRV_RV8803=y
|
||||
# CONFIG_VIRTIO_MENU is not set
|
||||
# CONFIG_IOMMU_SUPPORT is not set
|
||||
CONFIG_ASPEED_XDMA=y
|
||||
CONFIG_IIO=y
|
||||
CONFIG_ASPEED_ADC=y
|
||||
CONFIG_MAX1363=y
|
||||
CONFIG_BMP280=y
|
||||
CONFIG_DPS310=y
|
||||
CONFIG_FSI=y
|
||||
CONFIG_FSI_MASTER_GPIO=y
|
||||
CONFIG_FSI_MASTER_HUB=y
|
||||
CONFIG_FSI_MASTER_AST_CF=y
|
||||
CONFIG_FSI_SCOM=y
|
||||
CONFIG_FSI_SBEFIFO=y
|
||||
CONFIG_FSI_OCC=y
|
||||
CONFIG_FANOTIFY=y
|
||||
CONFIG_OVERLAY_FS=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_JFFS2_FS=y
|
||||
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
|
||||
CONFIG_JFFS2_SUMMARY=y
|
||||
CONFIG_JFFS2_FS_XATTR=y
|
||||
CONFIG_SQUASHFS=y
|
||||
CONFIG_SQUASHFS_XZ=y
|
||||
CONFIG_SQUASHFS_ZSTD=y
|
||||
# CONFIG_NETWORK_FILESYSTEMS is not set
|
||||
CONFIG_HARDENED_USERCOPY=y
|
||||
CONFIG_FORTIFY_SOURCE=y
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
CONFIG_CRYPTO_SHA256=y
|
||||
CONFIG_CRYPTO_USER_API_HASH=y
|
||||
# CONFIG_CRYPTO_HW is not set
|
||||
# CONFIG_XZ_DEC_X86 is not set
|
||||
# CONFIG_XZ_DEC_POWERPC is not set
|
||||
# CONFIG_XZ_DEC_IA64 is not set
|
||||
# CONFIG_XZ_DEC_SPARC is not set
|
||||
CONFIG_PRINTK_TIME=y
|
||||
CONFIG_DYNAMIC_DEBUG=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_INFO_REDUCED=y
|
||||
CONFIG_DEBUG_INFO_DWARF4=y
|
||||
CONFIG_GDB_SCRIPTS=y
|
||||
CONFIG_STRIP_ASM_SYMS=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_SLUB_DEBUG is not set
|
||||
CONFIG_DEBUG_WX=y
|
||||
CONFIG_SCHED_STACK_END_CHECK=y
|
||||
CONFIG_PANIC_ON_OOPS=y
|
||||
CONFIG_PANIC_TIMEOUT=-1
|
||||
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||
# CONFIG_DETECT_HUNG_TASK is not set
|
||||
CONFIG_WQ_WATCHDOG=y
|
||||
# CONFIG_SCHED_DEBUG is not set
|
||||
CONFIG_DEBUG_LIST=y
|
||||
CONFIG_FUNCTION_TRACER=y
|
||||
CONFIG_DEBUG_USER=y
|
||||
# CONFIG_RUNTIME_TESTING_MENU is not set
|
||||
@@ -0,0 +1,293 @@
|
||||
CONFIG_KERNEL_XZ=y
|
||||
# CONFIG_SWAP is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_NO_HZ_IDLE=y
|
||||
CONFIG_HIGH_RES_TIMERS=y
|
||||
CONFIG_BPF_SYSCALL=y
|
||||
CONFIG_PSI=y
|
||||
CONFIG_PSI_DEFAULT_DISABLED=y
|
||||
CONFIG_IKCONFIG=y
|
||||
CONFIG_IKCONFIG_PROC=y
|
||||
CONFIG_LOG_BUF_SHIFT=16
|
||||
CONFIG_CGROUPS=y
|
||||
CONFIG_CGROUP_BPF=y
|
||||
CONFIG_NAMESPACES=y
|
||||
CONFIG_USER_NS=y
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
# CONFIG_RD_BZIP2 is not set
|
||||
# CONFIG_RD_LZO is not set
|
||||
# CONFIG_RD_LZ4 is not set
|
||||
# CONFIG_UID16 is not set
|
||||
# CONFIG_SYSFS_SYSCALL is not set
|
||||
# CONFIG_AIO is not set
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_PERF_EVENTS=y
|
||||
# CONFIG_COMPAT_BRK is not set
|
||||
CONFIG_SLAB_FREELIST_RANDOM=y
|
||||
CONFIG_SLAB_FREELIST_HARDENED=y
|
||||
CONFIG_ARCH_ASPEED=y
|
||||
CONFIG_MACH_ASPEED_G6=y
|
||||
# CONFIG_CACHE_L2X0 is not set
|
||||
CONFIG_SMP=y
|
||||
# CONFIG_ARM_CPU_TOPOLOGY is not set
|
||||
CONFIG_VMSPLIT_2G=y
|
||||
CONFIG_NR_CPUS=2
|
||||
CONFIG_HIGHMEM=y
|
||||
CONFIG_UACCESS_WITH_MEMCPY=y
|
||||
# CONFIG_ATAGS is not set
|
||||
CONFIG_KEXEC=y
|
||||
CONFIG_VFP=y
|
||||
CONFIG_NEON=y
|
||||
CONFIG_KERNEL_MODE_NEON=y
|
||||
CONFIG_JUMP_LABEL=y
|
||||
# CONFIG_MQ_IOSCHED_DEADLINE is not set
|
||||
# CONFIG_MQ_IOSCHED_KYBER is not set
|
||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||
# CONFIG_COMPACTION is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_PACKET_DIAG=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_UNIX_DIAG=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_ADVANCED_ROUTER=y
|
||||
CONFIG_IP_MULTIPLE_TABLES=y
|
||||
CONFIG_IP_ROUTE_MULTIPATH=y
|
||||
CONFIG_IP_ROUTE_VERBOSE=y
|
||||
CONFIG_SYN_COOKIES=y
|
||||
# CONFIG_INET_DIAG is not set
|
||||
CONFIG_IPV6_ROUTER_PREF=y
|
||||
CONFIG_IPV6_ROUTE_INFO=y
|
||||
CONFIG_IPV6_OPTIMISTIC_DAD=y
|
||||
# CONFIG_IPV6_SIT is not set
|
||||
CONFIG_IPV6_MULTIPLE_TABLES=y
|
||||
CONFIG_NETFILTER=y
|
||||
# CONFIG_NETFILTER_ADVANCED is not set
|
||||
CONFIG_VLAN_8021Q=y
|
||||
CONFIG_NET_NCSI=y
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_PARTITIONED_MASTER=y
|
||||
CONFIG_MTD_SPI_NOR=y
|
||||
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
|
||||
CONFIG_SPI_ASPEED_SMC=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_NBD=y
|
||||
CONFIG_EEPROM_AT24=y
|
||||
CONFIG_EEPROM_AT25=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_MD=y
|
||||
CONFIG_BLK_DEV_DM=y
|
||||
CONFIG_DM_VERITY=y
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_NETCONSOLE=y
|
||||
# CONFIG_NET_VENDOR_ALACRITECH is not set
|
||||
# CONFIG_NET_VENDOR_AMAZON is not set
|
||||
# CONFIG_NET_VENDOR_AQUANTIA is not set
|
||||
# CONFIG_NET_VENDOR_ARC is not set
|
||||
# CONFIG_NET_VENDOR_BROADCOM is not set
|
||||
# CONFIG_NET_VENDOR_CADENCE is not set
|
||||
# CONFIG_NET_VENDOR_CAVIUM is not set
|
||||
# CONFIG_NET_VENDOR_CIRRUS is not set
|
||||
# CONFIG_NET_VENDOR_CORTINA is not set
|
||||
# CONFIG_NET_VENDOR_EZCHIP is not set
|
||||
CONFIG_FTGMAC100=y
|
||||
# CONFIG_NET_VENDOR_HISILICON is not set
|
||||
# CONFIG_NET_VENDOR_HUAWEI is not set
|
||||
# CONFIG_NET_VENDOR_INTEL is not set
|
||||
# CONFIG_NET_VENDOR_MARVELL is not set
|
||||
# CONFIG_NET_VENDOR_MELLANOX is not set
|
||||
# CONFIG_NET_VENDOR_MICREL is not set
|
||||
# CONFIG_NET_VENDOR_MICROCHIP is not set
|
||||
# CONFIG_NET_VENDOR_MICROSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NATSEMI is not set
|
||||
# CONFIG_NET_VENDOR_NETRONOME is not set
|
||||
# CONFIG_NET_VENDOR_NI is not set
|
||||
# CONFIG_NET_VENDOR_QUALCOMM is not set
|
||||
# CONFIG_NET_VENDOR_RENESAS is not set
|
||||
# CONFIG_NET_VENDOR_ROCKER is not set
|
||||
# CONFIG_NET_VENDOR_SAMSUNG is not set
|
||||
# CONFIG_NET_VENDOR_SEEQ is not set
|
||||
# CONFIG_NET_VENDOR_SOLARFLARE is not set
|
||||
# CONFIG_NET_VENDOR_SMSC is not set
|
||||
# CONFIG_NET_VENDOR_SOCIONEXT is not set
|
||||
# CONFIG_NET_VENDOR_STMICRO is not set
|
||||
# CONFIG_NET_VENDOR_SYNOPSYS is not set
|
||||
# CONFIG_NET_VENDOR_VIA is not set
|
||||
# CONFIG_NET_VENDOR_WIZNET is not set
|
||||
CONFIG_BROADCOM_PHY=y
|
||||
CONFIG_REALTEK_PHY=y
|
||||
# CONFIG_USB_NET_DRIVERS is not set
|
||||
# CONFIG_WLAN is not set
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
# CONFIG_KEYBOARD_ATKBD is not set
|
||||
CONFIG_KEYBOARD_GPIO=y
|
||||
CONFIG_KEYBOARD_GPIO_POLLED=y
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
CONFIG_INPUT_MISC=y
|
||||
CONFIG_INPUT_IBM_PANEL=y
|
||||
CONFIG_SERIO_RAW=y
|
||||
# CONFIG_VT is not set
|
||||
# CONFIG_LEGACY_PTYS is not set
|
||||
CONFIG_SERIAL_8250=y
|
||||
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_SERIAL_8250_NR_UARTS=6
|
||||
CONFIG_SERIAL_8250_RUNTIME_UARTS=6
|
||||
CONFIG_SERIAL_8250_EXTENDED=y
|
||||
CONFIG_SERIAL_8250_ASPEED_VUART=y
|
||||
CONFIG_SERIAL_8250_SHARE_IRQ=y
|
||||
CONFIG_SERIAL_8250_DW=y
|
||||
CONFIG_SERIAL_OF_PLATFORM=y
|
||||
CONFIG_ASPEED_KCS_IPMI_BMC=y
|
||||
CONFIG_IPMI_KCS_BMC_CDEV_IPMI=y
|
||||
CONFIG_IPMI_KCS_BMC_SERIO=y
|
||||
CONFIG_ASPEED_BT_IPMI_BMC=y
|
||||
CONFIG_HW_RANDOM_TIMERIOMEM=y
|
||||
CONFIG_DEVMEM_BOOTPARAM=y
|
||||
# CONFIG_I2C_COMPAT is not set
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_MUX_GPIO=y
|
||||
CONFIG_I2C_MUX_PCA9541=y
|
||||
CONFIG_I2C_MUX_PCA954x=y
|
||||
CONFIG_I2C_ASPEED=y
|
||||
CONFIG_I2C_FSI=y
|
||||
CONFIG_I2C_SLAVE=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_FSI=y
|
||||
CONFIG_GPIOLIB=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_ASPEED=y
|
||||
CONFIG_GPIO_PCA953X=y
|
||||
CONFIG_GPIO_PCA953X_IRQ=y
|
||||
CONFIG_W1=y
|
||||
CONFIG_W1_MASTER_GPIO=y
|
||||
CONFIG_W1_SLAVE_THERM=y
|
||||
CONFIG_SENSORS_ASPEED=y
|
||||
CONFIG_SENSORS_IIO_HWMON=y
|
||||
CONFIG_SENSORS_LM75=y
|
||||
CONFIG_SENSORS_NCT7904=y
|
||||
CONFIG_SENSORS_OCC_P8_I2C=y
|
||||
CONFIG_SENSORS_OCC_P9_SBE=y
|
||||
CONFIG_PMBUS=y
|
||||
CONFIG_SENSORS_ADM1275=y
|
||||
CONFIG_SENSORS_IBM_CFFPS=y
|
||||
CONFIG_SENSORS_IR35221=y
|
||||
CONFIG_SENSORS_IR38064=y
|
||||
CONFIG_SENSORS_ISL68137=y
|
||||
CONFIG_SENSORS_LM25066=y
|
||||
CONFIG_SENSORS_MAX31785=y
|
||||
CONFIG_SENSORS_UCD9000=y
|
||||
CONFIG_SENSORS_UCD9200=y
|
||||
CONFIG_SENSORS_TMP421=y
|
||||
CONFIG_SENSORS_W83773G=y
|
||||
CONFIG_WATCHDOG_SYSFS=y
|
||||
CONFIG_MEDIA_SUPPORT=y
|
||||
CONFIG_MEDIA_SUPPORT_FILTER=y
|
||||
CONFIG_MEDIA_PLATFORM_SUPPORT=y
|
||||
CONFIG_V4L_PLATFORM_DRIVERS=y
|
||||
CONFIG_VIDEO_ASPEED=y
|
||||
CONFIG_DRM=y
|
||||
CONFIG_DRM_ASPEED_GFX=y
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
|
||||
CONFIG_USB_DYNAMIC_MINORS=y
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_EHCI_ROOT_HUB_TT=y
|
||||
CONFIG_USB_EHCI_HCD_PLATFORM=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_ASPEED_VHUB=y
|
||||
CONFIG_USB_CONFIGFS=y
|
||||
CONFIG_USB_CONFIGFS_MASS_STORAGE=y
|
||||
CONFIG_USB_CONFIGFS_F_HID=y
|
||||
CONFIG_MMC=y
|
||||
CONFIG_MMC_SDHCI=y
|
||||
CONFIG_MMC_SDHCI_PLTFM=y
|
||||
CONFIG_MMC_SDHCI_OF_ASPEED=y
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_CLASS_FLASH=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_LEDS_PCA955X=y
|
||||
CONFIG_LEDS_PCA955X_GPIO=y
|
||||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_TIMER=y
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
|
||||
CONFIG_EDAC=y
|
||||
CONFIG_EDAC_ASPEED=y
|
||||
# CONFIG_EDAC_LEGACY_SYSFS is not set
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_DS1307=y
|
||||
CONFIG_RTC_DRV_PCF8523=y
|
||||
CONFIG_RTC_DRV_RV8803=y
|
||||
CONFIG_RTC_DRV_ASPEED=y
|
||||
# CONFIG_VIRTIO_MENU is not set
|
||||
# CONFIG_IOMMU_SUPPORT is not set
|
||||
CONFIG_ASPEED_XDMA=y
|
||||
CONFIG_IIO=y
|
||||
CONFIG_ASPEED_ADC=y
|
||||
CONFIG_MAX1363=y
|
||||
CONFIG_BMP280=y
|
||||
CONFIG_DPS310=y
|
||||
CONFIG_RAS=y
|
||||
CONFIG_FSI=y
|
||||
CONFIG_FSI_MASTER_HUB=y
|
||||
CONFIG_FSI_MASTER_ASPEED=y
|
||||
CONFIG_FSI_SCOM=y
|
||||
CONFIG_FSI_SBEFIFO=y
|
||||
CONFIG_FSI_OCC=y
|
||||
CONFIG_EXT4_FS=y
|
||||
CONFIG_FANOTIFY=y
|
||||
CONFIG_OVERLAY_FS=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_JFFS2_FS=y
|
||||
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
|
||||
CONFIG_JFFS2_SUMMARY=y
|
||||
CONFIG_JFFS2_FS_XATTR=y
|
||||
CONFIG_SQUASHFS=y
|
||||
CONFIG_SQUASHFS_XZ=y
|
||||
CONFIG_SQUASHFS_ZSTD=y
|
||||
# CONFIG_NETWORK_FILESYSTEMS is not set
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_HARDENED_USERCOPY=y
|
||||
CONFIG_FORTIFY_SOURCE=y
|
||||
CONFIG_CRYPTO_HMAC=y
|
||||
CONFIG_CRYPTO_SHA256=y
|
||||
CONFIG_CRYPTO_USER_API_HASH=y
|
||||
# CONFIG_CRYPTO_HW is not set
|
||||
# CONFIG_XZ_DEC_X86 is not set
|
||||
# CONFIG_XZ_DEC_POWERPC is not set
|
||||
# CONFIG_XZ_DEC_IA64 is not set
|
||||
# CONFIG_XZ_DEC_SPARC is not set
|
||||
CONFIG_PRINTK_TIME=y
|
||||
CONFIG_DYNAMIC_DEBUG=y
|
||||
CONFIG_DEBUG_INFO=y
|
||||
CONFIG_DEBUG_INFO_REDUCED=y
|
||||
CONFIG_DEBUG_INFO_DWARF4=y
|
||||
CONFIG_GDB_SCRIPTS=y
|
||||
CONFIG_STRIP_ASM_SYMS=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_SLUB_DEBUG is not set
|
||||
CONFIG_DEBUG_WX=y
|
||||
CONFIG_SCHED_STACK_END_CHECK=y
|
||||
CONFIG_PANIC_ON_OOPS=y
|
||||
CONFIG_PANIC_TIMEOUT=-1
|
||||
CONFIG_SOFTLOCKUP_DETECTOR=y
|
||||
CONFIG_BOOTPARAM_SOFTLOCKUP_PANIC=y
|
||||
CONFIG_BOOTPARAM_HUNG_TASK_PANIC=y
|
||||
CONFIG_WQ_WATCHDOG=y
|
||||
# CONFIG_SCHED_DEBUG is not set
|
||||
CONFIG_DEBUG_LIST=y
|
||||
CONFIG_FUNCTION_TRACER=y
|
||||
CONFIG_DEBUG_USER=y
|
||||
# CONFIG_RUNTIME_TESTING_MENU is not set
|
||||
@@ -0,0 +1,35 @@
|
||||
# Certificate for the 'Insecure' Kernel fitimage key, required
|
||||
# by the signing process for U-Boot FIT Signature Validation.
|
||||
# Please refer to 'rsa_oem_fitimage_key.key' for more info
|
||||
|
||||
-----BEGIN CERTIFICATE-----
|
||||
MIIFazCCA1OgAwIBAgIUMP4fGTalbDhpTcr7sr+VKnUunRUwDQYJKoZIhvcNAQEL
|
||||
BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
|
||||
GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMTA0MjgxMzAzMDhaFw0yMTA1
|
||||
MjgxMzAzMDhaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
|
||||
HwY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QatIdZ/fv8ukqo+OBCyw1sE8u668S9ca1rr5+vq2PaxNn//ZLV
|
||||
zmJ12yZa7SOkJgsWsjNlSwM+VWIbLKC+25nRYuA3S03XcLLmXzxEbxIYFuynds8W
|
||||
pQqYMn1CZ9y6Yz7MtDo9p+JU1kFqgxocBLKpgcRgqbQ1vWHjE91r10iS6E1N8YAi
|
||||
EPsO7Nh6DzfhFY4Wo+S9tTZwBL/dKqO4Ft4XPFKA1nEH8ZyGTI3jfRUYn5IaRc7g
|
||||
5Hy8Mla/n7UvKrZIEitD5fqOvxm2g7Bck28cpr2gH+Cy5q6ivfJkycGRfy6BDfDl
|
||||
fv41PJSnrrvxNuXB9ylBXat8K0nBPjY8vOr0uFXPzVHC3Rj2e8zD6GsOzFvkyvfQ
|
||||
qYrUYKVs1U74PMTdu9wc9z+sS1CBvdq2KZPaZImqvctS3VP3mfmqxCHQLYx3WX23
|
||||
J0KGpbfmBOtHwcgBHna0ZAY7ImbF47+FL1eHzITVoMagFteEYC4LI4uqsznI2dNi
|
||||
gjrTmQLnm8DkwvBFwXOa2QyaM2I4Dk+q7+FHwCxiTJdmTnd6LFH5nufmq5oIAy2d
|
||||
/G0EqPom0AZz1i+Ee90xCjiFLd2vzdv5U+EWKkOjUiM/XdvglrsVCUdQ41gorRo=
|
||||
-----END CERTIFICATE-----
|
||||
@@ -0,0 +1,60 @@
|
||||
# Kernel fitImage 'Insecure' key (also known as 'development' or
|
||||
# 'imprint' key), used to sign development images of the OpenBMC
|
||||
# Kernel fitImage. This key SHOULD NOT be used to sign
|
||||
# production images.
|
||||
# This key is 4096 bits in size and can be used by adjusting
|
||||
# the UBOOT_SIGN_KEYNAME, UBOOT_SIGN_KEYDIR and FIT_SIGN_ALG
|
||||
# variables (see uboot-sign.bbclass for more info)
|
||||
|
||||
-----BEGIN PRIVATE KEY-----
|
||||
MIIJQwIBADANBgkqhkiG9w0BAQEFAASCCS0wggkpAgEAAoICAQDMZ5gF78Jx+yzI
|
||||
4bh0imCi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C6kc/FW1kV0Jhmq5FCsiIExfTRmObmjO/R1lZS5PuzYPmwpbJ/9m
|
||||
4dlne1W/MIiVLcQgXHnNzFLcOHrLCTR/TLV6l4vVe9BHFnc6OX4Vf/hAwA93sEm0
|
||||
xaPMnGMcWU4pg8ytNSMuYDfobC5hPxo=
|
||||
-----END PRIVATE KEY-----
|
||||
@@ -0,0 +1,8 @@
|
||||
CONFIG_HW_RANDOM=y
|
||||
CONFIG_HW_RANDOM_TPM=y
|
||||
CONFIG_TCG_TPM=y
|
||||
CONFIG_TCG_TIS_CORE=y
|
||||
CONFIG_TCG_TIS=y
|
||||
CONFIG_TCG_TIS_SPI=y
|
||||
CONFIG_TCG_TIS_I2C=y
|
||||
CONFIG_SECURITYFS=y
|
||||
@@ -0,0 +1,3 @@
|
||||
define KFEATURE_DESCRIPTION "Enable TPM 2.0"
|
||||
|
||||
kconf hardware tpm2.cfg
|
||||
@@ -0,0 +1,4 @@
|
||||
CONFIG_MTD_UBI=y
|
||||
CONFIG_MTD_UBI_FASTMAP=y
|
||||
CONFIG_MTD_UBI_BLOCK=y
|
||||
CONFIG_UBIFS_FS=y
|
||||
@@ -0,0 +1,3 @@
|
||||
define KFEATURE_DESCRIPTION "Enable UBIFS"
|
||||
|
||||
kconf hardware ubi.cfg
|
||||
@@ -0,0 +1,6 @@
|
||||
KBRANCH ?= "dev-6.1"
|
||||
LINUX_VERSION ?= "6.1.44"
|
||||
|
||||
SRCREV="4ecb1195d4670c16c72e7d64d8090d3897be940e"
|
||||
|
||||
require linux-aspeed.inc
|
||||
@@ -0,0 +1,30 @@
|
||||
# short-description: Create an image for eMMC
|
||||
# long-description: Creates an eMMC card image for the User Data Area that can
|
||||
# be used with the Aspeed SoC family.
|
||||
#
|
||||
# Assumes a minimum flash size of 16GB.
|
||||
# Assumes U-Boot is stored elsewhere, such as an eMMC boot volume or NOR flash.
|
||||
#
|
||||
# --- - ----- -------- -------- -------- -------- ------ -------- -------
|
||||
# |GPT| | env | boot-a | boot-b | rofs-a | rofs-b | rwfs | hostfw |GPT-sec|
|
||||
# --- - ----- -------- -------- -------- -------- ------ -------- -------
|
||||
# ^ 1MB 64MB 64MB 1GB 1GB 7GB 5GB
|
||||
# |
|
||||
# 0x5000
|
||||
#
|
||||
# Primary GPT size (Beginning of image):
|
||||
# 512B (Protective MBR) + 512B (Primary Header) + 16KB (Primary Table)
|
||||
# First partition (u-boot-env) is 4K-aligned, which puts it at offset 0x5000
|
||||
#
|
||||
# Secondary GPT size (End of image):
|
||||
# 16KB (Secondary Table) + 512B (Secondary Header)
|
||||
|
||||
bootloader --ptable gpt
|
||||
|
||||
part --align 4 --fixed-size 1M --source rawcopy --sourceparams="file=${DEPLOY_DIR_IMAGE}/u-boot-env.bin"
|
||||
part --fstype=ext4 --fixed-size 64M --source bootimg-partition --label boot-a
|
||||
part --fstype=ext4 --fixed-size 64M --source bootimg-partition --label boot-b
|
||||
part --fstype=ext4 --fixed-size 1G --source rootfs --label rofs-a
|
||||
part --fstype=ext4 --fixed-size 1G --source rootfs --label rofs-b
|
||||
part --fstype=ext4 --fixed-size 7G --label rwfs
|
||||
part --fstype=ext4 --fixed-size ${WKS_HOSTFW_SIZE} --source rootfs --rootfs-dir=${DEPLOY_DIR_IMAGE}/hostfw/image/ --label hostfw
|
||||
Reference in New Issue
Block a user