Compare commits
1 Commits
master
...
pinephone-
Author | SHA1 | Date | |
---|---|---|---|
cad2f5fc76 |
@@ -1,24 +1,13 @@
|
||||
variables:
|
||||
windows_vm: windows-2022
|
||||
ubuntu_vm: ubuntu-24.04
|
||||
macos_vm: macOS-14
|
||||
ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20250404-29Apr2025
|
||||
windows_vm: windows-2019
|
||||
ubuntu_vm: ubuntu-22.04
|
||||
macos_vm: macOS-12
|
||||
ci_runner_image: trini/u-boot-gitlab-ci-runner:jammy-20240227-14Mar2024
|
||||
# Add '-u 0' options for Azure pipelines, otherwise we get "permission
|
||||
# denied" error when it tries to "useradd -m -u 1001 vsts_azpcontainer",
|
||||
# since our $(ci_runner_image) user is not root.
|
||||
container_option: -u 0
|
||||
work_dir: /u
|
||||
# We define all of these as variables so we can easily reference them twice
|
||||
am33xx_kirkwood_ls1_mvebu_omap: "am33xx kirkwood ls1 mvebu omap -x siemens,freescale"
|
||||
amlogic_bcm_boundary_engicam_siemens_technexion_oradex: "amlogic bcm boundary engicam siemens technexion toradex -x mips"
|
||||
arm_nxp_minus_imx_and_at91: "at91 freescale -x powerpc,m68k,imx,mx"
|
||||
imx: "mx imx -x boundary,engicam,technexion,toradex"
|
||||
rk: "rk"
|
||||
sunxi: "sunxi"
|
||||
powerpc: "powerpc"
|
||||
arm_catch_all: "arm -x aarch64,am33xx,at91,bcm,ls1,kirkwood,mvebu,omap,rk,siemens,mx,sunxi,technexion,toradex"
|
||||
aarch64_catch_all: "aarch64 -x amlogic,bcm,engicam,imx,ls1,ls2,lx216,mvebu,rk,siemens,sunxi,toradex"
|
||||
everything_but_arm_and_powerpc: "arc m68k microblaze mips nios2 riscv sandbox sh x86 xtensa -x arm,powerpc"
|
||||
|
||||
stages:
|
||||
- stage: testsuites
|
||||
@@ -76,8 +65,7 @@ stages:
|
||||
# have no matches.
|
||||
- script: git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_'
|
||||
:^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h
|
||||
:^include/linux/kconfig.h :^tools/ :^dts/upstream/
|
||||
:^lib/mbedtls/external :^lib/mbedtls/mbedtls_def_config.h &&
|
||||
:^include/linux/kconfig.h :^tools/ :^dts/upstream/ &&
|
||||
exit 1 || exit 0
|
||||
|
||||
- job: docs
|
||||
@@ -89,10 +77,9 @@ stages:
|
||||
options: $(container_option)
|
||||
steps:
|
||||
- script: |
|
||||
set -e
|
||||
python3 -m venv /tmp/venvhtml
|
||||
virtualenv -p /usr/bin/python3 /tmp/venvhtml
|
||||
. /tmp/venvhtml/bin/activate
|
||||
pip install -r doc/sphinx/requirements.txt -r test/py/requirements.txt
|
||||
pip install -r doc/sphinx/requirements.txt
|
||||
make htmldocs KDOC_WERROR=1
|
||||
make infodocs
|
||||
|
||||
@@ -132,23 +119,16 @@ stages:
|
||||
git config --global user.email bmeng.cn@gmail.com
|
||||
git config --global --add safe.directory $(work_dir)
|
||||
export USER=azure
|
||||
python3 -m venv /tmp/venv
|
||||
virtualenv -p /usr/bin/python3 /tmp/venv
|
||||
. /tmp/venv/bin/activate
|
||||
pip install -r test/py/requirements.txt \
|
||||
-r tools/binman/requirements.txt \
|
||||
-r tools/buildman/requirements.txt \
|
||||
-r tools/patman/requirements.txt \
|
||||
-r tools/u_boot_pylib/requirements.txt
|
||||
pip install -r test/py/requirements.txt
|
||||
pip install -r tools/buildman/requirements.txt
|
||||
export UBOOT_TRAVIS_BUILD_DIR=/tmp/tools-only
|
||||
export PYTHONPATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt
|
||||
export PATH=${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}
|
||||
./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w --board tools-only
|
||||
set -ex
|
||||
export TOOLPATH="--toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools --toolpath /opt/coreboot"
|
||||
./tools/binman/binman ${TOOLPATH} tool -f missing
|
||||
./tools/binman/binman ${TOOLPATH} test
|
||||
# Avoid "Permission denied: 'cov'" error by using a temporary file
|
||||
COVERAGE_FILE=/tmp/.coverage ./tools/binman/binman ${TOOLPATH} test -T
|
||||
./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test
|
||||
./tools/buildman/buildman -t
|
||||
./tools/dtoc/dtoc -t
|
||||
./tools/patman/patman test
|
||||
@@ -170,14 +150,9 @@ stages:
|
||||
- script: |
|
||||
git config --global --add safe.directory $(work_dir)
|
||||
export USER=azure
|
||||
python3 -m venv /tmp/venv
|
||||
. /tmp/venv/bin/activate
|
||||
pip install -r test/py/requirements.txt \
|
||||
-r tools/binman/requirements.txt \
|
||||
-r tools/buildman/requirements.txt \
|
||||
-r tools/patman/requirements.txt \
|
||||
-r tools/u_boot_pylib/requirements.txt \
|
||||
asteval pylint==3.3.4 pyopenssl
|
||||
pip install -r test/py/requirements.txt
|
||||
pip install -r tools/buildman/requirements.txt
|
||||
pip install asteval pylint==2.12.2 pyopenssl
|
||||
export PATH=${PATH}:~/.local/bin
|
||||
echo "[MASTER]" >> .pylintrc
|
||||
echo "load-plugins=pylint.extensions.docparams" >> .pylintrc
|
||||
@@ -210,34 +185,6 @@ stages:
|
||||
steps:
|
||||
- script: make pip
|
||||
|
||||
- job: count_built_machines
|
||||
displayName: 'Ensure we build all possible machines'
|
||||
pool:
|
||||
vmImage: $(ubuntu_vm)
|
||||
container:
|
||||
image: $(ci_runner_image)
|
||||
options: $(container_option)
|
||||
steps:
|
||||
- script: |
|
||||
BMANARGS="-o /tmp --dry-run -v"
|
||||
# First get the total number of boards
|
||||
total=$(tools/buildman/buildman ${BMANARGS} | grep "Total boards to build for each commit" | cut -d ' ' -f 8)
|
||||
# Now build up the list of what each job built.
|
||||
built="$(tools/buildman/buildman ${BMANARGS} $(am33xx_kirkwood_ls1_mvebu_omap) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(amlogic_bcm_boundary_engicam_siemens_technexion_oradex) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(arm_nxp_minus_imx_and_at91) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(imx) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(rk) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(sunxi) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(powerpc) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(arm_catch_all) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(aarch64_catch_all) | grep '^ ')"
|
||||
built="$built $(tools/buildman/buildman ${BMANARGS} $(everything_but_arm_and_powerpc) | grep '^ ')"
|
||||
# Finally see how many machines that is.
|
||||
actual=$(tools/buildman/buildman ${BMANARGS} $built | grep "Total boards to build for each commit" | cut -d ' ' -f 8)
|
||||
echo We would build a total of $actual out of $total platforms this CI run
|
||||
[ $actual -eq $total ] && exit 0 || exit 1
|
||||
|
||||
- job: create_test_py_wrapper_script
|
||||
displayName: 'Create and stage a wrapper for test.py runs'
|
||||
pool:
|
||||
@@ -252,12 +199,10 @@ stages:
|
||||
cd \${WORK_DIR}
|
||||
git config --global --add safe.directory \${WORK_DIR}
|
||||
git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
|
||||
# qemu_arm64_lwip_defconfig is the same as qemu_arm64 but with NET_LWIP enabled.
|
||||
# The test config and the boardenv file from qemu_arm64 can be re-used so create symlinks
|
||||
ln -s conf.qemu_arm64_na /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu_arm64_lwip_na
|
||||
ln -s u_boot_boardenv_qemu_arm64_na.py /tmp/uboot-test-hooks/py/travis-ci/u_boot_boardenv_qemu_arm64_lwip_na.py
|
||||
ln -s travis-ci /tmp/uboot-test-hooks/bin/\`hostname\`
|
||||
ln -s travis-ci /tmp/uboot-test-hooks/py/\`hostname\`
|
||||
grub-mkimage --prefix=\"\" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
|
||||
grub-mkimage --prefix=\"\" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
|
||||
if [[ "\${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
|
||||
wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ;
|
||||
export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
|
||||
@@ -266,27 +211,16 @@ stages:
|
||||
wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ;
|
||||
export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
|
||||
fi
|
||||
if [[ "\${TEST_PY_BD}" == "qemu-arm-sbsa" ]]; then
|
||||
wget -O /tmp/bl1.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/bl1.bin;
|
||||
wget -O /tmp/fip.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/fip.bin;
|
||||
export BINMAN_INDIRS=/tmp
|
||||
fi
|
||||
# the below corresponds to .gitlab-ci.yml "script"
|
||||
cd \${WORK_DIR}
|
||||
export UBOOT_TRAVIS_BUILD_DIR=/tmp/\${TEST_PY_BD}
|
||||
if [ -n "\${BUILD_ENV}" ]; then
|
||||
export \${BUILD_ENV};
|
||||
fi
|
||||
python3 -m venv /tmp/venv
|
||||
. /tmp/venv/bin/activate
|
||||
pip install -r tools/binman/requirements.txt \
|
||||
-r tools/buildman/requirements.txt \
|
||||
-r test/py/requirements.txt \
|
||||
-r tools/u_boot_pylib/requirements.txt \
|
||||
pytest-azurepipelines
|
||||
pip install -r tools/buildman/requirements.txt
|
||||
tools/buildman/buildman -o \${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e --board \${TEST_PY_BD} \${OVERRIDE}
|
||||
cp /opt/grub/grub_x86.efi \${UBOOT_TRAVIS_BUILD_DIR}/
|
||||
cp /opt/grub/grub_x64.efi \${UBOOT_TRAVIS_BUILD_DIR}/
|
||||
cp ~/grub_x86.efi \${UBOOT_TRAVIS_BUILD_DIR}/
|
||||
cp ~/grub_x64.efi \${UBOOT_TRAVIS_BUILD_DIR}/
|
||||
cp /opt/grub/grubriscv64.efi \${UBOOT_TRAVIS_BUILD_DIR}/grub_riscv64.efi
|
||||
cp /opt/grub/grubaa64.efi \${UBOOT_TRAVIS_BUILD_DIR}/grub_arm64.efi
|
||||
cp /opt/grub/grubarm.efi \${UBOOT_TRAVIS_BUILD_DIR}/grub_arm.efi
|
||||
@@ -307,17 +241,14 @@ stages:
|
||||
/opt/coreboot/cbfstool \${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom remove -n fallback/payload;
|
||||
/opt/coreboot/cbfstool \${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f \${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
|
||||
fi
|
||||
# If we have TF-A binaries, we need to use them.
|
||||
if [[ -d /opt/tf-a/"\${TEST_PY_BD}" ]]; then
|
||||
cp /opt/tf-a/"\${TEST_PY_BD}"/fip.bin /opt/tf-a/"\${TEST_PY_BD}"/bl1.bin /tmp;
|
||||
export fip=/tmp/fip.bin;
|
||||
export bl1=/tmp/bl1.bin;
|
||||
export PATH=/opt/Base_RevC_AEMvA_pkg/models/Linux64_GCC-9.3:\${PATH};
|
||||
fi
|
||||
virtualenv -p /usr/bin/python3 /tmp/venv
|
||||
. /tmp/venv/bin/activate
|
||||
pip install -r test/py/requirements.txt
|
||||
pip install pytest-azurepipelines
|
||||
export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:\${PATH}
|
||||
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci
|
||||
# "\${var:+"-k \$var"}" expands to "" if \$var is empty, "-k \$var" if not
|
||||
./test/py/test.py -ra -o cache_dir="\$UBOOT_TRAVIS_BUILD_DIR"/.pytest_cache --bd \${TEST_PY_BD} \${TEST_PY_ID} \${TEST_PY_EXTRA} \${TEST_PY_TEST_SPEC:+"-k \${TEST_PY_TEST_SPEC}"} --build-dir "\$UBOOT_TRAVIS_BUILD_DIR" --report-dir "\$UBOOT_TRAVIS_BUILD_DIR" --junitxml=\$(System.DefaultWorkingDirectory)/results.xml
|
||||
./test/py/test.py -ra -o cache_dir="\$UBOOT_TRAVIS_BUILD_DIR"/.pytest_cache --bd \${TEST_PY_BD} \${TEST_PY_ID} \${TEST_PY_TEST_SPEC:+"-k \${TEST_PY_TEST_SPEC}"} --build-dir "\$UBOOT_TRAVIS_BUILD_DIR" --report-dir "\$UBOOT_TRAVIS_BUILD_DIR"
|
||||
# the below corresponds to .gitlab-ci.yml "after_script"
|
||||
rm -rf /tmp/uboot-test-hooks /tmp/venv
|
||||
EOF
|
||||
@@ -340,25 +271,22 @@ stages:
|
||||
matrix:
|
||||
sandbox:
|
||||
TEST_PY_BD: "sandbox"
|
||||
TEST_PY_EXTRA: "--timing"
|
||||
sandbox_asan:
|
||||
TEST_PY_BD: "sandbox"
|
||||
OVERRIDE: "-a ASAN"
|
||||
TEST_PY_TEST_SPEC: "version"
|
||||
sandbox_clang:
|
||||
TEST_PY_BD: "sandbox"
|
||||
OVERRIDE: "-O clang-18"
|
||||
OVERRIDE: "-O clang-17"
|
||||
sandbox_clang_asan:
|
||||
TEST_PY_BD: "sandbox"
|
||||
OVERRIDE: "-O clang-18 -a ASAN"
|
||||
OVERRIDE: "-O clang-17 -a ASAN"
|
||||
TEST_PY_TEST_SPEC: "version"
|
||||
sandbox64:
|
||||
TEST_PY_BD: "sandbox64"
|
||||
sandbox64_clang:
|
||||
TEST_PY_BD: "sandbox64"
|
||||
OVERRIDE: "-O clang-18"
|
||||
sandbox64_lwip:
|
||||
TEST_PY_BD: "sandbox64_lwip"
|
||||
OVERRIDE: "-O clang-17"
|
||||
sandbox_spl:
|
||||
TEST_PY_BD: "sandbox_spl"
|
||||
TEST_PY_TEST_SPEC: "test_ofplatdata or test_handoff or test_spl"
|
||||
@@ -404,7 +332,6 @@ stages:
|
||||
docker run "$@" --device /dev/fuse:/dev/fuse \
|
||||
-v $PWD:$(work_dir) \
|
||||
-v $(Pipeline.Workspace):$(Pipeline.Workspace) \
|
||||
-v $(System.DefaultWorkingDirectory):$(System.DefaultWorkingDirectory) \
|
||||
-e WORK_DIR="${WORK_DIR}" \
|
||||
-e TEST_PY_BD="${TEST_PY_BD}" \
|
||||
-e TEST_PY_ID="${TEST_PY_ID}" \
|
||||
@@ -412,10 +339,6 @@ stages:
|
||||
-e OVERRIDE="${OVERRIDE}" \
|
||||
-e BUILD_ENV="${BUILD_ENV}" $(ci_runner_image) \
|
||||
$(Pipeline.Workspace)/testsh/test.sh
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'JUnit'
|
||||
testResultsFiles: 'results.xml'
|
||||
|
||||
- stage: test_py_qemu
|
||||
jobs:
|
||||
@@ -432,17 +355,12 @@ stages:
|
||||
evb_ast2500:
|
||||
TEST_PY_BD: "evb-ast2500"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
evb_ast2600:
|
||||
TEST_PY_BD: "evb-ast2600"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
vexpress_ca9x4:
|
||||
TEST_PY_BD: "vexpress_ca9x4"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
vexpress_fvp:
|
||||
TEST_PY_BD: "vexpress_fvp"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not hostfs"
|
||||
vexpress_fvp_bloblist:
|
||||
TEST_PY_BD: "vexpress_fvp_bloblist"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not hostfs"
|
||||
integratorcp_cm926ejs:
|
||||
TEST_PY_BD: "integratorcp_cm926ejs"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
@@ -453,12 +371,6 @@ stages:
|
||||
qemu_arm64:
|
||||
TEST_PY_BD: "qemu_arm64"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
qemu_arm64_lwip:
|
||||
TEST_PY_BD: "qemu_arm64_lwip"
|
||||
TEST_PY_TEST_SPEC: "test_net_dhcp or test_net_ping or test_net_tftpboot"
|
||||
qemu_arm_sbsa_ref:
|
||||
TEST_PY_BD: "qemu-arm-sbsa"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
qemu_m68k:
|
||||
TEST_PY_BD: "M5208EVBE"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
@@ -501,33 +413,24 @@ stages:
|
||||
qemu_x86_64:
|
||||
TEST_PY_BD: "qemu-x86_64"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
qemu_xtensa_dc233c:
|
||||
TEST_PY_BD: "qemu-xtensa-dc233c"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not efi"
|
||||
r2dplus_i82557c:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_ID: "--id i82557c_qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
r2dplus_pcnet:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_ID: "--id pcnet_qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
r2dplus_rtl8139:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_ID: "--id rtl8139_qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
r2dplus_tulip:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_ID: "--id tulip_qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
sifive_unleashed_sdcard:
|
||||
TEST_PY_BD: "sifive_unleashed"
|
||||
TEST_PY_ID: "--id sdcard_qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
sifive_unleashed_spi-nor:
|
||||
TEST_PY_BD: "sifive_unleashed"
|
||||
TEST_PY_ID: "--id spi-nor_qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
xilinx_zynq_virt:
|
||||
TEST_PY_BD: "xilinx_zynq_virt"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
@@ -536,7 +439,6 @@ stages:
|
||||
TEST_PY_BD: "xilinx_versal_virt"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
OVERRIDE: "-a ~CONFIG_USB_DWC3"
|
||||
xtfpga:
|
||||
TEST_PY_BD: "xtfpga"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
@@ -554,7 +456,6 @@ stages:
|
||||
docker run "$@" --device /dev/fuse:/dev/fuse \
|
||||
-v $PWD:$(work_dir) \
|
||||
-v $(Pipeline.Workspace):$(Pipeline.Workspace) \
|
||||
-v $(System.DefaultWorkingDirectory):$(System.DefaultWorkingDirectory) \
|
||||
-e WORK_DIR="${WORK_DIR}" \
|
||||
-e TEST_PY_BD="${TEST_PY_BD}" \
|
||||
-e TEST_PY_ID="${TEST_PY_ID}" \
|
||||
@@ -563,10 +464,6 @@ stages:
|
||||
-e BUILD_ENV="${BUILD_ENV}" $(ci_runner_image) \
|
||||
$(Pipeline.Workspace)/testsh/test.sh
|
||||
retryCountOnTaskFailure: 2 # QEMU may be too slow, etc.
|
||||
- task: PublishTestResults@2
|
||||
inputs:
|
||||
testResultsFormat: 'JUnit'
|
||||
testResultsFiles: 'results.xml'
|
||||
|
||||
- stage: world_build
|
||||
jobs:
|
||||
@@ -576,29 +473,29 @@ stages:
|
||||
pool:
|
||||
vmImage: $(ubuntu_vm)
|
||||
strategy:
|
||||
# We split the world up in to 10 jobs as we can have at most 10
|
||||
# parallel jobs going on the free tier of Azure.
|
||||
# Use almost the same target division in .travis.yml, only merged
|
||||
# 3 small build jobs (arc/microblaze/xtensa) into one.
|
||||
matrix:
|
||||
am33xx_kirkwood_ls1_mvebu_omap:
|
||||
BUILDMAN: $(am33xx_kirkwood_ls1_mvebu_omap)
|
||||
am33xx_at91_kirkwood_mvebu_omap:
|
||||
BUILDMAN: "am33xx at91_kirkwood mvebu omap -x siemens"
|
||||
amlogic_bcm_boundary_engicam_siemens_technexion_oradex:
|
||||
BUILDMAN: $(amlogic_bcm_boundary_engicam_siemens_technexion_oradex)
|
||||
arm_nxp_minus_imx_and_at91:
|
||||
BUILDMAN: $(arm_nxp_minus_imx_and_at91)
|
||||
BUILDMAN: "amlogic bcm boundary engicam siemens technexion toradex -x mips"
|
||||
arm_nxp_minus_imx:
|
||||
BUILDMAN: "freescale -x powerpc,m68k,imx,mx"
|
||||
imx:
|
||||
BUILDMAN: $(imx)
|
||||
BUILDMAN: "mx imx -x boundary,engicam,technexion,toradex"
|
||||
rk:
|
||||
BUILDMAN: $(rk)
|
||||
BUILDMAN: "rk"
|
||||
sunxi:
|
||||
BUILDMAN: $(sunxi)
|
||||
BUILDMAN: "sunxi"
|
||||
powerpc:
|
||||
BUILDMAN: $(powerpc)
|
||||
BUILDMAN: "powerpc"
|
||||
arm_catch_all:
|
||||
BUILDMAN: $(arm_catch_all)
|
||||
BUILDMAN: "arm -x aarch64,am33xx,at91,bcm,ls1,kirkwood,mvebu,omap,rk,siemens,mx,sunxi,technexion,toradex"
|
||||
aarch64_catch_all:
|
||||
BUILDMAN: $(aarch64_catch_all)
|
||||
BUILDMAN: "aarch64 -x amlogic,bcm,engicam,imx,ls1,ls2,lx216,mvebu,rk,siemens,sunxi,toradex"
|
||||
everything_but_arm_and_powerpc:
|
||||
BUILDMAN: $(everything_but_arm_and_powerpc)
|
||||
BUILDMAN: "-x arm,powerpc"
|
||||
steps:
|
||||
- script: |
|
||||
cat << EOF > build.sh
|
||||
@@ -607,10 +504,7 @@ stages:
|
||||
# make environment variables available as tests are running inside a container
|
||||
export BUILDMAN="${BUILDMAN}"
|
||||
git config --global --add safe.directory ${WORK_DIR}
|
||||
python3 -m venv /tmp/venv
|
||||
. /tmp/venv/bin/activate
|
||||
pip install -r tools/binman/requirements.txt \
|
||||
-r tools/buildman/requirements.txt
|
||||
pip install -r tools/buildman/requirements.txt
|
||||
EOF
|
||||
cat << "EOF" >> build.sh
|
||||
if [[ "${BUILDMAN}" != "" ]]; then
|
||||
|
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -6,4 +6,3 @@
|
||||
*.ttf binary
|
||||
*.gz binary
|
||||
*.png binary
|
||||
*.svg binary
|
||||
|
8
.gitignore
vendored
8
.gitignore
vendored
@@ -73,12 +73,6 @@ fit-dtb.blob*
|
||||
/capsule.*.efi-capsule
|
||||
/capsule*.map
|
||||
/keep-syms-lto.*
|
||||
/*imx8mimage*
|
||||
/*imx8mcst*
|
||||
/drivers/video/u_boot_logo.S
|
||||
/test/overlay/test-fdt-overlay.dtbo.S
|
||||
/test/overlay/test-fdt-overlay-stacked.dtbo.S
|
||||
capsule_esl_file
|
||||
|
||||
#
|
||||
# Generated include files
|
||||
@@ -87,8 +81,6 @@ capsule_esl_file
|
||||
/include/config.h
|
||||
/include/config/
|
||||
/include/generated/
|
||||
/include/bmp_logo.h
|
||||
/include/bmp_logo_data.h
|
||||
|
||||
# stgit generated dirs
|
||||
patches-*
|
||||
|
412
.gitlab-ci.yml
412
.gitlab-ci.yml
@@ -1,48 +1,36 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
variables:
|
||||
DEFAULT_ALL_TAG: "all"
|
||||
DEFAULT_ARM64_TAG: "arm64"
|
||||
DEFAULT_FAST_ARM64_TAG: "fast arm64"
|
||||
DEFAULT_AMD64_TAG: "amd64"
|
||||
DEFAULT_FAST_AMD64_TAG: "fast amd64"
|
||||
DEFAULT_TAG: ""
|
||||
MIRROR_DOCKER: docker.io
|
||||
SJG_LAB: ""
|
||||
PLATFORM: linux/amd64,linux/arm64
|
||||
|
||||
default:
|
||||
tags:
|
||||
- ${DEFAULT_ALL_TAG}
|
||||
|
||||
workflow:
|
||||
rules:
|
||||
- when: always
|
||||
- ${DEFAULT_TAG}
|
||||
|
||||
# Grab our configured image. The source for this is found
|
||||
# in the u-boot tree at tools/docker/Dockerfile
|
||||
image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20250404-29Apr2025
|
||||
image: ${MIRROR_DOCKER}/trini/u-boot-gitlab-ci-runner:jammy-20240227-14Mar2024
|
||||
|
||||
# We run some tests in different order, to catch some failures quicker.
|
||||
stages:
|
||||
- testsuites
|
||||
- test.py
|
||||
- sjg-lab
|
||||
- world build
|
||||
|
||||
.buildman_and_testpy_template: &buildman_and_testpy_dfn
|
||||
stage: test.py
|
||||
retry: 2 # QEMU may be too slow, etc.
|
||||
needs: [ "Run binman, buildman, dtoc, Kconfig and patman testsuites" ]
|
||||
rules:
|
||||
- when: always
|
||||
before_script:
|
||||
# Clone uboot-test-hooks
|
||||
- git config --global --add safe.directory "${CI_PROJECT_DIR}"
|
||||
- git clone --depth=1 https://source.denx.de/u-boot/u-boot-test-hooks /tmp/uboot-test-hooks
|
||||
# qemu_arm64_lwip_defconfig is the same as qemu_arm64 but with NET_LWIP enabled.
|
||||
# The test config and the boardenv file from qemu_arm64 can be re-used so create symlinks
|
||||
- ln -s conf.qemu_arm64_na /tmp/uboot-test-hooks/bin/travis-ci/conf.qemu_arm64_lwip_na
|
||||
- ln -s u_boot_boardenv_qemu_arm64_na.py /tmp/uboot-test-hooks/py/travis-ci/u_boot_boardenv_qemu_arm64_lwip_na.py
|
||||
- ln -s travis-ci /tmp/uboot-test-hooks/bin/`hostname`
|
||||
- ln -s travis-ci /tmp/uboot-test-hooks/py/`hostname`
|
||||
- grub-mkimage --prefix="" -o ~/grub_x86.efi -O i386-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
|
||||
- grub-mkimage --prefix="" -o ~/grub_x64.efi -O x86_64-efi normal echo lsefimmap lsefi lsefisystab efinet tftp minicmd
|
||||
- if [[ "${TEST_PY_BD}" == "qemu-riscv32_spl" ]]; then
|
||||
wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ;
|
||||
export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/ilp32/generic/firmware/fw_dynamic.bin;
|
||||
@@ -51,19 +39,9 @@ stages:
|
||||
wget -O - https://github.com/riscv-software-src/opensbi/releases/download/v1.3.1/opensbi-1.3.1-rv-bin.tar.xz | tar -C /tmp -xJ;
|
||||
export OPENSBI=/tmp/opensbi-1.3.1-rv-bin/share/opensbi/lp64/generic/firmware/fw_dynamic.bin;
|
||||
fi
|
||||
- if [[ "${TEST_PY_BD}" == "qemu-arm-sbsa" ]]; then
|
||||
wget -O /tmp/bl1.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/bl1.bin;
|
||||
wget -O /tmp/fip.bin https://artifacts.codelinaro.org/artifactory/linaro-419-sbsa-ref/latest/tf-a/fip.bin;
|
||||
export BINMAN_INDIRS=/tmp;
|
||||
fi
|
||||
# Prepare python environment
|
||||
- python3 -m venv /tmp/venv;
|
||||
. /tmp/venv/bin/activate;
|
||||
pip install -r test/py/requirements.txt -r tools/binman/requirements.txt
|
||||
-r tools/buildman/requirements.txt -r tools/u_boot_pylib/requirements.txt
|
||||
|
||||
after_script:
|
||||
- cp -v /tmp/${TEST_PY_BD}/*.{html,css,xml} .
|
||||
- cp -v /tmp/${TEST_PY_BD}/*.{html,css} .
|
||||
- rm -rf /tmp/uboot-test-hooks /tmp/venv
|
||||
script:
|
||||
# If we've been asked to use clang only do one configuration.
|
||||
@@ -74,8 +52,8 @@ stages:
|
||||
fi
|
||||
- tools/buildman/buildman -o ${UBOOT_TRAVIS_BUILD_DIR} -w -E -W -e
|
||||
--board ${TEST_PY_BD} ${OVERRIDE}
|
||||
- cp /opt/grub/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/
|
||||
- cp /opt/grub/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/
|
||||
- cp ~/grub_x86.efi $UBOOT_TRAVIS_BUILD_DIR/
|
||||
- cp ~/grub_x64.efi $UBOOT_TRAVIS_BUILD_DIR/
|
||||
- cp /opt/grub/grubriscv64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_riscv64.efi
|
||||
- cp /opt/grub/grubaa64.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm64.efi
|
||||
- cp /opt/grub/grubarm.efi $UBOOT_TRAVIS_BUILD_DIR/grub_arm.efi
|
||||
@@ -96,48 +74,70 @@ stages:
|
||||
/opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom remove -n fallback/payload;
|
||||
/opt/coreboot/cbfstool ${UBOOT_TRAVIS_BUILD_DIR}/coreboot.rom add-flat-binary -f ${UBOOT_TRAVIS_BUILD_DIR}/u-boot.bin -n fallback/payload -c LZMA -l 0x1110000 -e 0x1110000;
|
||||
fi
|
||||
# If we have TF-A binaries, we need to use them.
|
||||
- if [[ -d /opt/tf-a/"${TEST_PY_BD}" ]]; then
|
||||
cp /opt/tf-a/"${TEST_PY_BD}"/fip.bin /opt/tf-a/"${TEST_PY_BD}"/bl1.bin /tmp/;
|
||||
export fip=/tmp/fip.bin;
|
||||
export bl1=/tmp/bl1.bin;
|
||||
export PATH=/opt/Base_RevC_AEMvA_pkg/models/Linux64_GCC-9.3:${PATH};
|
||||
fi
|
||||
- virtualenv -p /usr/bin/python3 /tmp/venv
|
||||
- . /tmp/venv/bin/activate
|
||||
- pip install -r test/py/requirements.txt
|
||||
# "${var:+"-k $var"}" expands to "" if $var is empty, "-k $var" if not
|
||||
- export PATH=/opt/qemu/bin:/tmp/uboot-test-hooks/bin:${PATH};
|
||||
export PYTHONPATH=/tmp/uboot-test-hooks/py/travis-ci;
|
||||
./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID} ${TEST_PY_EXTRA}
|
||||
./test/py/test.py -ra --bd ${TEST_PY_BD} ${TEST_PY_ID}
|
||||
${TEST_PY_TEST_SPEC:+"-k ${TEST_PY_TEST_SPEC}"}
|
||||
--build-dir "$UBOOT_TRAVIS_BUILD_DIR"
|
||||
--junitxml=/tmp/${TEST_PY_BD}/results.xml
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- "*.html"
|
||||
- "*.css"
|
||||
- results.xml
|
||||
reports:
|
||||
junit: results.xml
|
||||
expire_in: 1 week
|
||||
|
||||
build all platforms in a single job:
|
||||
.world_build:
|
||||
stage: world build
|
||||
dependencies: []
|
||||
parallel:
|
||||
matrix:
|
||||
- HOST: "fast arm64"
|
||||
- HOST: "fast amd64"
|
||||
tags:
|
||||
- ${HOST}
|
||||
rules:
|
||||
- when: always
|
||||
|
||||
build all 32bit ARM platforms:
|
||||
extends: .world_build
|
||||
script:
|
||||
# Prepare python environment
|
||||
- python3 -m venv /tmp/venv;
|
||||
. /tmp/venv/bin/activate;
|
||||
pip install -r tools/binman/requirements.txt
|
||||
-r tools/buildman/requirements.txt
|
||||
- ret=0;
|
||||
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||
./tools/buildman/buildman -o /tmp -PEWM -x xtensa || ret=$?;
|
||||
pip install -r tools/buildman/requirements.txt;
|
||||
./tools/buildman/buildman -o /tmp -PEWM arm -x aarch64 || ret=$?;
|
||||
if [[ $ret -ne 0 ]]; then
|
||||
./tools/buildman/buildman -o /tmp -seP;
|
||||
exit $ret;
|
||||
fi;
|
||||
|
||||
build all 64bit ARM platforms:
|
||||
extends: .world_build
|
||||
script:
|
||||
- virtualenv -p /usr/bin/python3 /tmp/venv
|
||||
- . /tmp/venv/bin/activate
|
||||
- ret=0;
|
||||
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||
pip install -r tools/buildman/requirements.txt;
|
||||
./tools/buildman/buildman -o /tmp -PEWM aarch64 || ret=$?;
|
||||
if [[ $ret -ne 0 ]]; then
|
||||
./tools/buildman/buildman -o /tmp -seP;
|
||||
exit $ret;
|
||||
fi;
|
||||
|
||||
build all PowerPC platforms:
|
||||
extends: .world_build
|
||||
script:
|
||||
- ret=0;
|
||||
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||
./tools/buildman/buildman -o /tmp -P -E -W powerpc || ret=$?;
|
||||
if [[ $ret -ne 0 ]]; then
|
||||
./tools/buildman/buildman -o /tmp -seP;
|
||||
exit $ret;
|
||||
fi;
|
||||
|
||||
build all other platforms:
|
||||
extends: .world_build
|
||||
script:
|
||||
- ret=0;
|
||||
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||
./tools/buildman/buildman -o /tmp -PEWM -x arm,powerpc || ret=$?;
|
||||
if [[ $ret -ne 0 ]]; then
|
||||
./tools/buildman/buildman -o /tmp -seP;
|
||||
exit $ret;
|
||||
@@ -145,6 +145,8 @@ build all platforms in a single job:
|
||||
|
||||
.testsuites:
|
||||
stage: testsuites
|
||||
rules:
|
||||
- when: always
|
||||
|
||||
check for new CONFIG symbols outside Kconfig:
|
||||
extends: .testsuites
|
||||
@@ -154,17 +156,16 @@ check for new CONFIG symbols outside Kconfig:
|
||||
# have no matches.
|
||||
- git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_'
|
||||
:^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h
|
||||
:^include/linux/kconfig.h :^tools/ :^dts/upstream/
|
||||
:^lib/mbedtls/external :^lib/mbedtls/mbedtls_def_config.h &&
|
||||
:^include/linux/kconfig.h :^tools/ :^dts/upstream/ &&
|
||||
exit 1 || exit 0
|
||||
|
||||
# build documentation
|
||||
docs:
|
||||
extends: .testsuites
|
||||
script:
|
||||
- python3 -m venv /tmp/venvhtml
|
||||
- virtualenv -p /usr/bin/python3 /tmp/venvhtml
|
||||
- . /tmp/venvhtml/bin/activate
|
||||
- pip install -r doc/sphinx/requirements.txt -r test/py/requirements.txt
|
||||
- pip install -r doc/sphinx/requirements.txt
|
||||
- make htmldocs KDOC_WERROR=1
|
||||
- make infodocs
|
||||
|
||||
@@ -184,18 +185,15 @@ Build tools-only and envtools:
|
||||
|
||||
Run binman, buildman, dtoc, Kconfig and patman testsuites:
|
||||
extends: .testsuites
|
||||
tags:
|
||||
- ${DEFAULT_AMD64_TAG}
|
||||
script:
|
||||
- git config --global user.name "GitLab CI Runner";
|
||||
git config --global user.email trini@konsulko.com;
|
||||
git config --global --add safe.directory "${CI_PROJECT_DIR}";
|
||||
export USER=gitlab;
|
||||
python3 -m venv /tmp/venv;
|
||||
virtualenv -p /usr/bin/python3 /tmp/venv;
|
||||
. /tmp/venv/bin/activate;
|
||||
pip install -r test/py/requirements.txt -r tools/binman/requirements.txt
|
||||
-r tools/buildman/requirements.txt -r tools/patman/requirements.txt
|
||||
-r tools/u_boot_pylib/requirements.txt;
|
||||
pip install -r test/py/requirements.txt;
|
||||
pip install -r tools/buildman/requirements.txt;
|
||||
export UBOOT_TRAVIS_BUILD_DIR=/tmp/tools-only;
|
||||
export PYTHONPATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc/pylibfdt";
|
||||
export PATH="${UBOOT_TRAVIS_BUILD_DIR}/scripts/dtc:${PATH}";
|
||||
@@ -203,10 +201,7 @@ Run binman, buildman, dtoc, Kconfig and patman testsuites:
|
||||
./tools/buildman/buildman -T0 -o ${UBOOT_TRAVIS_BUILD_DIR} -w
|
||||
--board tools-only;
|
||||
set -e;
|
||||
export TOOLPATH="--toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools --toolpath /opt/coreboot";
|
||||
./tools/binman/binman ${TOOLPATH} tool -f missing;
|
||||
./tools/binman/binman ${TOOLPATH} test;
|
||||
./tools/binman/binman ${TOOLPATH} test -T;
|
||||
./tools/binman/binman --toolpath ${UBOOT_TRAVIS_BUILD_DIR}/tools test;
|
||||
./tools/buildman/buildman -t;
|
||||
./tools/dtoc/dtoc -t;
|
||||
./tools/patman/patman test;
|
||||
@@ -217,11 +212,9 @@ Run pylint:
|
||||
extends: .testsuites
|
||||
script:
|
||||
- git config --global --add safe.directory "${CI_PROJECT_DIR}"
|
||||
- python3 -m venv /tmp/venv
|
||||
- . /tmp/venv/bin/activate
|
||||
- pip install -r test/py/requirements.txt -r tools/binman/requirements.txt
|
||||
-r tools/buildman/requirements.txt -r tools/patman/requirements.txt
|
||||
-r tools/u_boot_pylib/requirements.txt asteval pylint==3.3.4 pyopenssl
|
||||
- pip install -r test/py/requirements.txt
|
||||
- pip install -r tools/buildman/requirements.txt
|
||||
- pip install asteval pylint==2.12.2 pyopenssl
|
||||
- export PATH=${PATH}:~/.local/bin
|
||||
- echo "[MASTER]" >> .pylintrc
|
||||
- echo "load-plugins=pylint.extensions.docparams" >> .pylintrc
|
||||
@@ -251,61 +244,25 @@ Check packing of Python tools:
|
||||
|
||||
# Test sandbox with test.py
|
||||
sandbox test.py:
|
||||
parallel:
|
||||
matrix:
|
||||
- HOST: "fast arm64"
|
||||
- HOST: "fast amd64"
|
||||
tags:
|
||||
- ${HOST}
|
||||
variables:
|
||||
TEST_PY_BD: "sandbox"
|
||||
TEST_PY_EXTRA: "--timing"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sandbox with clang test.py:
|
||||
parallel:
|
||||
matrix:
|
||||
- HOST: "fast arm64"
|
||||
- HOST: "fast amd64"
|
||||
tags:
|
||||
- ${HOST}
|
||||
variables:
|
||||
TEST_PY_BD: "sandbox"
|
||||
OVERRIDE: "-O clang-18"
|
||||
OVERRIDE: "-O clang-17"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sandbox64 test.py:
|
||||
parallel:
|
||||
matrix:
|
||||
- HOST: "fast arm64"
|
||||
- HOST: "fast amd64"
|
||||
tags:
|
||||
- ${HOST}
|
||||
variables:
|
||||
TEST_PY_BD: "sandbox64"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sandbox64 with clang test.py:
|
||||
parallel:
|
||||
matrix:
|
||||
- HOST: "fast arm64"
|
||||
- HOST: "fast amd64"
|
||||
tags:
|
||||
- ${HOST}
|
||||
variables:
|
||||
TEST_PY_BD: "sandbox64"
|
||||
OVERRIDE: "-O clang-18"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sandbox64_lwip test.py:
|
||||
parallel:
|
||||
matrix:
|
||||
- HOST: "fast arm64"
|
||||
- HOST: "fast amd64"
|
||||
tags:
|
||||
- ${HOST}
|
||||
variables:
|
||||
TEST_PY_BD: "sandbox64_lwip"
|
||||
OVERRIDE: "-O clang-17"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sandbox_spl test.py:
|
||||
@@ -345,13 +302,16 @@ sandbox trace_test.py:
|
||||
evb-ast2500 test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "evb-ast2500"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
evb-ast2600 test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "evb-ast2600"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sandbox_flattree test.py:
|
||||
tags:
|
||||
- ${DEFAULT_AMD64_TAG}
|
||||
variables:
|
||||
TEST_PY_BD: "sandbox_flattree"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
@@ -359,7 +319,6 @@ sandbox_flattree test.py:
|
||||
vexpress_ca9x4 test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "vexpress_ca9x4"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
@@ -382,18 +341,6 @@ qemu_arm64 test.py:
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
qemu_arm64_lwip test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "qemu_arm64_lwip"
|
||||
TEST_PY_TEST_SPEC: "test_net_dhcp or test_net_ping or test_net_tftpboot"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
qemu_arm_sbsa test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "qemu-arm-sbsa"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
qemu_m68k test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "M5208EVBE"
|
||||
@@ -472,72 +419,42 @@ qemu-x86_64 test.py:
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
qemu-xtensa-dc233c test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "qemu-xtensa-dc233c"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not efi"
|
||||
tags:
|
||||
- ${DEFAULT_AMD64_TAG}
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
r2dplus_i82557c test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id i82557c_qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
r2dplus_pcnet test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id pcnet_qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
r2dplus_rtl8139 test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id rtl8139_qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
r2dplus_tulip test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "r2dplus"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id tulip_qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sifive_unleashed_sdcard test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "sifive_unleashed"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id sdcard_qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
sifive_unleashed_spi-nor test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "sifive_unleashed"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id spi-nor_qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
vexpress_fvp test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "vexpress_fvp"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not hostfs"
|
||||
tags:
|
||||
- ${DEFAULT_AMD64_TAG}
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
vexpress_fvp_bloblist test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "vexpress_fvp_bloblist"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not hostfs"
|
||||
tags:
|
||||
- ${DEFAULT_AMD64_TAG}
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
xilinx_zynq_virt test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "xilinx_zynq_virt"
|
||||
@@ -550,7 +467,6 @@ xilinx_versal_virt test.py:
|
||||
TEST_PY_BD: "xilinx_versal_virt"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
OVERRIDE: "-a ~CONFIG_USB_DWC3"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
xtfpga test.py:
|
||||
@@ -558,8 +474,6 @@ xtfpga test.py:
|
||||
TEST_PY_BD: "xtfpga"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
tags:
|
||||
- ${DEFAULT_AMD64_TAG}
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
coreboot test.py:
|
||||
@@ -568,173 +482,3 @@ coreboot test.py:
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
.lab_template: &lab_dfn
|
||||
stage: sjg-lab
|
||||
rules:
|
||||
- if: $SJG_LAB == "1"
|
||||
when: always
|
||||
- if: $SJG_LAB != "1"
|
||||
when: manual
|
||||
allow_failure: true
|
||||
dependencies: []
|
||||
tags: [ 'lab' ]
|
||||
script:
|
||||
# Environment:
|
||||
# SRC - source tree
|
||||
# OUT - output directory for builds
|
||||
- export SRC="$(pwd)"
|
||||
- export OUT="${SRC}/build/${BOARD}"
|
||||
- export PATH=$PATH:~/bin
|
||||
- export PATH=$PATH:/vid/software/devel/ubtest/u-boot-test-hooks/bin
|
||||
|
||||
# Load it on the device
|
||||
- ret=0
|
||||
- echo "role ${ROLE}"
|
||||
- export strategy="-s uboot -e off"
|
||||
- export USE_LABGRID_SJG=1
|
||||
# export verbose="-v"
|
||||
- ${SRC}/test/py/test.py --role ${ROLE} --build-dir "${OUT}"
|
||||
--capture=tee-sys -k "not bootstd ${TEST_PY_TEST_SPEC}" || ret=$?
|
||||
- U_BOOT_BOARD_IDENTITY="${ROLE}" u-boot-test-release || true
|
||||
- if [[ $ret -ne 0 ]]; then
|
||||
exit $ret;
|
||||
fi
|
||||
artifacts:
|
||||
when: always
|
||||
paths:
|
||||
- "build/${BOARD}/test-log.html"
|
||||
- "build/${BOARD}/multiplexed_log.css"
|
||||
expire_in: 1 week
|
||||
|
||||
rpi3:
|
||||
variables:
|
||||
ROLE: rpi3
|
||||
<<: *lab_dfn
|
||||
|
||||
opi_pc:
|
||||
variables:
|
||||
ROLE: opi_pc
|
||||
<<: *lab_dfn
|
||||
|
||||
pcduino3_nano:
|
||||
variables:
|
||||
ROLE: pcduino3_nano
|
||||
<<: *lab_dfn
|
||||
|
||||
samus:
|
||||
variables:
|
||||
ROLE: samus
|
||||
<<: *lab_dfn
|
||||
|
||||
link:
|
||||
variables:
|
||||
ROLE: link
|
||||
<<: *lab_dfn
|
||||
|
||||
jerry:
|
||||
variables:
|
||||
ROLE: jerry
|
||||
<<: *lab_dfn
|
||||
|
||||
minnowmax:
|
||||
variables:
|
||||
ROLE: minnowmax
|
||||
<<: *lab_dfn
|
||||
|
||||
opi_pc2:
|
||||
variables:
|
||||
ROLE: opi_pc2
|
||||
<<: *lab_dfn
|
||||
|
||||
bpi:
|
||||
variables:
|
||||
ROLE: bpi
|
||||
<<: *lab_dfn
|
||||
|
||||
rpi2:
|
||||
variables:
|
||||
ROLE: rpi2
|
||||
<<: *lab_dfn
|
||||
|
||||
bob:
|
||||
variables:
|
||||
ROLE: bob
|
||||
<<: *lab_dfn
|
||||
|
||||
ff3399:
|
||||
variables:
|
||||
ROLE: ff3399
|
||||
<<: *lab_dfn
|
||||
|
||||
coral:
|
||||
variables:
|
||||
ROLE: coral
|
||||
<<: *lab_dfn
|
||||
|
||||
rpi3z:
|
||||
variables:
|
||||
ROLE: rpi3z
|
||||
<<: *lab_dfn
|
||||
|
||||
bbb:
|
||||
variables:
|
||||
ROLE: bbb
|
||||
<<: *lab_dfn
|
||||
|
||||
kevin:
|
||||
variables:
|
||||
ROLE: kevin
|
||||
<<: *lab_dfn
|
||||
|
||||
pine64:
|
||||
variables:
|
||||
ROLE: pine64
|
||||
<<: *lab_dfn
|
||||
|
||||
c4:
|
||||
variables:
|
||||
ROLE: c4
|
||||
<<: *lab_dfn
|
||||
|
||||
rpi4:
|
||||
variables:
|
||||
ROLE: rpi4
|
||||
<<: *lab_dfn
|
||||
|
||||
rpi0:
|
||||
variables:
|
||||
ROLE: rpi0
|
||||
<<: *lab_dfn
|
||||
|
||||
snow:
|
||||
variables:
|
||||
ROLE: snow
|
||||
<<: *lab_dfn
|
||||
|
||||
pcduino3:
|
||||
variables:
|
||||
ROLE: pcduino3
|
||||
<<: *lab_dfn
|
||||
|
||||
nyan-big:
|
||||
variables:
|
||||
ROLE: nyan-big
|
||||
<<: *lab_dfn
|
||||
|
||||
rpi:
|
||||
variables:
|
||||
ROLE: rpi
|
||||
<<: *lab_dfn
|
||||
|
||||
# StarFive VisionFive 2
|
||||
vf2:
|
||||
variables:
|
||||
ROLE: vf2
|
||||
<<: *lab_dfn
|
||||
|
||||
qemu-x86_64:
|
||||
variables:
|
||||
ROLE: qemu-x86_64
|
||||
TEST_PY_TEST_SPEC: "and not sleep"
|
||||
<<: *lab_dfn
|
||||
|
16
.mailmap
16
.mailmap
@@ -35,15 +35,11 @@ Bhupesh Sharma <bhupesh.linux@gmail.com> <bhupesh.sharma@linaro.org>
|
||||
Bin Meng <bmeng.cn@gmail.com> <bin.meng@windriver.com>
|
||||
Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@bootlin.com>
|
||||
Boris Brezillon <bbrezillon@kernel.org> <boris.brezillon@free-electrons.com>
|
||||
Casey Connolly <casey.connolly@linaro.org> <caleb.connolly@linaro.org>
|
||||
Christian Kohn <chris.kohn@amd.com> <christian.kohn@xilinx.com>
|
||||
Christopher Obbard <christopher.obbard@linaro.org> <chris.obbard@collabora.com>
|
||||
Dirk Behme <dirk.behme@googlemail.com>
|
||||
Durga Challa <durga.challa@amd.com> <vnsl.durga.challa@xilinx.com>
|
||||
Eugen Hristev <eugen.hristev@linaro.org> <eugen.hristev@microchip.com>
|
||||
Eugen Hristev <eugen.hristev@linaro.org> <eugen.hristev@collabora.com>
|
||||
Eugen Hristev <eugen.hristev@collabora.com> <eugen.hristev@microchip.com>
|
||||
Fabio Estevam <fabio.estevam@nxp.com>
|
||||
Greg Malysa <malysagreg@gmail.com> <greg.malysa@timesys.com>
|
||||
Harini Katakam <harini.katakam@amd.com> <harini.katakam@xilinx.com>
|
||||
Harsha <harsha.harsha@amd.com> <harsha.harsha@xilinx.com>
|
||||
Heiko Stuebner <heiko.stuebner@cherry.de> <heiko.stuebner@theobroma-systems.com>
|
||||
@@ -77,7 +73,6 @@ Marek Vasut <marex@denx.de> <marex at denx.de>
|
||||
Markus Klotzbuecher <mk@denx.de>
|
||||
Masahiro Yamada <masahiroy@kernel.org> <yamada.masahiro@socionext.com>
|
||||
Masahiro Yamada <masahiroy@kernel.org> <yamada.m@jp.panasonic.com>
|
||||
Mattijs Korpershoek <mkorpershoek@kernel.org> <mkorpershoek@baylibre.com>
|
||||
Michal Simek <michal.simek@amd.com> <Monstr@seznam.cz>
|
||||
Michal Simek <michal.simek@amd.com> <michal.simek@xilinx.com>
|
||||
Michal Simek <michal.simek@amd.com> <monstr@monstr.eu>
|
||||
@@ -93,11 +88,9 @@ Neil Armstrong <neil.armstrong@linaro.org> <narmstrong@baylibre.com>
|
||||
Nicolas Saenz Julienne <nsaenz@kernel.org> <nsaenzjulienne@suse.de>
|
||||
This contributor prefers not to receive mails <noreply@example.com> <pali@kernel.org>
|
||||
This contributor prefers not to receive mails <noreply@example.com> <pali.rohar@gmail.com>
|
||||
Padmarao Begari <padmarao.begari@amd.com> <padmarao.begari@microchip.com>
|
||||
Patrice Chotard <patrice.chotard@foss.st.com> <patrice.chotard@st.com>
|
||||
Patrick Delaunay <patrick.delaunay@foss.st.com> <patrick.delaunay@st.com>
|
||||
Paul Burton <paulburton@kernel.org> <paul.burton@imgtec.com>
|
||||
Paul Burton <paulburton@kernel.org> <paul.burton@mips.com>
|
||||
Paul Burton <paul.burton@mips.com> <paul.burton@imgtec.com>
|
||||
Philipp Tomsich <philipp.tomsich@vrull.eu> <philipp.tomsich@theobroma-systems.com>
|
||||
Piyush Mehta <piyush.mehta@amd.com> <piyush.mehta@xilinx.com>
|
||||
Prabhakar Kushwaha <prabhakar@freescale.com>
|
||||
@@ -125,11 +118,8 @@ Siva Durga Prasad Paladugu <siva.durga.prasad.paladugu@amd.com> <sivadur@xilinx.
|
||||
Srinivas Goud <srinivas.goud@amd.com> <srinivas.goud@xilinx.com>
|
||||
Srinivas Neeli <srinivas.neeli@amd.com> <srinivas.neeli@xilinx.com>
|
||||
Stefan Roese <sr@denx.de> <stroese>
|
||||
Stefano Babic <sbabic@nabladev.com>
|
||||
Stefano Babic <sbabic@denx.de>
|
||||
Stefano Stabellini <stefano.stabellini@amd.com> <stefano.stabellini@xilinx.com>
|
||||
No generic patch CC mail please <noreply@example.com> <swarren@wwwdotorg.org>
|
||||
No generic patch CC mail please <noreply@example.com> <swarren@nvidia.com>
|
||||
Sumit Garg <sumit.garg@kernel.org> <sumit.garg@linaro.org>
|
||||
Tom Rini <trini@konsulko.com> <trini@ti.com>
|
||||
Tomas Thoresen <tomas.thoresen@amd.com> <tomast@xilinx.com>
|
||||
TsiChung Liew <Tsi-Chung.Liew@freescale.com>
|
||||
|
@@ -6,11 +6,11 @@
|
||||
version: 2
|
||||
|
||||
build:
|
||||
os: "ubuntu-24.04"
|
||||
os: "ubuntu-20.04"
|
||||
apt_packages:
|
||||
- python3-six
|
||||
tools:
|
||||
python: "3.12"
|
||||
python: "3.9"
|
||||
|
||||
# Build documentation in the docs/ directory with Sphinx
|
||||
sphinx:
|
||||
@@ -22,4 +22,3 @@ formats: []
|
||||
python:
|
||||
install:
|
||||
- requirements: doc/sphinx/requirements.txt
|
||||
- requirements: test/py/requirements.txt
|
||||
|
95
Kconfig
95
Kconfig
@@ -1,6 +1,6 @@
|
||||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see the file Documentation/kbuild/kconfig-language.rst in the
|
||||
# see the file Documentation/kbuild/kconfig-language.txt in the
|
||||
# Linux kernel source tree.
|
||||
#
|
||||
mainmenu "U-Boot $(UBOOTVERSION) Configuration"
|
||||
@@ -27,17 +27,6 @@ config DEPRECATED
|
||||
code that relies on deprecated features that will be removed and
|
||||
the conversion deadline has passed.
|
||||
|
||||
config WERROR
|
||||
bool "Compile U-Boot with warnings as errors"
|
||||
help
|
||||
A U-Boot build should not cause any compiler warnings, and this
|
||||
enables the '-Werror' flag to enforce that rule.
|
||||
|
||||
However, if you have a new (or very old) compiler or linker with odd
|
||||
and unusual warnings, or you have some architecture with problems,
|
||||
you may need to disable this config option in order to
|
||||
successfully build U-Boot.
|
||||
|
||||
config LOCALVERSION
|
||||
string "Local version - append to U-Boot release"
|
||||
help
|
||||
@@ -219,8 +208,7 @@ config ENV_VARS_UBOOT_CONFIG
|
||||
|
||||
config NR_DRAM_BANKS
|
||||
int "Number of DRAM banks"
|
||||
default 1 if ARCH_SC5XX || ARCH_SUNXI || ARCH_OWL
|
||||
default 2 if OMAP34XX
|
||||
default 1 if ARCH_SUNXI || ARCH_OWL
|
||||
default 4
|
||||
help
|
||||
This defines the number of DRAM banks.
|
||||
@@ -248,7 +236,6 @@ config SYS_BOOT_GET_KBD
|
||||
config HAS_CUSTOM_SYS_INIT_SP_ADDR
|
||||
bool "Use a custom location for the initial stack pointer address"
|
||||
depends on ARC || (ARM && !INIT_SP_RELATIVE) || MIPS || PPC || RISCV
|
||||
default y if OMAP34XX || AM33XX || AM43XX || DRA7XX
|
||||
default y if TFABOOT
|
||||
help
|
||||
Typically, we use an initial stack pointer address that is calculated
|
||||
@@ -262,10 +249,6 @@ config HAS_CUSTOM_SYS_INIT_SP_ADDR
|
||||
config CUSTOM_SYS_INIT_SP_ADDR
|
||||
hex "Static location for the initial stack pointer"
|
||||
depends on HAS_CUSTOM_SYS_INIT_SP_ADDR
|
||||
default 0x4020ff00 if OMAP34XX
|
||||
default 0x4030ff00 if AM33XX
|
||||
default 0x4033ff00 if AM43XX
|
||||
default 0x4037ff00 if DRA7XX
|
||||
default TEXT_BASE if TFABOOT
|
||||
|
||||
config SYS_MALLOC_F
|
||||
@@ -454,12 +437,6 @@ config TOOLS_DEBUG
|
||||
it is possible to set breakpoints on particular lines, single-step
|
||||
debug through the source code, etc.
|
||||
|
||||
config SKIP_RELOCATE
|
||||
bool "Skips relocation of U-Boot to end of RAM"
|
||||
help
|
||||
Skips relocation of U-Boot allowing for systems that have extremely
|
||||
limited RAM to run U-Boot.
|
||||
|
||||
endif # EXPERT
|
||||
|
||||
config PHYS_64BIT
|
||||
@@ -568,7 +545,6 @@ config SYS_LOAD_ADDR
|
||||
default 0x12000000 if ARCH_MX6 && !(MX6SL || MX6SLL || MX6SX || MX6UL || MX6ULL)
|
||||
default 0x80800000 if ARCH_MX7
|
||||
default 0x90000000 if FSL_LSCH2 || FSL_LSCH3
|
||||
default 0x0 if ARCH_SC5XX
|
||||
help
|
||||
Address in memory to use as the default safe load address.
|
||||
|
||||
@@ -595,7 +571,6 @@ config STACK_SIZE
|
||||
hex "Define max stack size that can be used by U-Boot"
|
||||
default 0x4000000 if ARCH_VERSAL_NET || ARCH_VERSAL || ARCH_ZYNQMP
|
||||
default 0x200000 if MICROBLAZE
|
||||
default 0x4000 if ARCH_STM32
|
||||
default 0x1000000
|
||||
help
|
||||
Define Max stack size that can be used by U-Boot. This value is used
|
||||
@@ -613,10 +588,33 @@ config SYS_MEM_TOP_HIDE
|
||||
WARNING: Please make sure that this value is a multiple of the OS
|
||||
page size.
|
||||
|
||||
config SYS_HAS_SRAM
|
||||
bool
|
||||
default y if TARGET_PIC32MZDASK
|
||||
default y if TARGET_DEVKIT8000
|
||||
default y if TARGET_TRICORDER
|
||||
help
|
||||
Enable this to allow support for the on board SRAM.
|
||||
SRAM base address is controlled by CONFIG_SYS_SRAM_BASE.
|
||||
SRAM size is controlled by CONFIG_SYS_SRAM_SIZE.
|
||||
|
||||
config SYS_SRAM_BASE
|
||||
hex
|
||||
default 0x80000000 if TARGET_PIC32MZDASK
|
||||
default 0x40200000 if TARGET_DEVKIT8000
|
||||
default 0x40200000 if TARGET_TRICORDER
|
||||
default 0x0
|
||||
|
||||
config SYS_SRAM_SIZE
|
||||
hex
|
||||
default 0x00080000 if TARGET_PIC32MZDASK
|
||||
default 0x10000 if TARGET_DEVKIT8000
|
||||
default 0x10000 if TARGET_TRICORDER
|
||||
default 0x0
|
||||
|
||||
config SYS_MONITOR_LEN
|
||||
int "Maximum size in bytes reserved for U-Boot in memory"
|
||||
default 1048576 if X86
|
||||
default 262144 if OMAP34XX
|
||||
default 786432 if ARCH_SUNXI
|
||||
default 0
|
||||
help
|
||||
@@ -641,18 +639,11 @@ config HAVE_TEXT_BASE
|
||||
config TEXT_BASE
|
||||
depends on HAVE_TEXT_BASE
|
||||
default 0x0 if POSITION_INDEPENDENT
|
||||
default 0x17800000 if ARCH_MX6
|
||||
default 0x87800000 if ARCH_MX7
|
||||
default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
|
||||
default 0x81700000 if MACH_SUNIV
|
||||
default 0x2a000000 if MACH_SUN9I
|
||||
default 0x4a000000 if SUNXI_MINIMUM_DRAM_MB >= 256
|
||||
default 0x42e00000 if SUNXI_MINIMUM_DRAM_MB >= 64
|
||||
default 0x96000000 if ARCH_SC5XX && SC59X_64
|
||||
default 0xB2200000 if ARCH_SC5XX && SC59X
|
||||
default 0x89200000 if ARCH_SC5XX && TARGET_SC584_EZKIT
|
||||
default 0xC2200000 if ARCH_SC5XX && (TARGET_SC589_EZKIT || TARGET_SC589_MINI)
|
||||
default 0x82200000 if ARCH_SC5XX && SC57X
|
||||
hex "Text Base"
|
||||
help
|
||||
The address in memory that U-Boot will be copied and executed from
|
||||
@@ -754,42 +745,8 @@ source "dts/Kconfig"
|
||||
|
||||
source "env/Kconfig"
|
||||
|
||||
menu "Networking"
|
||||
|
||||
choice
|
||||
prompt "Networking stack"
|
||||
default NET
|
||||
|
||||
config NO_NET
|
||||
bool "No networking support"
|
||||
help
|
||||
Do not include networking support
|
||||
|
||||
config NET
|
||||
bool "Legacy U-Boot networking stack"
|
||||
imply NETDEVICES
|
||||
help
|
||||
Include networking support with U-Boot's internal implementation of
|
||||
the TCP/IP protocol stack.
|
||||
|
||||
config NET_LWIP
|
||||
bool "Use lwIP for networking stack"
|
||||
imply NETDEVICES
|
||||
help
|
||||
Include networking support based on the lwIP (lightweight IP)
|
||||
TCP/IP stack (https://nongnu.org/lwip). This is a replacement for
|
||||
the default U-Boot network stack and applications located in net/
|
||||
and enabled via CONFIG_NET as well as other pieces of code that
|
||||
depend on CONFIG_NET (such as cmd/net.c enabled via CONFIG_CMD_NET).
|
||||
Therefore the two symbols CONFIG_NET and CONFIG_NET_LWIP are mutually
|
||||
exclusive.
|
||||
|
||||
endchoice
|
||||
|
||||
source "net/Kconfig"
|
||||
|
||||
endmenu
|
||||
|
||||
source "drivers/Kconfig"
|
||||
|
||||
source "fs/Kconfig"
|
||||
|
197
MAINTAINERS
197
MAINTAINERS
@@ -58,27 +58,21 @@ F: cmd/acpi.c
|
||||
F: include/acpi/
|
||||
F: lib/acpi/
|
||||
|
||||
ALIST:
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
F: include/alist.h
|
||||
F: lib/alist.c
|
||||
F: test/lib/alist.c
|
||||
|
||||
ANDROID AB
|
||||
M: Mattijs Korpershoek <mkorpershoek@kernel.org>
|
||||
R: Igor Opaniuk <igor.opaniuk@gmail.com>
|
||||
M: Igor Opaniuk <igor.opaniuk@gmail.com>
|
||||
M: Mattijs Korpershoek <mkorpershoek@baylibre.com>
|
||||
R: Sam Protsenko <semen.protsenko@linaro.org>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-dfu.git
|
||||
F: boot/android_ab.c
|
||||
F: cmd/ab_select.c
|
||||
F: doc/android/ab.rst
|
||||
F: include/android_ab.h
|
||||
F: test/py/tests/test_android/test_ab.py
|
||||
|
||||
ANDROID AVB
|
||||
M: Mattijs Korpershoek <mkorpershoek@kernel.org>
|
||||
R: Igor Opaniuk <igor.opaniuk@gmail.com>
|
||||
M: Igor Opaniuk <igor.opaniuk@gmail.com>
|
||||
M: Mattijs Korpershoek <mkorpershoek@baylibre.com>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-dfu.git
|
||||
F: cmd/avb.c
|
||||
@@ -151,13 +145,10 @@ F: cmd/arm/
|
||||
ARM ALTERA SOCFPGA
|
||||
M: Marek Vasut <marex@denx.de>
|
||||
M: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
|
||||
M: Tien Fong Chee <tien.fong.chee@altera.com>
|
||||
M: Tingting Meng <tingting.meng@altera.com>
|
||||
M: Tien Fong Chee <tien.fong.chee@intel.com>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-socfpga.git
|
||||
F: drivers/ddr/altera/
|
||||
F: arch/arm/mach-socfpga/
|
||||
F: configs/socfpga_agilex5_vab_defconfig
|
||||
F: drivers/sysreset/sysreset_socfpga*
|
||||
|
||||
ARM AMLOGIC SOC SUPPORT
|
||||
@@ -297,7 +288,7 @@ F: test/cmd/armffa.c
|
||||
F: test/dm/ffa.c
|
||||
|
||||
ARM FREESCALE IMX
|
||||
M: Stefano Babic <sbabic@nabladev.com>
|
||||
M: Stefano Babic <sbabic@denx.de>
|
||||
M: Fabio Estevam <festevam@gmail.com>
|
||||
R: NXP i.MX U-Boot Team <uboot-imx@nxp.com>
|
||||
S: Maintained
|
||||
@@ -315,8 +306,6 @@ F: arch/arm/include/asm/mach-imx/
|
||||
F: board/freescale/*mx*/
|
||||
F: board/freescale/common/
|
||||
F: common/spl/spl_imx_container.c
|
||||
F: doc/imx/
|
||||
F: drivers/mailbox/imx-mailbox.c
|
||||
F: drivers/serial/serial_mxc.c
|
||||
F: include/imx_container.h
|
||||
|
||||
@@ -344,16 +333,17 @@ F: drivers/spi/gxp_spi.c
|
||||
|
||||
ARM IPQ40XX
|
||||
M: Robert Marko <robert.marko@sartura.hr>
|
||||
M: Luka Kovacic <luka.kovacic@sartura.hr>
|
||||
M: Luka Perkov <luka.perkov@sartura.hr>
|
||||
S: Maintained
|
||||
F: arch/arm/mach-ipq40xx/
|
||||
F: include/dt-bindings/clock/qcom,gcc-ipq4019.h
|
||||
F: drivers/clk/qcom/clock-ipq4019.c
|
||||
F: include/dt-bindings/clock/qcom,ipq4019-gcc.h
|
||||
F: include/dt-bindings/reset/qcom,ipq4019-reset.h
|
||||
F: drivers/reset/reset-ipq4019.c
|
||||
F: drivers/phy/phy-qcom-ipq4019-usb.c
|
||||
F: drivers/spi/spi-qup.c
|
||||
F: drivers/net/mdio-ipq4019.c
|
||||
F: drivers/rng/msm_rng.c
|
||||
F: drivers/pinctrl/qcom/pinctrl-ipq4019.c
|
||||
|
||||
ARM LAYERSCAPE SFP
|
||||
M: Sean Anderson <sean.anderson@seco.com>
|
||||
@@ -366,7 +356,7 @@ S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-marvell.git
|
||||
F: arch/arm/mach-kirkwood/
|
||||
F: arch/arm/mach-mvebu/
|
||||
F: drivers/ata/ahci_generic.c
|
||||
F: drivers/ata/ahci_mvebu.c
|
||||
F: drivers/clk/mvebu/
|
||||
F: drivers/ddr/marvell/
|
||||
F: drivers/gpio/mvebu_gpio.c
|
||||
@@ -390,14 +380,6 @@ T: git https://source.denx.de/u-boot/custodians/u-boot-marvell.git
|
||||
F: drivers/pci/pci-aardvark.c
|
||||
F: drivers/pci/pci_mvebu.c
|
||||
|
||||
ARM MARVELL PXA1908
|
||||
M: Duje Mihanović <duje.mihanovic@skole.hr>
|
||||
S: Maintained
|
||||
T: git git://git.dujemihanovic.xyz/u-boot.git
|
||||
F: arch/arm/dts/pxa1908*
|
||||
F: arch/arm/mach-mmp/
|
||||
F: include/configs/pxa1908.h
|
||||
|
||||
ARM MARVELL SERIAL DRIVERS
|
||||
M: Pali Rohár <pali@kernel.org>
|
||||
M: Stefan Roese <sr@denx.de>
|
||||
@@ -424,13 +406,9 @@ F: drivers/mmc/mtk-sd.c
|
||||
F: drivers/phy/phy-mtk-*
|
||||
F: drivers/pinctrl/mediatek/
|
||||
F: drivers/power/domain/mtk-power-domain.c
|
||||
F: drivers/pci/pcie_mediatek_gen3.c
|
||||
F: drivers/pci/pcie_mediatek.c
|
||||
F: drivers/pwm/pwm-mtk.c
|
||||
F: drivers/ram/mediatek/
|
||||
F: drivers/spi/mtk_snfi_spi.c
|
||||
F: drivers/spi/mtk_spim.c
|
||||
F: drivers/spi/mtk_snor.c
|
||||
F: drivers/timer/mtk_timer.c
|
||||
F: drivers/usb/host/xhci-mtk.c
|
||||
F: drivers/usb/mtu3/
|
||||
@@ -438,7 +416,6 @@ F: drivers/watchdog/mtk_wdt.c
|
||||
F: drivers/net/mtk_eth.c
|
||||
F: drivers/net/mtk_eth.h
|
||||
F: drivers/reset/reset-mediatek.c
|
||||
F: drivers/serial/serial_mtk.c
|
||||
F: include/dt-bindings/clock/mediatek,*
|
||||
F: include/dt-bindings/power/mediatek,*
|
||||
F: tools/mtk_image.c
|
||||
@@ -556,7 +533,6 @@ F: arch/arm/include/asm/arch-rockchip/
|
||||
F: arch/arm/mach-rockchip/
|
||||
F: board/amarula/vyasa-rk3288/
|
||||
F: board/anbernic/rgxx3_rk3566/
|
||||
F: board/armsom/sige7-rk3588/
|
||||
F: board/chipspark/popmetal_rk3288
|
||||
F: board/engicam/px30_core/
|
||||
F: board/firefly/
|
||||
@@ -617,51 +593,13 @@ R: Marc Murphy <marc.murphy@sancloud.com>
|
||||
S: Supported
|
||||
F: arch/arm/dts/am335x-sancloud*
|
||||
|
||||
ARM SC5XX
|
||||
M: Nathan Barrett-Morrison <nathan.morrison@timesys.com>
|
||||
M: Greg Malysa <malysagreg@gmail.com>
|
||||
M: Ian Roberts <ian.roberts@timesys.com>
|
||||
M: Vasileios Bimpikas <vasileios.bimpikas@analog.com>
|
||||
M: Utsav Agarwal <utsav.agarwal@analog.com>
|
||||
M: Arturs Artamonovs <arturs.artamonovs@analog.com>
|
||||
L: adsp-linux@analog.com
|
||||
S: Supported
|
||||
T: git https://github.com/analogdevicesinc/lnxdsp-u-boot
|
||||
F: arch/arm/dts/sc5*
|
||||
F: arch/arm/include/asm/arch-adi/
|
||||
F: arch/arm/mach-sc5xx/
|
||||
F: board/adi/
|
||||
F: doc/device-tree-bindings/arm/adi/adi,sc5xx.yaml
|
||||
F: doc/device-tree-bindings/clock/adi,sc5xx-clocks.yaml
|
||||
F: doc/device-tree-bindings/pinctrl/adi,adsp-pinctrl.yaml
|
||||
F: doc/device-tree-bindings/timer/adi,sc5xx-gptimer.yaml
|
||||
F: drivers/clk/adi/
|
||||
F: drivers/dma/adi_dma.c
|
||||
F: drivers/gpio/adp5588_gpio.c
|
||||
F: drivers/gpio/gpio-adi-adsp.c
|
||||
F: drivers/i2c/adi_i2c.c
|
||||
F: drivers/mmc/adi_sdhci.c
|
||||
F: drivers/net/dwc_eth_qos_adi.c
|
||||
F: drivers/pinctrl/pinctrl-adi-adsp.c
|
||||
F: drivers/remoteproc/adi_sc5xx_rproc.c
|
||||
F: drivers/serial/serial_adi_uart4.c
|
||||
F: drivers/spi/adi_spi3.c
|
||||
F: drivers/timer/adi_sc5xx_timer.c
|
||||
F: drivers/usb/musb-new/sc5xx.c
|
||||
F: drivers/watchdog/adi_wdt.c
|
||||
F: include/configs/sc5*
|
||||
F: include/dt-bindings/pinctrl/adi-adsp.h
|
||||
F: include/env/adi/
|
||||
|
||||
ARM SNAPDRAGON
|
||||
M: Caleb Connolly <caleb.connolly@linaro.org>
|
||||
M: Neil Armstrong <neil.armstrong@linaro.org>
|
||||
R: Sumit Garg <sumit.garg@kernel.org>
|
||||
R: Sumit Garg <sumit.garg@linaro.org>
|
||||
L: u-boot-qcom@groups.io
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-snapdragon.git
|
||||
F: configs/qcm6490_defconfig
|
||||
F: configs/qcs9100_defconfig
|
||||
F: drivers/*/*/pm8???-*
|
||||
F: drivers/gpio/msm_gpio.c
|
||||
F: drivers/mmc/msm_sdhci.c
|
||||
@@ -688,7 +626,8 @@ F: drivers/reset/sti-reset.c
|
||||
F: drivers/serial/serial_sti_asc.c
|
||||
F: drivers/sysreset/sysreset_sti.c
|
||||
F: drivers/timer/arm_global_timer.c
|
||||
F: drivers/usb/host/dwc3-sti.c
|
||||
F: drivers/usb/host/dwc3-sti-glue.c
|
||||
F: include/dwc3-sti-glue.h
|
||||
F: include/dt-bindings/clock/stih407-clks.h
|
||||
F: include/dt-bindings/clock/stih410-clks.h
|
||||
F: include/dt-bindings/reset/stih407-resets.h
|
||||
@@ -776,7 +715,6 @@ F: arch/arm/mach-omap2/
|
||||
F: arch/arm/include/asm/arch-omap*/
|
||||
F: arch/arm/include/asm/ti-common/
|
||||
F: board/ti/
|
||||
F: doc/board/ti/
|
||||
F: drivers/dma/ti*
|
||||
F: drivers/dma/ti*/
|
||||
F: drivers/firmware/ti_sci.*
|
||||
@@ -784,7 +722,6 @@ F: drivers/gpio/omap_gpio.c
|
||||
F: drivers/memory/ti-aemif.c
|
||||
F: drivers/misc/k3_avs.c
|
||||
F: drivers/mailbox/k3-sec-procy.c
|
||||
F: drivers/pci/pcie_cdns_ti.c
|
||||
F: drivers/pci/pcie_dw_ti.c
|
||||
F: drivers/phy/keystone-usb-phy.c
|
||||
F: drivers/phy/omap-usb2-phy.c
|
||||
@@ -890,7 +827,6 @@ M: Michal Simek <michal.simek@amd.com>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-microblaze.git
|
||||
F: arch/arm/mach-zynqmp/
|
||||
F: drivers/bootcount/bootcount_zynqmp.c
|
||||
F: drivers/clk/clk_zynqmp.c
|
||||
F: driver/firmware/firmware-zynqmp.c
|
||||
F: drivers/fpga/zynqpl.c
|
||||
@@ -954,7 +890,6 @@ BINMAN
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
M: Alper Nebi Yasak <alpernebiyasak@gmail.com>
|
||||
S: Maintained
|
||||
F: doc/develop/binman_tests.rst
|
||||
F: tools/binman/
|
||||
|
||||
BLKMAP
|
||||
@@ -966,7 +901,7 @@ F: drivers/block/blkmap.c
|
||||
F: include/blkmap.h
|
||||
F: test/dm/blkmap.c
|
||||
|
||||
BOOTSTD
|
||||
BOOTDEVICE
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
F: boot/bootdev*.c
|
||||
@@ -975,7 +910,7 @@ F: boot/bootmeth*.c
|
||||
F: boot/bootstd.c
|
||||
F: cmd/bootdev.c
|
||||
F: cmd/bootflow.c
|
||||
F: doc/develop/bootstd/
|
||||
F: doc/develop/bootstd.rst
|
||||
F: doc/usage/bootdev.rst
|
||||
F: doc/usage/bootflow.rst
|
||||
F: doc/usage/bootmeth.rst
|
||||
@@ -987,14 +922,6 @@ F: include/bootstd.h
|
||||
F: net/eth_bootdevice.c
|
||||
F: test/boot/
|
||||
|
||||
BOOTMETH_ANDROID
|
||||
M: Mattijs Korpershoek <mkorpershoek@kernel.org>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-dfu.git
|
||||
F: boot/bootmeth_android.c
|
||||
F: boot/bootmeth_android.h
|
||||
F: doc/develop/bootstd/android.rst
|
||||
|
||||
BTRFS
|
||||
M: Marek Behún <kabel@kernel.org>
|
||||
R: Qu Wenruo <wqu@suse.com>
|
||||
@@ -1045,13 +972,6 @@ F: arch/m68k/
|
||||
F: doc/arch/m68k.rst
|
||||
F: drivers/watchdog/mcf_wdt.c
|
||||
|
||||
CPU
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
M: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
|
||||
S: Maintained
|
||||
F: cmd/cpu.c
|
||||
F: doc/usage/cpu.rst
|
||||
|
||||
CYCLIC
|
||||
M: Stefan Roese <sr@denx.de>
|
||||
S: Maintained
|
||||
@@ -1060,14 +980,13 @@ F: common/cyclic.c
|
||||
F: include/cyclic.h
|
||||
|
||||
DEVICETREE REBASING SUBTREE
|
||||
M: Sumit Garg <sumit.garg@kernel.org>
|
||||
M: Sumit Garg <sumit.garg@linaro.org>
|
||||
S: Maintained
|
||||
F: dts/upstream/
|
||||
N: OF_UPSTREAM
|
||||
|
||||
DFU
|
||||
M: Lukasz Majewski <lukma@denx.de>
|
||||
M: Mattijs Korpershoek <mkorpershoek@kernel.org>
|
||||
M: Mattijs Korpershoek <mkorpershoek@baylibre.com>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-dfu.git
|
||||
F: cmd/dfu.c
|
||||
@@ -1179,7 +1098,7 @@ F: test/common/event.c
|
||||
F: test/py/tests/test_event_dump.py
|
||||
|
||||
FASTBOOT
|
||||
M: Mattijs Korpershoek <mkorpershoek@kernel.org>
|
||||
M: Mattijs Korpershoek <mkorpershoek@baylibre.com>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-dfu.git
|
||||
F: cmd/fastboot.c
|
||||
@@ -1227,14 +1146,6 @@ T: git https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq.git
|
||||
F: drivers/watchdog/sp805_wdt.c
|
||||
F: drivers/watchdog/sbsa_gwdt.c
|
||||
|
||||
FWU Multi Bank Update
|
||||
M: Sughosh Ganu <sughosh.ganu@linaro.org>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-efi.git
|
||||
F: lib/fwu_updates/*
|
||||
F: drivers/fwu-mdata/*
|
||||
F: tools/mkfwumdata.c
|
||||
|
||||
GATEWORKS_SC
|
||||
M: Tim Harvey <tharvey@gateworks.com>
|
||||
S: Maintained
|
||||
@@ -1282,13 +1193,6 @@ T: git git://github.com/ARM-software/u-boot.git
|
||||
F: drivers/video/mali_dp.c
|
||||
F: drivers/i2c/i2c-versatile.c
|
||||
|
||||
MEMBUF
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/u-boot.git
|
||||
F: include/membuf.h
|
||||
F: lib/membuf.c
|
||||
|
||||
MICROBLAZE
|
||||
M: Michal Simek <monstr@monstr.eu>
|
||||
S: Maintained
|
||||
@@ -1406,17 +1310,6 @@ F: drivers/net/
|
||||
F: include/net.h
|
||||
F: net/
|
||||
|
||||
NETWORK (LWIP)
|
||||
M: Jerome Forissier <jerome.forissier@linaro.org>
|
||||
S: Maintained
|
||||
F: cmd/net-lwip.c
|
||||
F: configs/qemu_arm64_lwip_defconfig
|
||||
F: drivers/net/sandbox-lwip.c
|
||||
F: include/net-lwip.h
|
||||
F: lib/lwip/Makefile
|
||||
F: lib/lwip/u-boot/
|
||||
F: net/lwip/
|
||||
|
||||
NIOS
|
||||
M: Thomas Chou <thomas@wytron.com.tw>
|
||||
S: Maintained
|
||||
@@ -1476,7 +1369,7 @@ S: Maintained
|
||||
F: tools/patman/
|
||||
|
||||
PCIe DWC IMX
|
||||
M: Sumit Garg <sumit.garg@kernel.org>
|
||||
M: Sumit Garg <sumit.garg@linaro.org>
|
||||
S: Maintained
|
||||
F: drivers/pci/pcie_dw_imx.c
|
||||
F: drivers/phy/phy-imx8m-pcie.c
|
||||
@@ -1590,7 +1483,6 @@ SANDBOX
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
F: arch/sandbox/
|
||||
F: configs/sandbox*
|
||||
F: doc/arch/sandbox.rst
|
||||
F: drivers/*/*sandbox*.c
|
||||
F: include/dt-bindings/*/sandbox*.h
|
||||
@@ -1651,7 +1543,6 @@ F: drivers/mtd/nand/spi/
|
||||
SPI-NOR
|
||||
M: Jagan Teki <jagan@amarulasolutions.com>
|
||||
M: Vignesh R <vigneshr@ti.com>
|
||||
R: Tudor Ambarus <tudor.ambarus@linaro.org>
|
||||
S: Maintained
|
||||
F: drivers/mtd/spi/
|
||||
F: include/spi_flash.h
|
||||
@@ -1717,7 +1608,6 @@ F: arch/arm/mach-omap2/sec-common.c
|
||||
F: arch/arm/mach-omap2/config_secure.mk
|
||||
F: arch/arm/mach-k3/security.c
|
||||
F: configs/am335x_hs_evm_defconfig
|
||||
F: configs/am335x_hs_evm_spi_defconfig
|
||||
F: configs/am335x_hs_evm_uart_defconfig
|
||||
F: configs/am43xx_hs_evm_defconfig
|
||||
F: configs/am43xx_hs_evm_qspi_defconfig
|
||||
@@ -1737,7 +1627,6 @@ T: git https://source.denx.de/u-boot/custodians/u-boot-tpm.git
|
||||
F: cmd/tpm*
|
||||
F: drivers/tpm/
|
||||
F: include/tpm*
|
||||
F: lib/tpm*
|
||||
|
||||
TQ GROUP
|
||||
#M: Martin Krause <martin.krause@tq-systems.de>
|
||||
@@ -1774,31 +1663,12 @@ S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-ubi.git
|
||||
F: drivers/mtd/ubi/
|
||||
|
||||
UFETCH
|
||||
M: Caleb Connolly <caleb.connolly@linaro.org>
|
||||
S: Maintained
|
||||
F: cmd/ufetch.c
|
||||
|
||||
UFS
|
||||
M: Neil Armstrong <neil.armstrong@linaro.org>
|
||||
M: Bhupesh Sharma <bhupesh.linux@gmail.com>
|
||||
M: Neha Malcom Francis <n-francis@ti.com>
|
||||
S: Maintained
|
||||
F: drivers/ufs/
|
||||
|
||||
UPL
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
T: git https://source.denx.de/u-boot/custodians/u-boot-dm.git
|
||||
F: boot/upl*
|
||||
F: cmd/upl.c
|
||||
F: common/spl/spl_upl.c
|
||||
F: doc/usage/upl.rst
|
||||
F: doc/usage/cmd/upl.rst
|
||||
F: include/upl.h
|
||||
F: test/boot/upl.c
|
||||
F: test/py/tests/test_upl.py
|
||||
|
||||
USB
|
||||
M: Marek Vasut <marex@denx.de>
|
||||
S: Maintained
|
||||
@@ -1809,15 +1679,6 @@ F: common/usb_kbd.c
|
||||
F: common/usb_storage.c
|
||||
F: include/usb.h
|
||||
|
||||
USB TCPM
|
||||
M: Sebastian Reichel <sebastian.reichel@collabora.com>
|
||||
S: Maintained
|
||||
F: cmd/tcpm.c
|
||||
F: doc/usage/cmd/tcpm.rst
|
||||
F: drivers/usb/tcpm/
|
||||
F: include/usb/pd.h
|
||||
F: include/usb/tcpm.h
|
||||
|
||||
USB xHCI
|
||||
M: Bin Meng <bmeng.cn@gmail.com>
|
||||
S: Maintained
|
||||
@@ -1825,27 +1686,11 @@ T: git https://source.denx.de/u-boot/custodians/u-boot-usb.git topic-xhci
|
||||
F: drivers/usb/host/xhci*
|
||||
F: include/usb/xhci.h
|
||||
|
||||
UTHREAD
|
||||
M: Jerome Forissier <jerome.forissier@linaro.org>
|
||||
S: Maintained
|
||||
F: cmd/spawn.c
|
||||
F: include/uthread.h
|
||||
F: lib/uthread.c
|
||||
F: test/cmd/spawn.c
|
||||
F: test/lib/uthread.c
|
||||
|
||||
UUID testing
|
||||
M: Abdellatif El Khlifi <abdellatif.elkhlifi@arm.com>
|
||||
S: Maintained
|
||||
F: test/lib/uuid.c
|
||||
|
||||
VBE
|
||||
M: Simon Glass <sjg@chromium.org>
|
||||
S: Maintained
|
||||
F: boot/vbe*
|
||||
F: common/spl_reloc.c
|
||||
F: include/vbe.h
|
||||
|
||||
VIDEO
|
||||
M: Anatolij Gustschin <agust@denx.de>
|
||||
S: Maintained
|
||||
|
152
Makefile
152
Makefile
@@ -1,9 +1,9 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
VERSION = 2025
|
||||
VERSION = 2024
|
||||
PATCHLEVEL = 07
|
||||
SUBLEVEL =
|
||||
EXTRAVERSION = -rc4
|
||||
EXTRAVERSION = -rc5
|
||||
NAME =
|
||||
|
||||
# *DOCUMENTATION*
|
||||
@@ -21,7 +21,7 @@ include include/host_arch.h
|
||||
ifeq ("", "$(CROSS_COMPILE)")
|
||||
MK_ARCH="${shell uname -m}"
|
||||
else
|
||||
MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^\(.*ccache\)\{0,1\}[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\3/p'}"
|
||||
MK_ARCH="${shell echo $(CROSS_COMPILE) | sed -n 's/^[[:space:]]*\([^\/]*\/\)*\([^-]*\)-[^[:space:]]*/\2/p'}"
|
||||
endif
|
||||
unexport HOST_ARCH
|
||||
ifeq ("x86_64", $(MK_ARCH))
|
||||
@@ -30,7 +30,7 @@ else ifneq (,$(findstring $(MK_ARCH), "i386" "i486" "i586" "i686"))
|
||||
export HOST_ARCH=$(HOST_ARCH_X86)
|
||||
else ifneq (,$(findstring $(MK_ARCH), "aarch64" "armv8l"))
|
||||
export HOST_ARCH=$(HOST_ARCH_AARCH64)
|
||||
else ifneq (,$(findstring $(MK_ARCH), "arm" "armv5tel" "armv6l" "armv7" "armv7a" "armv7l"))
|
||||
else ifneq (,$(findstring $(MK_ARCH), "arm" "armv7" "armv7a" "armv7l"))
|
||||
export HOST_ARCH=$(HOST_ARCH_ARM)
|
||||
else ifeq ("riscv32", $(MK_ARCH))
|
||||
export HOST_ARCH=$(HOST_ARCH_RISCV32)
|
||||
@@ -406,7 +406,6 @@ LDR = $(CROSS_COMPILE)ldr
|
||||
STRIP = $(CROSS_COMPILE)strip
|
||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||
OBJDUMP = $(CROSS_COMPILE)objdump
|
||||
READELF = $(CROSS_COMPILE)readelf
|
||||
LEX = flex
|
||||
YACC = bison
|
||||
AWK = awk
|
||||
@@ -625,7 +624,7 @@ include/config/%.conf: $(KCONFIG_CONFIG) include/config/auto.conf.cmd
|
||||
@# Otherwise, 'make silentoldconfig' would be invoked twice.
|
||||
$(Q)touch include/config/auto.conf
|
||||
|
||||
u-boot.cfg spl/u-boot.cfg tpl/u-boot.cfg vpl/u-boot.cfg:
|
||||
u-boot.cfg spl/u-boot.cfg tpl/u-boot.cfg:
|
||||
$(Q)$(MAKE) -f $(srctree)/scripts/Makefile.autoconf $(@)
|
||||
|
||||
-include include/autoconf.mk
|
||||
@@ -821,7 +820,6 @@ KBUILD_AFLAGS += $(KAFLAGS)
|
||||
KBUILD_CFLAGS += $(KCFLAGS)
|
||||
|
||||
KBUILD_LDFLAGS += -z noexecstack
|
||||
KBUILD_LDFLAGS += -z norelro
|
||||
KBUILD_LDFLAGS += $(call ld-option,--no-warn-rwx-segments)
|
||||
|
||||
KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g)
|
||||
@@ -831,22 +829,14 @@ KBUILD_HOSTCFLAGS += $(if $(CONFIG_TOOLS_DEBUG),-g)
|
||||
UBOOTINCLUDE := \
|
||||
-Iinclude \
|
||||
$(if $(KBUILD_SRC), -I$(srctree)/include) \
|
||||
$(if $(CONFIG_$(XPL_)MBEDTLS_LIB), \
|
||||
"-DMBEDTLS_CONFIG_FILE=\"mbedtls_def_config.h\"" \
|
||||
-I$(srctree)/lib/mbedtls \
|
||||
-I$(srctree)/lib/mbedtls/port \
|
||||
-I$(srctree)/lib/mbedtls/external/mbedtls \
|
||||
-I$(srctree)/lib/mbedtls/external/mbedtls/include) \
|
||||
$(if $(CONFIG_$(PHASE_)SYS_THUMB_BUILD), \
|
||||
$(if $(CONFIG_$(SPL_)SYS_THUMB_BUILD), \
|
||||
$(if $(CONFIG_HAS_THUMB2), \
|
||||
$(if $(CONFIG_CPU_V7M), \
|
||||
-I$(srctree)/arch/arm/thumb1/include), \
|
||||
-I$(srctree)/arch/arm/thumb1/include)) \
|
||||
-I$(srctree)/arch/$(ARCH)/include \
|
||||
-include $(srctree)/include/linux/kconfig.h \
|
||||
-I$(srctree)/dts/upstream/include \
|
||||
$(if $(CONFIG_NET_LWIP), -I$(srctree)/lib/lwip/lwip/src/include \
|
||||
-I$(srctree)/lib/lwip/u-boot)
|
||||
-I$(srctree)/dts/upstream/include
|
||||
|
||||
NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
|
||||
|
||||
@@ -869,17 +859,18 @@ libs-$(CONFIG_OF_EMBED) += dts/
|
||||
libs-y += env/
|
||||
libs-y += lib/
|
||||
libs-y += fs/
|
||||
libs-$(filter y,$(CONFIG_NET) $(CONFIG_NET_LWIP)) += net/
|
||||
libs-y += net/
|
||||
libs-y += disk/
|
||||
libs-y += drivers/
|
||||
libs-$(CONFIG_SYS_FSL_DDR) += drivers/ddr/fsl/
|
||||
libs-$(CONFIG_SYS_FSL_MMDC) += drivers/ddr/fsl/
|
||||
libs-$(CONFIG_$(PHASE_)ALTERA_SDRAM) += drivers/ddr/altera/
|
||||
libs-$(CONFIG_$(SPL_)ALTERA_SDRAM) += drivers/ddr/altera/
|
||||
libs-y += drivers/usb/cdns3/
|
||||
libs-y += drivers/usb/dwc3/
|
||||
libs-y += drivers/usb/common/
|
||||
libs-y += drivers/usb/emul/
|
||||
libs-y += drivers/usb/eth/
|
||||
libs-$(CONFIG_USB_DEVICE) += drivers/usb/gadget/
|
||||
libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/
|
||||
libs-$(CONFIG_USB_GADGET) += drivers/usb/gadget/udc/
|
||||
libs-y += drivers/usb/host/
|
||||
@@ -888,12 +879,14 @@ libs-y += drivers/usb/musb/
|
||||
libs-y += drivers/usb/musb-new/
|
||||
libs-y += drivers/usb/isp1760/
|
||||
libs-y += drivers/usb/phy/
|
||||
libs-y += drivers/usb/tcpm/
|
||||
libs-y += drivers/usb/ulpi/
|
||||
ifdef CONFIG_POST
|
||||
libs-y += post/
|
||||
endif
|
||||
libs-$(CONFIG_$(PHASE_)UNIT_TEST) += test/
|
||||
libs-$(CONFIG_$(SPL_TPL_)UNIT_TEST) += test/
|
||||
libs-$(CONFIG_UT_ENV) += test/env/
|
||||
libs-$(CONFIG_UT_OPTEE) += test/optee/
|
||||
libs-$(CONFIG_UT_OVERLAY) += test/overlay/
|
||||
|
||||
libs-y += $(if $(wildcard $(srctree)/board/$(BOARDDIR)/Makefile),board/$(BOARDDIR)/)
|
||||
|
||||
@@ -1017,10 +1010,8 @@ INPUTS-$(CONFIG_EFI_STUB) += u-boot-payload.efi
|
||||
|
||||
# Generate this input file for binman
|
||||
ifeq ($(CONFIG_SPL),)
|
||||
ifneq ($(patsubst "%",%,$(CONFIG_MTK_BROM_HEADER_INFO)),)
|
||||
INPUTS-$(CONFIG_ARCH_MEDIATEK) += u-boot-mtk.bin
|
||||
endif
|
||||
endif
|
||||
|
||||
# Add optional build target if defined in board/cpu/soc headers
|
||||
ifneq ($(CONFIG_BUILD_TARGET),)
|
||||
@@ -1057,7 +1048,7 @@ endif
|
||||
CHECKFLAGS += --arch=$(ARCH)
|
||||
|
||||
# insure the checker run with the right endianness
|
||||
CHECKFLAGS += $(if $(CONFIG_SYS_BIG_ENDIAN),-mbig-endian,-mlittle-endian)
|
||||
CHECKFLAGS += $(if $(CONFIG_CPU_BIG_ENDIAN),-mbig-endian,-mlittle-endian)
|
||||
|
||||
# the checker needs the correct machine size
|
||||
CHECKFLAGS += $(if $(CONFIG_64BIT),-m64,-m32)
|
||||
@@ -1067,7 +1058,7 @@ quiet_cmd_objcopy = OBJCOPY $@
|
||||
cmd_objcopy = $(OBJCOPY) --gap-fill=0xff $(OBJCOPYFLAGS) \
|
||||
$(OBJCOPYFLAGS_$(@F)) $< $@
|
||||
|
||||
# Provide a version which does not do this, for use by EFI and hex/srec
|
||||
# Provide a version which does not do this, for use by EFI
|
||||
quiet_cmd_zobjcopy = OBJCOPY $@
|
||||
cmd_zobjcopy = $(OBJCOPY) $(OBJCOPYFLAGS) $(OBJCOPYFLAGS_$(@F)) $< $@
|
||||
|
||||
@@ -1148,6 +1139,13 @@ ifeq ($(CONFIG_OF_EMBED)$(CONFIG_EFI_APP),y)
|
||||
@echo >&2 "CONFIG_OF_SEPARATE for boards in mainline."
|
||||
@echo >&2 "See doc/develop/devicetree/control.rst for more info."
|
||||
@echo >&2 "===================================================="
|
||||
endif
|
||||
ifneq ($(CONFIG_SPL_FIT_GENERATOR),)
|
||||
@echo >&2 "===================== WARNING ======================"
|
||||
@echo >&2 "This board uses CONFIG_SPL_FIT_GENERATOR. Please migrate"
|
||||
@echo >&2 "to binman instead, to avoid the proliferation of"
|
||||
@echo >&2 "arch-specific scripts with no tests."
|
||||
@echo >&2 "===================================================="
|
||||
endif
|
||||
$(call deprecated,CONFIG_WDT,DM watchdog,v2019.10,\
|
||||
$(CONFIG_WATCHDOG)$(CONFIG_HW_WATCHDOG))
|
||||
@@ -1282,26 +1280,17 @@ OBJCOPYFLAGS_u-boot.hex := -O ihex
|
||||
OBJCOPYFLAGS_u-boot.srec := -O srec
|
||||
|
||||
u-boot.hex u-boot.srec: u-boot FORCE
|
||||
$(call if_changed,zobjcopy)
|
||||
$(call if_changed,objcopy)
|
||||
|
||||
OBJCOPYFLAGS_u-boot-elf.srec := $(OBJCOPYFLAGS_u-boot.srec)
|
||||
|
||||
ifeq ($(CONFIG_POSITION_INDEPENDENT)$(CONFIG_RCAR_GEN3),yy)
|
||||
# The flash_writer tool and previous recovery tools
|
||||
# require the SREC load address to be 0x5000_0000 .
|
||||
# The PIE U-Boot build sets the address to 0x0, so
|
||||
# override the address back to make u-boot-elf.srec
|
||||
# compatible with the recovery tools.
|
||||
OBJCOPYFLAGS_u-boot-elf.srec += --change-addresses=0x50000000
|
||||
endif
|
||||
|
||||
u-boot-elf.srec: u-boot.elf FORCE
|
||||
$(call if_changed,zobjcopy)
|
||||
$(call if_changed,objcopy)
|
||||
|
||||
OBJCOPYFLAGS_u-boot-spl.srec = $(OBJCOPYFLAGS_u-boot.srec)
|
||||
|
||||
spl/u-boot-spl.srec: spl/u-boot-spl FORCE
|
||||
$(call if_changed,zobjcopy)
|
||||
$(call if_changed,objcopy)
|
||||
|
||||
%.scif: %.srec
|
||||
$(Q)$(MAKE) $(build)=arch/arm/mach-renesas $@
|
||||
@@ -1378,41 +1367,17 @@ u-boot.ldr: u-boot
|
||||
# ---------------------------------------------------------------------------
|
||||
# Use 'make BINMAN_DEBUG=1' to enable debugging
|
||||
# Use 'make BINMAN_VERBOSE=3' to set vebosity level
|
||||
|
||||
ifneq ($(EXT_DTB),)
|
||||
ext_dtb_list := $(basename $(notdir $(EXT_DTB)))
|
||||
default_dt := $(firstword $(ext_dtb_list))
|
||||
of_list := "$(ext_dtb_list)"
|
||||
of_list_dirs := $(dir $(EXT_DTB))
|
||||
else
|
||||
of_list := $(CONFIG_OF_LIST)
|
||||
ifneq ($(CONFIG_OF_UPSTREAM_INCLUDE_LOCAL_FALLBACK_DTBOS),)
|
||||
of_list_dirs := $(dt_dir) arch/$(ARCH)/dts
|
||||
else
|
||||
of_list_dirs := $(dt_dir)
|
||||
endif
|
||||
default_dt := $(if $(DEVICE_TREE),$(DEVICE_TREE),$(CONFIG_DEFAULT_DEVICE_TREE))
|
||||
endif
|
||||
|
||||
binman_dtb := $(shell echo $(CONFIG_BINMAN_DTB))
|
||||
ifeq ($(strip $(binman_dtb)),)
|
||||
ifeq ($(CONFIG_OF_EMBED),y)
|
||||
binman_dtb = ./dts/dt.dtb
|
||||
else
|
||||
binman_dtb = ./u-boot.dtb
|
||||
endif
|
||||
endif
|
||||
|
||||
quiet_cmd_binman = BINMAN $@
|
||||
cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
|
||||
$(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \
|
||||
--toolpath $(objtree)/tools \
|
||||
$(if $(BINMAN_VERBOSE),-v$(BINMAN_VERBOSE)) \
|
||||
build -u -d $(binman_dtb) -O . -m \
|
||||
--allow-missing --fake-ext-blobs \
|
||||
$(if $(BINMAN_ALLOW_MISSING),--ignore-missing) \
|
||||
build -u -d u-boot.dtb -O . -m \
|
||||
--allow-missing $(if $(BINMAN_ALLOW_MISSING),--ignore-missing) \
|
||||
-I . -I $(srctree) -I $(srctree)/board/$(BOARDDIR) \
|
||||
$(foreach f,$(of_list_dirs),-I $(f)) -a of-list=$(of_list) \
|
||||
-I $(dt_dir) -a of-list=$(CONFIG_OF_LIST) \
|
||||
$(foreach f,$(BINMAN_INDIRS),-I $(f)) \
|
||||
-a atf-bl31-path=${BL31} \
|
||||
-a tee-os-path=${TEE} \
|
||||
@@ -1423,12 +1388,9 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \
|
||||
-a rockchip-tpl-path=$(ROCKCHIP_TPL) \
|
||||
-a spl-bss-pad=$(if $(CONFIG_SPL_SEPARATE_BSS),,1) \
|
||||
-a tpl-bss-pad=$(if $(CONFIG_TPL_SEPARATE_BSS),,1) \
|
||||
-a vpl-bss-pad=$(if $(CONFIG_VPL_SEPARATE_BSS),,1) \
|
||||
-a spl-dtb=$(CONFIG_SPL_OF_REAL) \
|
||||
-a tpl-dtb=$(CONFIG_TPL_OF_REAL) \
|
||||
-a vpl-dtb=$(CONFIG_VPL_OF_REAL) \
|
||||
-a pre-load-key-path=${PRE_LOAD_KEY_PATH} \
|
||||
-a of-spl-remove-props=$(CONFIG_OF_SPL_REMOVE_PROPS) \
|
||||
$(BINMAN_$(@F))
|
||||
|
||||
OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
|
||||
@@ -1436,7 +1398,24 @@ OBJCOPYFLAGS_u-boot.ldr.hex := -I binary -O ihex
|
||||
OBJCOPYFLAGS_u-boot.ldr.srec := -I binary -O srec
|
||||
|
||||
u-boot.ldr.hex u-boot.ldr.srec: u-boot.ldr FORCE
|
||||
$(call if_changed,zobjcopy)
|
||||
$(call if_changed,objcopy)
|
||||
|
||||
# Boards with more complex image requirements can provide an .its source file
|
||||
# or a generator script
|
||||
# NOTE: Please do not use this. We are migrating away from Makefile rules to use
|
||||
# binman instead.
|
||||
ifneq ($(CONFIG_SPL_FIT_SOURCE),"")
|
||||
U_BOOT_ITS := u-boot.its
|
||||
$(U_BOOT_ITS): $(subst ",,$(CONFIG_SPL_FIT_SOURCE))
|
||||
$(call if_changed,copy)
|
||||
else
|
||||
ifneq ($(CONFIG_USE_SPL_FIT_GENERATOR),)
|
||||
U_BOOT_ITS := u-boot.its
|
||||
$(U_BOOT_ITS): $(U_BOOT_ITS_DEPS) FORCE
|
||||
$(srctree)/$(CONFIG_SPL_FIT_GENERATOR) \
|
||||
$(patsubst %,$(dt_dir)/%.dtb,$(subst ",,$(CONFIG_OF_LIST))) > $@
|
||||
endif
|
||||
endif
|
||||
|
||||
ifdef CONFIG_SPL_LOAD_FIT
|
||||
MKIMAGEFLAGS_u-boot.img = -f auto -A $(ARCH) -T firmware -C none -O u-boot \
|
||||
@@ -1491,10 +1470,8 @@ u-boot.bin.lzma: u-boot.bin FORCE
|
||||
u-boot-lzma.img: u-boot.bin.lzma FORCE
|
||||
$(call if_changed,mkimage)
|
||||
|
||||
fit_image := $(if $(CONFIG_SANDBOX_VPL),u-boot,u-boot-nodtb.bin)
|
||||
|
||||
u-boot-dtb.img u-boot.img u-boot.kwb u-boot.pbl u-boot-ivt.img: \
|
||||
$(if $(CONFIG_SPL_LOAD_FIT),$(fit_image) \
|
||||
$(if $(CONFIG_SPL_LOAD_FIT),u-boot-nodtb.bin \
|
||||
$(if $(CONFIG_OF_SEPARATE)$(CONFIG_OF_EMBED)$(CONFIG_SANDBOX),dts/dt.dtb) \
|
||||
,$(UBOOT_BIN)) FORCE
|
||||
$(call if_changed,mkimage)
|
||||
@@ -1788,7 +1765,6 @@ endif
|
||||
ifeq ($(LTO_ENABLE),y)
|
||||
quiet_cmd_u-boot__ ?= LTO $@
|
||||
cmd_u-boot__ ?= \
|
||||
touch $(u-boot-main) ; \
|
||||
$(CC) -nostdlib -nostartfiles \
|
||||
$(LTO_FINAL_LDFLAGS) $(c_flags) \
|
||||
$(KBUILD_LDFLAGS:%=-Wl,%) $(LDFLAGS_u-boot:%=-Wl,%) -o $@ \
|
||||
@@ -1802,9 +1778,7 @@ quiet_cmd_u-boot__ ?= LTO $@
|
||||
$(if $(ARCH_POSTLINK), $(MAKE) -f $(ARCH_POSTLINK) $@, true)
|
||||
else
|
||||
quiet_cmd_u-boot__ ?= LD $@
|
||||
cmd_u-boot__ ?= \
|
||||
touch $(u-boot-main) ; \
|
||||
$(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_u-boot) -o $@ \
|
||||
cmd_u-boot__ ?= $(LD) $(KBUILD_LDFLAGS) $(LDFLAGS_u-boot) -o $@ \
|
||||
-T u-boot.lds $(u-boot-init) \
|
||||
--whole-archive \
|
||||
$(u-boot-main) \
|
||||
@@ -1862,10 +1836,9 @@ ENV_FILE := $(if $(ENV_SOURCE_FILE),$(ENV_FILE_CFG),$(wildcard $(ENV_FILE_BOARD)
|
||||
quiet_cmd_gen_envp = ENVP $@
|
||||
cmd_gen_envp = \
|
||||
if [ -s "$(ENV_FILE)" ]; then \
|
||||
$(CPP) -P $(cpp_flags) -x assembler-with-cpp -undef \
|
||||
$(CPP) -P $(CFLAGS) -x assembler-with-cpp -undef \
|
||||
-D__ASSEMBLY__ \
|
||||
-D__UBOOT_CONFIG__ \
|
||||
-DDEFAULT_DEVICE_TREE=$(subst ",,$(CONFIG_DEFAULT_DEVICE_TREE)) \
|
||||
-I . -I include -I $(srctree)/include \
|
||||
-include linux/kconfig.h -include include/config.h \
|
||||
-I$(srctree)/arch/$(ARCH)/include \
|
||||
@@ -1925,11 +1898,8 @@ $(filter-out tools, $(u-boot-dirs)): tools
|
||||
# is "yes"), so compile examples after U-Boot is compiled.
|
||||
examples: $(filter-out examples, $(u-boot-dirs))
|
||||
|
||||
# The setlocalversion script comes from linux and expects a
|
||||
# KERNELVERSION variable in the environment for figuring out which
|
||||
# annotated tags are relevant. Pass UBOOTVERSION.
|
||||
define filechk_uboot.release
|
||||
KERNELVERSION=$(UBOOTVERSION) $(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree)
|
||||
echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
|
||||
endef
|
||||
|
||||
# Store (new) UBOOTRELEASE string in include/config/uboot.release
|
||||
@@ -2116,7 +2086,7 @@ spl/u-boot-spl-dtb.hex: spl/u-boot-spl
|
||||
@:
|
||||
|
||||
spl/u-boot-spl: tools prepare $(if $(CONFIG_SPL_OF_CONTROL),dts/dt.dtb)
|
||||
$(Q)$(MAKE) obj=spl -f $(srctree)/scripts/Makefile.xpl all
|
||||
$(Q)$(MAKE) obj=spl -f $(srctree)/scripts/Makefile.spl all
|
||||
|
||||
spl/sunxi-spl.bin: spl/u-boot-spl
|
||||
@:
|
||||
@@ -2135,14 +2105,14 @@ tpl/u-boot-tpl.bin: tpl/u-boot-tpl
|
||||
$(TPL_SIZE_CHECK)
|
||||
|
||||
tpl/u-boot-tpl: tools prepare $(if $(CONFIG_TPL_OF_CONTROL),dts/dt.dtb)
|
||||
$(Q)$(MAKE) obj=tpl -f $(srctree)/scripts/Makefile.xpl all
|
||||
$(Q)$(MAKE) obj=tpl -f $(srctree)/scripts/Makefile.spl all
|
||||
|
||||
vpl/u-boot-vpl.bin: vpl/u-boot-vpl
|
||||
@:
|
||||
$(VPL_SIZE_CHECK)
|
||||
|
||||
vpl/u-boot-vpl: tools prepare $(if $(CONFIG_TPL_OF_CONTROL),dts/dt.dtb)
|
||||
$(Q)$(MAKE) obj=vpl -f $(srctree)/scripts/Makefile.xpl all
|
||||
$(Q)$(MAKE) obj=vpl -f $(srctree)/scripts/Makefile.spl all
|
||||
|
||||
TAG_SUBDIRS := $(patsubst %,$(srctree)/%,$(u-boot-dirs) include)
|
||||
|
||||
@@ -2177,7 +2147,7 @@ System.map: u-boot
|
||||
# ARM relocations should all be R_ARM_RELATIVE (32-bit) or
|
||||
# R_AARCH64_RELATIVE (64-bit).
|
||||
checkarmreloc: u-boot
|
||||
@RELOC="`$(READELF) -r -W $< | cut -d ' ' -f 4 | \
|
||||
@RELOC="`$(CROSS_COMPILE)readelf -r -W $< | cut -d ' ' -f 4 | \
|
||||
grep R_A | sort -u`"; \
|
||||
if test "$$RELOC" != "R_ARM_RELATIVE" -a \
|
||||
"$$RELOC" != "R_AARCH64_RELATIVE"; then \
|
||||
@@ -2231,8 +2201,7 @@ CLEAN_FILES += include/autoconf.mk* include/bmp_logo.h include/bmp_logo_data.h \
|
||||
itb.fit.fit itb.fit.itb itb.map spl.map mkimage-out.rom.mkimage \
|
||||
mkimage.rom.mkimage mkimage-in-simple-bin* rom.map simple-bin* \
|
||||
idbloader-spi.img lib/efi_loader/helloworld_efi.S *.itb \
|
||||
Test* capsule*.*.efi-capsule capsule*.map mkimage.imx-boot.spl \
|
||||
mkimage.imx-boot.u-boot mkimage-out.imx-boot.spl mkimage-out.imx-boot.u-boot
|
||||
Test* capsule.*.efi-capsule capsule*.map
|
||||
|
||||
# Directories & files removed with 'make mrproper'
|
||||
MRPROPER_DIRS += include/config include/generated spl tpl vpl \
|
||||
@@ -2241,7 +2210,7 @@ MRPROPER_DIRS += include/config include/generated spl tpl vpl \
|
||||
# Remove include/asm symlink created by U-Boot before v2014.01
|
||||
MRPROPER_FILES += .config .config.old include/autoconf.mk* include/config.h \
|
||||
ctags etags tags TAGS cscope* GPATH GTAGS GRTAGS GSYMS \
|
||||
drivers/video/fonts/*.S include/asm *imx8mimage* *imx8mcst*
|
||||
drivers/video/fonts/*.S include/asm
|
||||
|
||||
# clean - Delete most, but leave enough to build external modules
|
||||
#
|
||||
@@ -2448,8 +2417,7 @@ DOC_TARGETS := xmldocs latexdocs pdfdocs htmldocs epubdocs cleandocs \
|
||||
linkcheckdocs dochelp refcheckdocs texinfodocs infodocs
|
||||
PHONY += $(DOC_TARGETS)
|
||||
$(DOC_TARGETS): scripts_basic FORCE
|
||||
$(Q)PYTHONPATH=$(srctree)/test/py/tests:$(srctree)/test/py \
|
||||
$(MAKE) $(build)=doc $@
|
||||
$(Q)$(MAKE) $(build)=doc $@
|
||||
|
||||
PHONY += checkstack ubootrelease ubootversion
|
||||
|
||||
@@ -2458,7 +2426,7 @@ checkstack:
|
||||
$(PERL) $(src)/scripts/checkstack.pl $(ARCH)
|
||||
|
||||
ubootrelease:
|
||||
@$(filechk_uboot.release)
|
||||
@echo "$(UBOOTVERSION)$$($(CONFIG_SHELL) $(srctree)/scripts/setlocalversion $(srctree))"
|
||||
|
||||
ubootversion:
|
||||
@echo $(UBOOTVERSION)
|
||||
@@ -2518,7 +2486,7 @@ cmd_genenv = \
|
||||
sed -e '/^\s*$$/d' | \
|
||||
sort -t '=' -k 1,1 -s -o $@
|
||||
|
||||
u-boot-initial-env: scripts_basic $(version_h) $(env_h) include/config.h FORCE
|
||||
u-boot-initial-env: scripts_basic $(env_h) FORCE
|
||||
$(Q)$(MAKE) $(build)=tools $(objtree)/tools/printinitialenv
|
||||
$(call if_changed,genenv)
|
||||
|
||||
|
206
README
206
README
@@ -1,4 +1,4 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# (C) Copyright 2000 - 2013
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
@@ -133,6 +133,96 @@ run some of U-Boot's tests.
|
||||
|
||||
See doc/arch/sandbox/sandbox.rst for more details.
|
||||
|
||||
|
||||
Board Initialisation Flow:
|
||||
--------------------------
|
||||
|
||||
This is the intended start-up flow for boards. This should apply for both
|
||||
SPL and U-Boot proper (i.e. they both follow the same rules).
|
||||
|
||||
Note: "SPL" stands for "Secondary Program Loader," which is explained in
|
||||
more detail later in this file.
|
||||
|
||||
At present, SPL mostly uses a separate code path, but the function names
|
||||
and roles of each function are the same. Some boards or architectures
|
||||
may not conform to this. At least most ARM boards which use
|
||||
CONFIG_SPL_FRAMEWORK conform to this.
|
||||
|
||||
Execution typically starts with an architecture-specific (and possibly
|
||||
CPU-specific) start.S file, such as:
|
||||
|
||||
- arch/arm/cpu/armv7/start.S
|
||||
- arch/powerpc/cpu/mpc83xx/start.S
|
||||
- arch/mips/cpu/start.S
|
||||
|
||||
and so on. From there, three functions are called; the purpose and
|
||||
limitations of each of these functions are described below.
|
||||
|
||||
lowlevel_init():
|
||||
- purpose: essential init to permit execution to reach board_init_f()
|
||||
- no global_data or BSS
|
||||
- there is no stack (ARMv7 may have one but it will soon be removed)
|
||||
- must not set up SDRAM or use console
|
||||
- must only do the bare minimum to allow execution to continue to
|
||||
board_init_f()
|
||||
- this is almost never needed
|
||||
- return normally from this function
|
||||
|
||||
board_init_f():
|
||||
- purpose: set up the machine ready for running board_init_r():
|
||||
i.e. SDRAM and serial UART
|
||||
- global_data is available
|
||||
- stack is in SRAM
|
||||
- BSS is not available, so you cannot use global/static variables,
|
||||
only stack variables and global_data
|
||||
|
||||
Non-SPL-specific notes:
|
||||
- dram_init() is called to set up DRAM. If already done in SPL this
|
||||
can do nothing
|
||||
|
||||
SPL-specific notes:
|
||||
- you can override the entire board_init_f() function with your own
|
||||
version as needed.
|
||||
- preloader_console_init() can be called here in extremis
|
||||
- should set up SDRAM, and anything needed to make the UART work
|
||||
- there is no need to clear BSS, it will be done by crt0.S
|
||||
- for specific scenarios on certain architectures an early BSS *can*
|
||||
be made available (via CONFIG_SPL_EARLY_BSS by moving the clearing
|
||||
of BSS prior to entering board_init_f()) but doing so is discouraged.
|
||||
Instead it is strongly recommended to architect any code changes
|
||||
or additions such to not depend on the availability of BSS during
|
||||
board_init_f() as indicated in other sections of this README to
|
||||
maintain compatibility and consistency across the entire code base.
|
||||
- must return normally from this function (don't call board_init_r()
|
||||
directly)
|
||||
|
||||
Here the BSS is cleared. For SPL, if CONFIG_SPL_STACK_R is defined, then at
|
||||
this point the stack and global_data are relocated to below
|
||||
CONFIG_SPL_STACK_R_ADDR. For non-SPL, U-Boot is relocated to run at the top of
|
||||
memory.
|
||||
|
||||
board_init_r():
|
||||
- purpose: main execution, common code
|
||||
- global_data is available
|
||||
- SDRAM is available
|
||||
- BSS is available, all static/global variables can be used
|
||||
- execution eventually continues to main_loop()
|
||||
|
||||
Non-SPL-specific notes:
|
||||
- U-Boot is relocated to the top of memory and is now running from
|
||||
there.
|
||||
|
||||
SPL-specific notes:
|
||||
- stack is optionally in SDRAM, if CONFIG_SPL_STACK_R is defined and
|
||||
CONFIG_SYS_FSL_HAS_CCI400
|
||||
|
||||
Defined For SoC that has cache coherent interconnect
|
||||
CCN-400
|
||||
|
||||
CONFIG_SYS_FSL_HAS_CCN504
|
||||
|
||||
Defined for SoC that has cache coherent interconnect CCN-504
|
||||
|
||||
The following options need to be configured:
|
||||
|
||||
- CPU Type: Define exactly one, e.g. CONFIG_MPC85XX.
|
||||
@@ -482,6 +572,18 @@ The following options need to be configured:
|
||||
for your device
|
||||
- CONFIG_USBD_PRODUCTID 0xFFFF
|
||||
|
||||
- ULPI Layer Support:
|
||||
The ULPI (UTMI Low Pin (count) Interface) PHYs are supported via
|
||||
the generic ULPI layer. The generic layer accesses the ULPI PHY
|
||||
via the platform viewport, so you need both the genric layer and
|
||||
the viewport enabled. Currently only Chipidea/ARC based
|
||||
viewport is supported.
|
||||
To enable the ULPI layer support, define CONFIG_USB_ULPI and
|
||||
CONFIG_USB_ULPI_VIEWPORT in your board configuration file.
|
||||
If your ULPI phy needs a different reference clock than the
|
||||
standard 24 MHz then you have to define CFG_ULPI_REF_CLK to
|
||||
the appropriate value in Hz.
|
||||
|
||||
- MMC Support:
|
||||
CONFIG_SH_MMCIF
|
||||
Support for Renesas on-chip MMCIF controller
|
||||
@@ -669,8 +771,21 @@ The following options need to be configured:
|
||||
CFG_SYS_NUM_I2C_BUSES
|
||||
Hold the number of i2c buses you want to use.
|
||||
|
||||
CFG_SYS_I2C_DIRECT_BUS
|
||||
define this, if you don't use i2c muxes on your hardware.
|
||||
if CFG_SYS_I2C_MAX_HOPS is not defined or == 0 you can
|
||||
omit this define.
|
||||
|
||||
CFG_SYS_I2C_MAX_HOPS
|
||||
define how many muxes are maximal consecutively connected
|
||||
on one i2c bus. If you not use i2c muxes, omit this
|
||||
define.
|
||||
|
||||
CFG_SYS_I2C_BUSES
|
||||
hold a list of buses you want to use
|
||||
hold a list of buses you want to use, only used if
|
||||
CFG_SYS_I2C_DIRECT_BUS is not defined, for example
|
||||
a board with CFG_SYS_I2C_MAX_HOPS = 1 and
|
||||
CFG_SYS_NUM_I2C_BUSES = 9:
|
||||
|
||||
CFG_SYS_I2C_BUSES {{0, {I2C_NULL_HOP}}, \
|
||||
{0, {{I2C_MUX_PCA9547, 0x70, 1}}}, \
|
||||
@@ -768,6 +883,13 @@ The following options need to be configured:
|
||||
You should define these to the GPIO value as given directly to
|
||||
the generic GPIO functions.
|
||||
|
||||
CFG_I2C_MULTI_BUS
|
||||
|
||||
This option allows the use of multiple I2C buses, each of which
|
||||
must have a controller. At any point in time, only one bus is
|
||||
active. To switch to a different bus, use the 'i2c dev' command.
|
||||
Note that bus numbering is zero-based.
|
||||
|
||||
CFG_SYS_I2C_NOPROBES
|
||||
|
||||
This option specifies a list of I2C devices that will be skipped
|
||||
@@ -778,6 +900,11 @@ The following options need to be configured:
|
||||
|
||||
will skip addresses 0x50 and 0x68 on a board with one I2C bus
|
||||
|
||||
CFG_SYS_RTC_BUS_NUM
|
||||
|
||||
If defined, then this indicates the I2C bus number for the RTC.
|
||||
If not defined, then U-Boot assumes that RTC is on I2C bus 0.
|
||||
|
||||
CONFIG_SOFT_I2C_READ_REPEATED_START
|
||||
|
||||
defining this will force the i2c_read() function in
|
||||
@@ -1406,13 +1533,13 @@ Low Level (hardware related) configuration options:
|
||||
This only takes effect if the memory commands are activated
|
||||
globally (CONFIG_CMD_MEMORY).
|
||||
|
||||
- CONFIG_XPL_BUILD
|
||||
- CONFIG_SPL_BUILD
|
||||
Set when the currently running compilation is for an artifact
|
||||
that will end up in one of the 'xPL' builds, i.e. SPL, TPL or
|
||||
VPL. Code that needs phase-specific behaviour can check this,
|
||||
or (where possible) use xpl_phase() instead.
|
||||
or (where possible) use spl_phase() instead.
|
||||
|
||||
Note that CONFIG_XPL_BUILD *is* always defined when either
|
||||
Note that CONFIG_SPL_BUILD *is* always defined when either
|
||||
of CONFIG_TPL_BUILD / CONFIG_VPL_BUILD is defined. This can be
|
||||
counter-intuitive and should perhaps be changed.
|
||||
|
||||
@@ -1420,13 +1547,13 @@ Low Level (hardware related) configuration options:
|
||||
Set when the currently running compilation is for an artifact
|
||||
that will end up in the TPL build (as opposed to SPL, VPL or
|
||||
U-Boot proper). Code that needs phase-specific behaviour can
|
||||
check this, or (where possible) use xpl_phase() instead.
|
||||
check this, or (where possible) use spl_phase() instead.
|
||||
|
||||
- CONFIG_VPL_BUILD
|
||||
Set when the currently running compilation is for an artifact
|
||||
that will end up in the VPL build (as opposed to the SPL, TPL
|
||||
or U-Boot proper). Code that needs phase-specific behaviour can
|
||||
check this, or (where possible) use xpl_phase() instead.
|
||||
check this, or (where possible) use spl_phase() instead.
|
||||
|
||||
- CONFIG_ARCH_MAP_SYSMEM
|
||||
Generally U-Boot (and in particular the md command) uses
|
||||
@@ -1557,6 +1684,26 @@ images ready for download to / installation on your system:
|
||||
- "u-boot" is an image in ELF binary format
|
||||
- "u-boot.srec" is in Motorola S-Record format
|
||||
|
||||
By default the build is performed locally and the objects are saved
|
||||
in the source directory. One of the two methods can be used to change
|
||||
this behavior and build U-Boot to some external directory:
|
||||
|
||||
1. Add O= to the make command line invocations:
|
||||
|
||||
make O=/tmp/build distclean
|
||||
make O=/tmp/build NAME_defconfig
|
||||
make O=/tmp/build all
|
||||
|
||||
2. Set environment variable KBUILD_OUTPUT to point to the desired location:
|
||||
|
||||
export KBUILD_OUTPUT=/tmp/build
|
||||
make distclean
|
||||
make NAME_defconfig
|
||||
make all
|
||||
|
||||
Note that the command line "O=" setting overrides the KBUILD_OUTPUT environment
|
||||
variable.
|
||||
|
||||
User specific CPPFLAGS, AFLAGS and CFLAGS can be passed to the compiler by
|
||||
setting the according environment variables KCPPFLAGS, KAFLAGS and KCFLAGS.
|
||||
For example to treat all compiler warnings as errors:
|
||||
@@ -2414,6 +2561,51 @@ On RISC-V, the following registers are used:
|
||||
|
||||
==> U-Boot will use gp to hold a pointer to the global data
|
||||
|
||||
Memory Management:
|
||||
------------------
|
||||
|
||||
U-Boot runs in system state and uses physical addresses, i.e. the
|
||||
MMU is not used either for address mapping nor for memory protection.
|
||||
|
||||
The available memory is mapped to fixed addresses using the memory
|
||||
controller. In this process, a contiguous block is formed for each
|
||||
memory type (Flash, SDRAM, SRAM), even when it consists of several
|
||||
physical memory banks.
|
||||
|
||||
U-Boot is installed in the first 128 kB of the first Flash bank (on
|
||||
TQM8xxL modules this is the range 0x40000000 ... 0x4001FFFF). After
|
||||
booting and sizing and initializing DRAM, the code relocates itself
|
||||
to the upper end of DRAM. Immediately below the U-Boot code some
|
||||
memory is reserved for use by malloc() [see CONFIG_SYS_MALLOC_LEN
|
||||
configuration setting]. Below that, a structure with global Board
|
||||
Info data is placed, followed by the stack (growing downward).
|
||||
|
||||
Additionally, some exception handler code is copied to the low 8 kB
|
||||
of DRAM (0x00000000 ... 0x00001FFF).
|
||||
|
||||
So a typical memory configuration with 16 MB of DRAM could look like
|
||||
this:
|
||||
|
||||
0x0000 0000 Exception Vector code
|
||||
:
|
||||
0x0000 1FFF
|
||||
0x0000 2000 Free for Application Use
|
||||
:
|
||||
:
|
||||
|
||||
:
|
||||
:
|
||||
0x00FB FF20 Monitor Stack (Growing downward)
|
||||
0x00FB FFAC Board Info Data and permanent copy of global data
|
||||
0x00FC 0000 Malloc Arena
|
||||
:
|
||||
0x00FD FFFF
|
||||
0x00FE 0000 RAM Copy of Monitor Code
|
||||
... eventually: LCD or video framebuffer
|
||||
... eventually: pRAM (Protected RAM - unchanged by reset)
|
||||
0x00FF FFFF [End of RAM]
|
||||
|
||||
|
||||
System Initialization:
|
||||
----------------------
|
||||
|
||||
|
20
api/Kconfig
20
api/Kconfig
@@ -19,4 +19,24 @@ config EXAMPLES
|
||||
U-Boot provides an API for standalone applications. Examples are
|
||||
provided in directory examples/.
|
||||
|
||||
config STANDALONE_LOAD_ADDR
|
||||
depends on EXAMPLES
|
||||
hex "Address in memory to link standalone applications to"
|
||||
default 0xffffffff80200000 if MIPS && 64BIT
|
||||
default 0x8c000000 if SH
|
||||
default 0x82000000 if ARC
|
||||
default 0x80f00000 if MICROBLAZE
|
||||
default 0x80300000 if ARCH_OMAP2PLUS || FSL_LSCH2 || FSL_LSCH3
|
||||
default 0x80200000 if MIPS && 32BIT
|
||||
default 0x0c100000 if ARM
|
||||
default 0x02000000 if NIOS2
|
||||
default 0x00040000 if PPC || X86
|
||||
default 0x00020000 if M68K
|
||||
default 0x0 if RISCV
|
||||
default SYS_LOAD_ADDR
|
||||
help
|
||||
This option defines a board specific value for the address where
|
||||
standalone program gets loaded, thus overwriting the architecture
|
||||
dependent default settings.
|
||||
|
||||
endmenu
|
||||
|
@@ -1,11 +1,8 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
# (C) Copyright 2007 Semihalf
|
||||
|
||||
obj-y += api.o api_display.o api_net.o api_storage.o
|
||||
|
||||
ifeq (CONFIG_PPC,y)
|
||||
obj-$(CONFIG_ARM) += api_platform-arm.o
|
||||
obj-$(CONFIG_PPC) += api_platform-powerpc.o
|
||||
else
|
||||
obj-y += api_platform.o
|
||||
endif
|
||||
obj-$(CONFIG_MIPS) += api_platform-mips.o
|
||||
|
10
api/api.c
10
api/api.c
@@ -7,13 +7,11 @@
|
||||
|
||||
#include <config.h>
|
||||
#include <command.h>
|
||||
#include <common.h>
|
||||
#include <env.h>
|
||||
#include <malloc.h>
|
||||
#include <time.h>
|
||||
#include <env_internal.h>
|
||||
#include <vsprintf.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
#include <api_public.h>
|
||||
#include <u-boot/crc.h>
|
||||
@@ -180,6 +178,7 @@ static int API_get_timer(va_list ap)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
*
|
||||
* pseudo signature:
|
||||
@@ -229,6 +228,7 @@ static int API_dev_enum(va_list ap)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
static int API_dev_open(va_list ap)
|
||||
{
|
||||
struct device_info *di;
|
||||
@@ -260,6 +260,7 @@ static int API_dev_open(va_list ap)
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
static int API_dev_close(va_list ap)
|
||||
{
|
||||
struct device_info *di;
|
||||
@@ -294,6 +295,7 @@ static int API_dev_close(va_list ap)
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* pseudo signature:
|
||||
*
|
||||
@@ -372,6 +374,7 @@ static int API_dev_write(va_list ap)
|
||||
return err;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* pseudo signature:
|
||||
*
|
||||
@@ -457,6 +460,7 @@ static int API_dev_read(va_list ap)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* pseudo signature:
|
||||
*
|
||||
|
@@ -3,9 +3,9 @@
|
||||
* Copyright (c) 2011 The Chromium OS Authors.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <api_public.h>
|
||||
#include <log.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
/* TODO(clchiou): add support of video device */
|
||||
|
||||
|
@@ -6,6 +6,7 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <net.h>
|
||||
#include <linux/types.h>
|
||||
#include <api_public.h>
|
||||
|
36
api/api_platform-arm.c
Normal file
36
api/api_platform-arm.c
Normal file
@@ -0,0 +1,36 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C) Copyright 2007 Semihalf
|
||||
*
|
||||
* Written by: Rafal Jaworowski <raj@semihalf.com>
|
||||
*
|
||||
* This file contains routines that fetch data from ARM-dependent sources
|
||||
* (bd_info etc.)
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <linux/types.h>
|
||||
#include <api_public.h>
|
||||
|
||||
#include <asm/u-boot.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
#include "api_private.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/*
|
||||
* Important notice: handling of individual fields MUST be kept in sync with
|
||||
* include/asm-arm/u-boot.h and include/asm-arm/global_data.h, so any changes
|
||||
* need to reflect their current state and layout of structures involved!
|
||||
*/
|
||||
int platform_sys_info(struct sys_info *si)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
|
||||
platform_set_mr(si, gd->bd->bi_dram[i].start,
|
||||
gd->bd->bi_dram[i].size, MR_ATTR_DRAM);
|
||||
|
||||
return 1;
|
||||
}
|
30
api/api_platform-mips.c
Normal file
30
api/api_platform-mips.c
Normal file
@@ -0,0 +1,30 @@
|
||||
// SPDX-License-Identifier: GPL-2.0+
|
||||
/*
|
||||
* (C) Copyright 2007 Stanislav Galabov <sgalabov@gmail.com>
|
||||
*
|
||||
* This file contains routines that fetch data from bd_info sources
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <linux/types.h>
|
||||
#include <api_public.h>
|
||||
|
||||
#include <asm/u-boot.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
#include "api_private.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/*
|
||||
* Important notice: handling of individual fields MUST be kept in sync with
|
||||
* include/asm-generic/u-boot.h, so any changes
|
||||
* need to reflect their current state and layout of structures involved!
|
||||
*/
|
||||
int platform_sys_info(struct sys_info *si)
|
||||
{
|
||||
|
||||
platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
|
||||
|
||||
return 1;
|
||||
}
|
@@ -12,6 +12,7 @@
|
||||
#include <linux/types.h>
|
||||
#include <api_public.h>
|
||||
|
||||
#include <asm/u-boot.h>
|
||||
#include <asm/global_data.h>
|
||||
|
||||
#include "api_private.h"
|
||||
@@ -43,6 +44,7 @@ int platform_sys_info(struct sys_info *si)
|
||||
|
||||
platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
|
||||
platform_set_mr(si, gd->bd->bi_flashstart, gd->bd->bi_flashsize, MR_ATTR_FLASH);
|
||||
platform_set_mr(si, gd->bd->bi_sramstart, gd->bd->bi_sramsize, MR_ATTR_SRAM);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@@ -1,31 +0,0 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
/*
|
||||
* (C) Copyright 2007 Semihalf
|
||||
*
|
||||
* Written by: Rafal Jaworowski <raj@semihalf.com>
|
||||
*
|
||||
* This file contains a routine to fetch data from the global_data structure.
|
||||
*/
|
||||
|
||||
#include <api_public.h>
|
||||
#include <asm/global_data.h>
|
||||
#include "api_private.h"
|
||||
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
int platform_sys_info(struct sys_info *si)
|
||||
{
|
||||
int i;
|
||||
|
||||
si->clk_bus = gd->bus_clk;
|
||||
si->clk_cpu = gd->cpu_clk;
|
||||
|
||||
for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++)
|
||||
platform_set_mr(si, gd->bd->bi_dram[i].start,
|
||||
gd->bd->bi_dram[i].size, MR_ATTR_DRAM);
|
||||
|
||||
platform_set_mr(si, gd->ram_base, gd->ram_size, MR_ATTR_DRAM);
|
||||
platform_set_mr(si, gd->bd->bi_flashstart, gd->bd->bi_flashsize, MR_ATTR_FLASH);
|
||||
|
||||
return 1;
|
||||
}
|
@@ -6,10 +6,10 @@
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <api_public.h>
|
||||
#include <part.h>
|
||||
#include <scsi.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
|
||||
#include <usb.h>
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
#define errf(fmt, args...) do { printf("ERROR @ %s(): ", __func__); printf(fmt, ##args); } while (0)
|
||||
|
||||
|
||||
#define ENUM_IDE 0
|
||||
#define ENUM_USB 1
|
||||
#define ENUM_SCSI 2
|
||||
@@ -143,6 +144,7 @@ static int dev_stor_get(int type, int *more, struct device_info *di)
|
||||
return found;
|
||||
}
|
||||
|
||||
|
||||
/* returns: ENUM_IDE, ENUM_USB etc. based on struct blk_desc */
|
||||
|
||||
static int dev_stor_type(struct blk_desc *dd)
|
||||
@@ -157,6 +159,7 @@ static int dev_stor_type(struct blk_desc *dd)
|
||||
return ENUM_MAX;
|
||||
}
|
||||
|
||||
|
||||
/* returns: 0/1 whether cookie points to some device in this group */
|
||||
|
||||
static int dev_is_stor(int type, struct device_info *di)
|
||||
@@ -164,6 +167,7 @@ static int dev_is_stor(int type, struct device_info *di)
|
||||
return (dev_stor_type(di->cookie) == type) ? 1 : 0;
|
||||
}
|
||||
|
||||
|
||||
static int dev_enum_stor(int type, struct device_info *di)
|
||||
{
|
||||
int found = 0, more = 0;
|
||||
@@ -289,6 +293,7 @@ static int dev_stor_is_valid(int type, struct blk_desc *dd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int dev_open_stor(void *cookie)
|
||||
{
|
||||
int type = dev_stor_type(cookie);
|
||||
@@ -302,6 +307,7 @@ int dev_open_stor(void *cookie)
|
||||
return API_ENODEV;
|
||||
}
|
||||
|
||||
|
||||
int dev_close_stor(void *cookie)
|
||||
{
|
||||
/*
|
||||
@@ -311,6 +317,7 @@ int dev_close_stor(void *cookie)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start)
|
||||
{
|
||||
int type;
|
||||
@@ -334,6 +341,7 @@ lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start
|
||||
#endif /* defined(CONFIG_BLK) */
|
||||
}
|
||||
|
||||
|
||||
lbasize_t dev_write_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start)
|
||||
{
|
||||
struct blk_desc *dd = (struct blk_desc *)cookie;
|
||||
|
69
arch/Kconfig
69
arch/Kconfig
@@ -8,25 +8,6 @@ config CREATE_ARCH_SYMLINK
|
||||
config HAVE_ARCH_IOREMAP
|
||||
bool
|
||||
|
||||
config HAVE_SETJMP
|
||||
bool
|
||||
help
|
||||
The architecture supports setjmp() and longjmp().
|
||||
|
||||
config HAVE_INITJMP
|
||||
bool
|
||||
depends on HAVE_SETJMP
|
||||
help
|
||||
The architecture supports initjmp(), a non-standard companion to
|
||||
setjmp() and longjmp().
|
||||
|
||||
config SUPPORT_BIG_ENDIAN
|
||||
bool
|
||||
|
||||
config SUPPORT_LITTLE_ENDIAN
|
||||
bool
|
||||
default y if !SUPPORT_BIG_ENDIAN
|
||||
|
||||
config SYS_CACHE_SHIFT_4
|
||||
bool
|
||||
|
||||
@@ -44,14 +25,6 @@ config 32BIT
|
||||
|
||||
config 64BIT
|
||||
bool
|
||||
help
|
||||
Indicates that U-Boot proper will be built for a 64 bit
|
||||
architecture.
|
||||
|
||||
config SPL_64BIT
|
||||
bool
|
||||
help
|
||||
Indicates that SPL will be built for a 64 bit architecture.
|
||||
|
||||
config SYS_CACHELINE_SIZE
|
||||
int
|
||||
@@ -59,8 +32,7 @@ config SYS_CACHELINE_SIZE
|
||||
default 64 if SYS_CACHE_SHIFT_6
|
||||
default 32 if SYS_CACHE_SHIFT_5
|
||||
default 16 if SYS_CACHE_SHIFT_4
|
||||
# Fall-back for MIPS and RISC-V
|
||||
default 64 if RISCV
|
||||
# Fall-back for MIPS
|
||||
default 32 if MIPS
|
||||
|
||||
config LINKER_LIST_ALIGN
|
||||
@@ -87,20 +59,15 @@ config ARC
|
||||
select SUPPORT_OF_CONTROL
|
||||
select SYS_CACHE_SHIFT_7
|
||||
select TIMER
|
||||
select SUPPORT_BIG_ENDIAN
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SYS_BIG_ENDIAN if CPU_BIG_ENDIAN
|
||||
select SYS_LITTLE_ENDIAN if !CPU_BIG_ENDIAN
|
||||
|
||||
config ARM
|
||||
bool "ARM architecture"
|
||||
select HAVE_SETJMP
|
||||
select HAVE_INITJMP
|
||||
select ARCH_SUPPORTS_LTO
|
||||
select CREATE_ARCH_SYMLINK
|
||||
select HAVE_PRIVATE_LIBGCC if !ARM64
|
||||
select SUPPORT_ACPI
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
|
||||
config M68K
|
||||
@@ -110,13 +77,10 @@ config M68K
|
||||
select SYS_BOOT_GET_CMDLINE
|
||||
select SYS_BOOT_GET_KBD
|
||||
select SYS_CACHE_SHIFT_4
|
||||
select SUPPORT_BIG_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
|
||||
config MICROBLAZE
|
||||
bool "MicroBlaze architecture"
|
||||
select SUPPORT_BIG_ENDIAN
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
imply CMD_TIMER
|
||||
imply SPL_REGMAP if SPL
|
||||
@@ -137,14 +101,12 @@ config NIOS2
|
||||
select DM
|
||||
select DM_EVENT
|
||||
select OF_CONTROL
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
imply CMD_DM
|
||||
|
||||
config PPC
|
||||
bool "PowerPC architecture"
|
||||
select HAVE_PRIVATE_LIBGCC
|
||||
select SUPPORT_BIG_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
select SYS_BOOT_GET_CMDLINE
|
||||
select SYS_BOOT_GET_KBD
|
||||
@@ -152,10 +114,7 @@ config PPC
|
||||
config RISCV
|
||||
bool "RISC-V architecture"
|
||||
select CREATE_ARCH_SYMLINK
|
||||
select HAVE_SETJMP
|
||||
select HAVE_INITJMP
|
||||
select SUPPORT_ACPI
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
select OF_CONTROL
|
||||
select DM
|
||||
@@ -179,8 +138,6 @@ config RISCV
|
||||
|
||||
config SANDBOX
|
||||
bool "Sandbox"
|
||||
select HAVE_SETJMP
|
||||
select HAVE_INITJMP
|
||||
select ARCH_SUPPORTS_LTO
|
||||
select BOARD_LATE_INIT
|
||||
select BZIP2
|
||||
@@ -191,20 +148,18 @@ config SANDBOX
|
||||
select DM_GPIO
|
||||
select DM_I2C
|
||||
select DM_KEYBOARD
|
||||
select DM_MMC
|
||||
select DM_SERIAL
|
||||
select DM_SPI
|
||||
select DM_SPI_FLASH
|
||||
select GZIP_COMPRESSED
|
||||
select IO_TRACE
|
||||
select LZO
|
||||
select MMC
|
||||
select MTD
|
||||
select OF_BOARD_SETUP
|
||||
select PCI_ENDPOINT
|
||||
select SPI
|
||||
select SUPPORT_OF_CONTROL
|
||||
select SUPPORT_BIG_ENDIAN
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SYSRESET_CMD_POWEROFF if CMD_POWEROFF
|
||||
select SYS_CACHE_SHIFT_4
|
||||
select IRQ
|
||||
@@ -239,8 +194,7 @@ config SANDBOX
|
||||
imply VIRTIO_MMIO
|
||||
imply VIRTIO_PCI
|
||||
imply VIRTIO_SANDBOX
|
||||
# Re-enable this when fully implemented
|
||||
# imply VIRTIO_BLK
|
||||
imply VIRTIO_BLK
|
||||
imply VIRTIO_NET
|
||||
imply DM_SOUND
|
||||
imply PCI_SANDBOX_EP
|
||||
@@ -270,16 +224,13 @@ config SANDBOX
|
||||
|
||||
config SH
|
||||
bool "SuperH architecture"
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select HAVE_PRIVATE_LIBGCC
|
||||
select SUPPORT_OF_CONTROL
|
||||
|
||||
config X86
|
||||
bool "x86 architecture"
|
||||
select HAVE_SETJMP
|
||||
select SUPPORT_SPL
|
||||
select SUPPORT_TPL
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select CREATE_ARCH_SYMLINK
|
||||
select DM
|
||||
select HAVE_ARCH_IOMAP
|
||||
@@ -361,7 +312,6 @@ config X86
|
||||
config XTENSA
|
||||
bool "Xtensa architecture"
|
||||
select CREATE_ARCH_SYMLINK
|
||||
select SUPPORT_LITTLE_ENDIAN
|
||||
select SUPPORT_OF_CONTROL
|
||||
|
||||
endchoice
|
||||
@@ -565,21 +515,24 @@ endif
|
||||
|
||||
source "board/keymile/Kconfig"
|
||||
|
||||
if MIPS || MICROBLAZE
|
||||
|
||||
choice
|
||||
prompt "Endianness selection"
|
||||
default SYS_BIG_ENDIAN if MIPS || MICROBLAZE
|
||||
default SYS_LITTLE_ENDIAN
|
||||
help
|
||||
Some boards can be configured for either little or big endian
|
||||
Some MIPS boards can be configured for either little or big endian
|
||||
byte order. These modes require different U-Boot images. In general there
|
||||
is one preferred byteorder for a particular system but some systems are
|
||||
just as commonly used in the one or the other endianness.
|
||||
|
||||
config SYS_BIG_ENDIAN
|
||||
bool "Big endian"
|
||||
depends on SUPPORT_BIG_ENDIAN
|
||||
depends on (SUPPORTS_BIG_ENDIAN && MIPS) || MICROBLAZE
|
||||
|
||||
config SYS_LITTLE_ENDIAN
|
||||
bool "Little endian"
|
||||
depends on SUPPORT_LITTLE_ENDIAN
|
||||
depends on (SUPPORTS_LITTLE_ENDIAN && MIPS) || MICROBLAZE
|
||||
|
||||
endchoice
|
||||
|
||||
endif
|
||||
|
@@ -10,5 +10,12 @@ dtb-$(CONFIG_TARGET_IOT_DEVKIT) += iot_devkit.dtb
|
||||
|
||||
include $(srctree)/scripts/Makefile.dts
|
||||
|
||||
# Add any required device tree compiler flags here
|
||||
targets += $(dtb-y)
|
||||
|
||||
DTC_FLAGS += -R 4 -p 0x1000
|
||||
|
||||
PHONY += dtbs
|
||||
dtbs: $(addprefix $(obj)/, $(dtb-y))
|
||||
@:
|
||||
|
||||
clean-files := *.dtb
|
||||
|
@@ -15,7 +15,7 @@
|
||||
|
||||
union bcr_di_cache {
|
||||
struct {
|
||||
#ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
unsigned int pad:12, line_len:4, sz:4, config:4, ver:8;
|
||||
#else
|
||||
unsigned int ver:8, config:4, sz:4, line_len:4, pad:12;
|
||||
@@ -26,7 +26,7 @@ union bcr_di_cache {
|
||||
|
||||
union bcr_slc_cfg {
|
||||
struct {
|
||||
#ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
unsigned int pad:24, way:2, lsz:2, sz:4;
|
||||
#else
|
||||
unsigned int sz:4, lsz:2, way:2, pad:24;
|
||||
@@ -37,7 +37,7 @@ union bcr_slc_cfg {
|
||||
|
||||
union bcr_generic {
|
||||
struct {
|
||||
#ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
unsigned int pad:24, ver:8;
|
||||
#else
|
||||
unsigned int ver:8, pad:24;
|
||||
@@ -48,7 +48,7 @@ union bcr_generic {
|
||||
|
||||
union bcr_clust_cfg {
|
||||
struct {
|
||||
#ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
unsigned int pad:7, c:1, num_entries:8, num_cores:8, ver:8;
|
||||
#else
|
||||
unsigned int ver:8, num_cores:8, num_entries:8, c:1, pad:7;
|
||||
@@ -59,7 +59,7 @@ union bcr_clust_cfg {
|
||||
|
||||
union bcr_mmu_4 {
|
||||
struct {
|
||||
#ifdef CONFIG_SYS_BIG_ENDIAN
|
||||
#ifdef CONFIG_CPU_BIG_ENDIAN
|
||||
unsigned int ver:8, sasid:1, sz1:4, sz0:4, res:2, pae:1,
|
||||
n_ways:2, n_entry:2, n_super:2, u_itlb:3, u_dtlb:3;
|
||||
#else
|
||||
|
@@ -6,8 +6,6 @@
|
||||
#ifndef __ASM_ARC_GLOBAL_DATA_H
|
||||
#define __ASM_ARC_GLOBAL_DATA_H
|
||||
|
||||
#include <asm/u-boot.h>
|
||||
|
||||
#ifndef __ASSEMBLY__
|
||||
/* Architecture-specific global data */
|
||||
struct arch_global_data {
|
||||
|
@@ -77,6 +77,7 @@ static inline void sync(void)
|
||||
#define __arch_putl(v, a) ({ __comp_b(); *(volatile u32 *)(a) = (v); __comp_b(); })
|
||||
#define __arch_putq(v, a) ({ __comp_b(); *(volatile u64 *)(a) = (v); __comp_b(); })
|
||||
|
||||
|
||||
/*
|
||||
* We add memory barriers for __raw_readX / __raw_writeX accessors same way as
|
||||
* it is done for readX and writeX accessors as lots of U-Boot driver uses
|
||||
@@ -92,6 +93,7 @@ static inline void sync(void)
|
||||
#define __raw_readl(c) ({ u32 __v = __arch_getl(c); __iormb(); __v; })
|
||||
#define __raw_readq(c) ({ u64 __v = __arch_getq(c); __iormb(); __v; })
|
||||
|
||||
|
||||
static inline void __raw_writesb(unsigned long addr, const void *data,
|
||||
int bytelen)
|
||||
{
|
||||
|
@@ -8,9 +8,9 @@
|
||||
#include <asm/global_data.h>
|
||||
#include <linux/bitops.h>
|
||||
#include <linux/compiler.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/log2.h>
|
||||
#include <lmb.h>
|
||||
#include <asm/arcregs.h>
|
||||
#include <asm/arc-bcr.h>
|
||||
#include <asm/cache.h>
|
||||
@@ -821,7 +821,15 @@ void sync_n_cleanup_cache_all(void)
|
||||
__ic_entire_invalidate();
|
||||
}
|
||||
|
||||
int __weak pgprot_set_attrs(phys_addr_t addr, size_t size, enum pgprot_attrs perm)
|
||||
static ulong get_sp(void)
|
||||
{
|
||||
return -ENOSYS;
|
||||
ulong ret;
|
||||
|
||||
asm("mov %0, sp" : "=r"(ret) : );
|
||||
return ret;
|
||||
}
|
||||
|
||||
void arch_lmb_reserve(struct lmb *lmb)
|
||||
{
|
||||
arch_lmb_reserve_generic(lmb, get_sp(), gd->ram_top, 4096);
|
||||
}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <clock_legacy.h>
|
||||
#include <init.h>
|
||||
#include <malloc.h>
|
||||
#include <stdio.h>
|
||||
#include <vsprintf.h>
|
||||
#include <asm/arcregs.h>
|
||||
#include <asm/cache.h>
|
||||
#include <asm/global_data.h>
|
||||
|
122
arch/arm/Kconfig
122
arch/arm/Kconfig
@@ -7,7 +7,6 @@ config SYS_ARCH
|
||||
config ARM64
|
||||
bool
|
||||
select 64BIT
|
||||
select SPL_64BIT if SPL
|
||||
select PHYS_64BIT
|
||||
select SYS_CACHE_SHIFT_6
|
||||
imply SPL_SEPARATE_BSS
|
||||
@@ -108,27 +107,15 @@ config LNX_KRNL_IMG_TEXT_OFFSET_BASE
|
||||
The value subtracted from CONFIG_TEXT_BASE to calculate the
|
||||
TEXT_OFFSET value written to the Linux kernel image header.
|
||||
|
||||
config NVIC
|
||||
bool
|
||||
|
||||
config GICV2
|
||||
bool
|
||||
|
||||
config GICV3
|
||||
bool
|
||||
|
||||
config DRIVER_GICV2
|
||||
bool "ARM GICV2 driver"
|
||||
select IRQ
|
||||
depends on !NVIC
|
||||
help
|
||||
ARM GICV2 driver.
|
||||
Basic support for parsing the GICV2 node and generate ACPI tables.
|
||||
|
||||
config GIC_V3_ITS
|
||||
bool "ARM GICV3 ITS"
|
||||
select IRQ
|
||||
depends on !NVIC
|
||||
help
|
||||
ARM GICV3 Interrupt translation service (ITS).
|
||||
Basic support for programming locality specific peripheral
|
||||
@@ -139,7 +126,6 @@ config GIC_V3_ITS
|
||||
|
||||
config GICV3_SUPPORT_GIC600
|
||||
bool "ARM GICV3 GIC600 SUPPORT"
|
||||
depends on !NVIC
|
||||
help
|
||||
ARM GIC-600 IP complies with ARM GICv3 architecture, but among others,
|
||||
implements a power control register in the Redistributor frame.This
|
||||
@@ -199,7 +185,6 @@ config SPL_SYS_DCACHE_OFF
|
||||
|
||||
config SYS_ARM_CACHE_CP15
|
||||
bool "CP15 based cache enabling support"
|
||||
depends on !CPU_V7M
|
||||
help
|
||||
Select this if your processor suports enabling caches by using
|
||||
CP15 registers.
|
||||
@@ -207,7 +192,6 @@ config SYS_ARM_CACHE_CP15
|
||||
config SYS_ARM_MMU
|
||||
bool "MMU-based Paged Memory Management Support"
|
||||
select SYS_ARM_CACHE_CP15
|
||||
depends on !CPU_V7M
|
||||
help
|
||||
Select if you want MMU-based virtualised addressing space
|
||||
support via paged memory management.
|
||||
@@ -358,7 +342,6 @@ config CPU_V7M
|
||||
select SYS_CACHE_SHIFT_5
|
||||
select SYS_THUMB_BUILD
|
||||
select THUMB2_KERNEL
|
||||
select NVIC
|
||||
|
||||
config CPU_V7R
|
||||
bool
|
||||
@@ -600,13 +583,6 @@ choice
|
||||
prompt "Target select"
|
||||
default TARGET_HIKEY
|
||||
|
||||
config ARCH_AIROHA
|
||||
bool "Airoha SoCs"
|
||||
select DM
|
||||
select OF_CONTROL
|
||||
help
|
||||
Support for the Airoha soc.
|
||||
|
||||
config ARCH_AT91
|
||||
bool "Atmel AT91"
|
||||
select GPIO_EXTRA_HEADER
|
||||
@@ -655,6 +631,7 @@ config ARCH_MVEBU
|
||||
select SPL_TIMER if SPL
|
||||
select TIMER if !ARM64
|
||||
select OF_CONTROL
|
||||
select OF_SEPARATE
|
||||
select SPI
|
||||
imply CMD_DM
|
||||
|
||||
@@ -667,7 +644,6 @@ config ARCH_ORION5X
|
||||
|
||||
config ARCH_BCM283X
|
||||
bool "Broadcom BCM283X family"
|
||||
select CPU
|
||||
select DM
|
||||
select DM_GPIO
|
||||
select DM_SERIAL
|
||||
@@ -793,7 +769,6 @@ config ARCH_IPQ40XX
|
||||
select CLK_QCOM_IPQ4019
|
||||
select PINCTRL_QCOM_IPQ4019
|
||||
imply CMD_DM
|
||||
imply OF_UPSTREAM
|
||||
|
||||
config ARCH_KEYSTONE
|
||||
bool "TI Keystone"
|
||||
@@ -826,7 +801,7 @@ config ARCH_OMAP2PLUS
|
||||
bool "TI OMAP2+"
|
||||
select CPU_V7A
|
||||
select GPIO_EXTRA_HEADER
|
||||
select SPL_SOC_INIT if SPL
|
||||
select SPL_BOARD_INIT if SPL
|
||||
select SPL_STACK_R if SPL
|
||||
select SUPPORT_SPL
|
||||
imply TI_SYSC if DM && OF_CONTROL
|
||||
@@ -857,15 +832,6 @@ config ARCH_MEDIATEK
|
||||
Support for the MediaTek SoCs family developed by MediaTek Inc.
|
||||
Please refer to doc/README.mediatek for more information.
|
||||
|
||||
config ARCH_MMP
|
||||
bool "Marvell MMP"
|
||||
select ARM64
|
||||
select DM
|
||||
select DM_SERIAL
|
||||
select OF_CONTROL
|
||||
select SAVE_PREV_BL_FDT_ADDR
|
||||
select SAVE_PREV_BL_INITRAMFS_START_ADDR
|
||||
|
||||
config ARCH_LPC32XX
|
||||
bool "NXP LPC32xx platform"
|
||||
select CPU_ARM926EJS
|
||||
@@ -1080,7 +1046,7 @@ config ARCH_QEMU
|
||||
imply DM_RNG
|
||||
imply DM_RTC
|
||||
imply RTC_PL031
|
||||
imply OF_HAS_PRIOR_STAGE if !TARGET_QEMU_ARM_SBSA
|
||||
imply OF_HAS_PRIOR_STAGE
|
||||
imply VIDEO
|
||||
imply VIDEO_BOCHS
|
||||
imply SYS_WHITE_ON_BLACK
|
||||
@@ -1091,7 +1057,6 @@ config ARCH_QEMU
|
||||
imply USB_XHCI_PCI
|
||||
imply USB_KEYBOARD
|
||||
imply CMD_USB
|
||||
imply POSITION_INDEPENDENT
|
||||
|
||||
config ARCH_RENESAS
|
||||
bool "Renesas ARM SoCs"
|
||||
@@ -1117,17 +1082,15 @@ config ARCH_SNAPDRAGON
|
||||
select GPIO_EXTRA_HEADER
|
||||
select MSM_SMEM
|
||||
select OF_CONTROL
|
||||
select OF_SEPARATE
|
||||
select SMEM
|
||||
select SPMI
|
||||
select BOARD_LATE_INIT
|
||||
select OF_BOARD
|
||||
select SAVE_PREV_BL_FDT_ADDR if !ENABLE_ARM_SOC_BOOT0_HOOK
|
||||
select SAVE_PREV_BL_FDT_ADDR
|
||||
select LINUX_KERNEL_IMAGE_HEADER if !ENABLE_ARM_SOC_BOOT0_HOOK
|
||||
select SYSRESET
|
||||
select SYSRESET_PSCI
|
||||
imply OF_UPSTREAM
|
||||
imply CMD_DM
|
||||
imply DM_USB_GADGET
|
||||
|
||||
config ARCH_SOCFPGA
|
||||
bool "Altera SOCFPGA family"
|
||||
@@ -1137,9 +1100,9 @@ config ARCH_SOCFPGA
|
||||
select CPU_V7A if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
|
||||
select DM
|
||||
select DM_SERIAL
|
||||
select GICV2
|
||||
select GPIO_EXTRA_HEADER
|
||||
select ENABLE_ARM_SOC_BOOT0_HOOK if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
|
||||
select LMB_ARCH_MEM_MAP if TARGET_SOCFPGA_SOC64
|
||||
select OF_CONTROL
|
||||
select SPL_DM_RESET if DM_RESET
|
||||
select SPL_DM_SERIAL
|
||||
@@ -1159,7 +1122,6 @@ config ARCH_SOCFPGA
|
||||
select SYSRESET_SOCFPGA if TARGET_SOCFPGA_GEN5 || TARGET_SOCFPGA_ARRIA10
|
||||
select SYSRESET_SOCFPGA_SOC64 if !TARGET_SOCFPGA_AGILEX5 && \
|
||||
TARGET_SOCFPGA_SOC64
|
||||
select SYSRESET_PSCI if TARGET_SOCFPGA_AGILEX5
|
||||
imply CMD_DM
|
||||
imply CMD_MTDPARTS
|
||||
imply CRC32_VERIFY
|
||||
@@ -1173,6 +1135,8 @@ config ARCH_SOCFPGA
|
||||
imply SPL_DM_SPI_FLASH
|
||||
imply SPL_LIBDISK_SUPPORT
|
||||
imply SPL_MMC
|
||||
imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION
|
||||
imply SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION_TYPE
|
||||
imply SPL_SPI_FLASH_SUPPORT
|
||||
imply SPL_SPI
|
||||
imply L2X0_CACHE
|
||||
@@ -1190,10 +1154,11 @@ config ARCH_SUNXI
|
||||
select DM_SPI if SPI
|
||||
select DM_SPI_FLASH if SPI && MTD
|
||||
select DM_KEYBOARD
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select MMU_PGPROT if ARM64
|
||||
select OF_BOARD_SETUP
|
||||
select OF_CONTROL
|
||||
select OF_SEPARATE
|
||||
select PINCTRL
|
||||
select SPECIFY_CONSOLE_INDEX
|
||||
select SPL_SEPARATE_BSS if SPL
|
||||
@@ -1203,6 +1168,7 @@ config ARCH_SUNXI
|
||||
select SUNXI_GPIO
|
||||
select SYS_NS16550
|
||||
select SYS_THUMB_BUILD if !ARM64
|
||||
select USB if DISTRO_DEFAULTS
|
||||
select USB_KEYBOARD if DISTRO_DEFAULTS && USB_HOST
|
||||
select USB_STORAGE if DISTRO_DEFAULTS && USB_HOST
|
||||
select SPL_USE_TINY_PRINTF if SPL
|
||||
@@ -1228,7 +1194,6 @@ config ARCH_SUNXI
|
||||
imply SYSRESET
|
||||
imply SYSRESET_WATCHDOG
|
||||
imply SYSRESET_WATCHDOG_AUTO
|
||||
imply USB
|
||||
imply USB_GADGET
|
||||
imply WDT
|
||||
|
||||
@@ -1237,6 +1202,7 @@ config ARCH_U8500
|
||||
select CPU_V7A
|
||||
select DM
|
||||
select DM_GPIO
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select DM_USB_GADGET if DM_USB
|
||||
select OF_CONTROL
|
||||
@@ -1261,6 +1227,7 @@ config ARCH_VERSAL
|
||||
select ARM64
|
||||
select CLK
|
||||
select DM
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select GICV3
|
||||
select OF_CONTROL
|
||||
@@ -1268,22 +1235,12 @@ config ARCH_VERSAL
|
||||
imply BOARD_LATE_INIT
|
||||
imply ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||
|
||||
config ARCH_VERSAL2
|
||||
bool "Support AMD Versal Gen 2 Platform"
|
||||
select ARM64
|
||||
select CLK
|
||||
select DM
|
||||
select DM_SERIAL
|
||||
select OF_CONTROL
|
||||
imply BOARD_LATE_INIT
|
||||
imply ENV_VARS_UBOOT_RUNTIME_CONFIG
|
||||
imply ZYNQMP_FIRMWARE
|
||||
|
||||
config ARCH_VERSAL_NET
|
||||
bool "Support Xilinx Versal NET Platform"
|
||||
select ARM64
|
||||
select CLK
|
||||
select DM
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select OF_CONTROL
|
||||
imply BOARD_LATE_INIT
|
||||
@@ -1308,13 +1265,14 @@ config ARCH_ZYNQ
|
||||
select CPU_V7A
|
||||
select DEBUG_UART_BOARD_INIT if SPL && DEBUG_UART
|
||||
select DM
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select DM_SPI
|
||||
select DM_SPI_FLASH
|
||||
select OF_CONTROL
|
||||
select MTD
|
||||
select SPI
|
||||
select SPL_SOC_INIT if SPL
|
||||
select SPL_BOARD_INIT if SPL
|
||||
select SPL_CLK if SPL
|
||||
select SPL_DM if SPL
|
||||
select SPL_DM_SPI if SPL
|
||||
@@ -1336,6 +1294,7 @@ config ARCH_ZYNQMP_R5
|
||||
select CLK
|
||||
select CPU_V7R
|
||||
select DM
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select OF_CONTROL
|
||||
imply CMD_DM
|
||||
@@ -1344,11 +1303,11 @@ config ARCH_ZYNQMP_R5
|
||||
config ARCH_ZYNQMP
|
||||
bool "Xilinx ZynqMP based platform"
|
||||
select ARM64
|
||||
select BINMAN
|
||||
select CLK
|
||||
select DM
|
||||
select DEBUG_UART_BOARD_INIT if SPL && DEBUG_UART
|
||||
imply DM_MAILBOX
|
||||
select DM_MMC if MMC
|
||||
select DM_SERIAL
|
||||
select MTD
|
||||
select DM_SPI if SPI
|
||||
@@ -1356,7 +1315,7 @@ config ARCH_ZYNQMP
|
||||
imply FIRMWARE
|
||||
select GICV2
|
||||
select OF_CONTROL
|
||||
select SPL_SOC_INIT if SPL
|
||||
select SPL_BOARD_INIT if SPL
|
||||
select SPL_CLK if SPL
|
||||
select SPL_DM if SPL
|
||||
select SPL_DM_SPI if SPI && SPL_DM
|
||||
@@ -1398,6 +1357,7 @@ config ARCH_VEXPRESS64
|
||||
select PL01X_SERIAL
|
||||
select OF_CONTROL
|
||||
select CLK
|
||||
select BLK
|
||||
select MTD_NOR_FLASH if MTD
|
||||
select FLASH_CFI_DRIVER if MTD
|
||||
select ENV_IS_IN_FLASH if MTD
|
||||
@@ -1415,10 +1375,8 @@ config TARGET_TOTAL_COMPUTE
|
||||
select PL01X_SERIAL
|
||||
select DM
|
||||
select DM_SERIAL
|
||||
select DM_MMC
|
||||
select DM_GPIO
|
||||
select MMC
|
||||
imply OF_HAS_PRIOR_STAGE if !BLOBLIST
|
||||
imply MISC_INIT_R
|
||||
|
||||
config TARGET_LS2080A_EMU
|
||||
bool "Support ls2080a_emu"
|
||||
@@ -1895,23 +1853,6 @@ config TARGET_LS1046AFRWY
|
||||
development platform that supports the QorIQ LS1046A
|
||||
Layerscape Architecture processor.
|
||||
|
||||
config ARCH_SC5XX
|
||||
bool "Analog Devices SC5XX-processor family"
|
||||
select ADI_SC5XX_TIMER
|
||||
select DM
|
||||
select DM_SERIAL
|
||||
select HAS_CUSTOM_SYS_INIT_SP_ADDR
|
||||
select PANIC_HANG
|
||||
select SPL
|
||||
select SPL_BOOTROM_SUPPORT
|
||||
select SPL_DM
|
||||
select SPL_DM_SEQ_ALIAS
|
||||
select SPL_LIBGENERIC_SUPPORT
|
||||
select SPL_LIBCOMMON_SUPPORT
|
||||
select SPL_SKIP_LOWLEVEL_INIT
|
||||
select SUPPORT_SPL
|
||||
select TIMER
|
||||
|
||||
config TARGET_SL28
|
||||
bool "Support sl28"
|
||||
select ARCH_LS1028A
|
||||
@@ -1922,7 +1863,7 @@ config TARGET_SL28
|
||||
select DM
|
||||
select DM_GPIO
|
||||
select DM_I2C
|
||||
select MMC
|
||||
select DM_MMC
|
||||
select MTD
|
||||
select DM_SPI_FLASH
|
||||
select DM_MDIO
|
||||
@@ -1963,10 +1904,10 @@ config ARCH_UNIPHIER
|
||||
select DM
|
||||
select DM_GPIO
|
||||
select DM_I2C
|
||||
select DM_MMC
|
||||
select DM_MTD
|
||||
select DM_RESET
|
||||
select DM_SERIAL
|
||||
select MMC
|
||||
select OF_BOARD_SETUP
|
||||
select OF_CONTROL
|
||||
select OF_LIBFDT
|
||||
@@ -2007,11 +1948,12 @@ config ARCH_STM32
|
||||
|
||||
config ARCH_STI
|
||||
bool "Support STMicroelectronics SoCs"
|
||||
select BLK
|
||||
select CPU_V7A
|
||||
select DM
|
||||
select DM_MMC
|
||||
select DM_RESET
|
||||
select DM_SERIAL
|
||||
select MMC
|
||||
imply CMD_DM
|
||||
help
|
||||
Support for STMicroelectronics STiH407/10 SoC family.
|
||||
@@ -2053,10 +1995,12 @@ config ARCH_STM32MP
|
||||
|
||||
config ARCH_ROCKCHIP
|
||||
bool "Support Rockchip SoCs"
|
||||
select BLK
|
||||
select BINMAN if SPL_OPTEE || SPL
|
||||
select DM
|
||||
select DM_GPIO
|
||||
select DM_I2C
|
||||
select DM_MMC
|
||||
select DM_PWM
|
||||
select DM_REGULATOR
|
||||
select DM_SERIAL
|
||||
@@ -2065,7 +2009,6 @@ config ARCH_ROCKCHIP
|
||||
select DM_USB_GADGET if USB_DWC3_GADGET
|
||||
select ENABLE_ARM_SOC_BOOT0_HOOK
|
||||
select OF_CONTROL
|
||||
select MMC
|
||||
select MTD
|
||||
select SPI
|
||||
select SPL_DM if SPL
|
||||
@@ -2140,6 +2083,7 @@ config TARGET_POMELO
|
||||
select AHCI
|
||||
select SCSI_AHCI
|
||||
select AHCI_PCI
|
||||
select BLK
|
||||
select PCI
|
||||
select DM_PCI
|
||||
select SCSI
|
||||
@@ -2210,7 +2154,6 @@ config SERIAL_TAG
|
||||
config STATIC_MACH_TYPE
|
||||
bool "Statically define the Machine ID number"
|
||||
default y if TARGET_DS109 || TARGET_DS414 || DEFAULT_DEVICE_TREE = "sun7i-a20-icnova-swac"
|
||||
depends on SUPPORT_PASSING_ATAGS
|
||||
help
|
||||
When booting via ATAGs, enable this option if we know the correct
|
||||
machine ID number to use at compile time. Some systems will be
|
||||
@@ -2259,8 +2202,6 @@ config SYS_KWD_CONFIG
|
||||
Path within the source directory to the kwbimage.cfg file to use
|
||||
when packaging the U-Boot image for use.
|
||||
|
||||
source "arch/arm/mach-airoha/Kconfig"
|
||||
|
||||
source "arch/arm/mach-apple/Kconfig"
|
||||
|
||||
source "arch/arm/mach-aspeed/Kconfig"
|
||||
@@ -2339,16 +2280,12 @@ source "arch/arm/mach-meson/Kconfig"
|
||||
|
||||
source "arch/arm/mach-mediatek/Kconfig"
|
||||
|
||||
source "arch/arm/mach-mmp/Kconfig"
|
||||
|
||||
source "arch/arm/mach-qemu/Kconfig"
|
||||
|
||||
source "arch/arm/mach-rockchip/Kconfig"
|
||||
|
||||
source "arch/arm/mach-s5pc1xx/Kconfig"
|
||||
|
||||
source "arch/arm/mach-sc5xx/Kconfig"
|
||||
|
||||
source "arch/arm/mach-snapdragon/Kconfig"
|
||||
|
||||
source "arch/arm/mach-socfpga/Kconfig"
|
||||
@@ -2375,8 +2312,6 @@ source "arch/arm/mach-zynqmp/Kconfig"
|
||||
|
||||
source "arch/arm/mach-versal/Kconfig"
|
||||
|
||||
source "arch/arm/mach-versal2/Kconfig"
|
||||
|
||||
source "arch/arm/mach-versal-net/Kconfig"
|
||||
|
||||
source "arch/arm/mach-zynqmp-r5/Kconfig"
|
||||
@@ -2405,7 +2340,6 @@ source "board/broadcom/bcmns3/Kconfig"
|
||||
source "board/cavium/thunderx/Kconfig"
|
||||
source "board/eets/pdu001/Kconfig"
|
||||
source "board/emulation/qemu-arm/Kconfig"
|
||||
source "board/emulation/qemu-sbsa/Kconfig"
|
||||
source "board/freescale/ls2080aqds/Kconfig"
|
||||
source "board/freescale/ls2080ardb/Kconfig"
|
||||
source "board/freescale/ls1088a/Kconfig"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
|
||||
ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_ARCH_TEGRA),yy)
|
||||
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_ARCH_TEGRA),yy)
|
||||
CONFIG_CPU_V7A=
|
||||
CONFIG_CPU_ARM720T=y
|
||||
endif
|
||||
@@ -24,7 +24,7 @@ endif
|
||||
|
||||
# On Tegra systems we must build SPL for the armv4 core on the device
|
||||
# but otherwise we can use the value in CONFIG_SYS_ARM_ARCH
|
||||
ifeq ($(CONFIG_XPL_BUILD)$(CONFIG_ARCH_TEGRA),yy)
|
||||
ifeq ($(CONFIG_SPL_BUILD)$(CONFIG_ARCH_TEGRA),yy)
|
||||
arch-y += -D__LINUX_ARM_ARCH__=4
|
||||
else
|
||||
arch-y += -D__LINUX_ARM_ARCH__=$(CONFIG_SYS_ARM_ARCH)
|
||||
@@ -51,7 +51,6 @@ PLATFORM_CPPFLAGS += $(arch-y) $(tune-y)
|
||||
|
||||
# Machine directory name. This list is sorted alphanumerically
|
||||
# by CONFIG_* macro name.
|
||||
machine-$(CONFIG_ARCH_AIROHA) += airoha
|
||||
machine-$(CONFIG_ARCH_APPLE) += apple
|
||||
machine-$(CONFIG_ARCH_ASPEED) += aspeed
|
||||
machine-$(CONFIG_ARCH_AT91) += at91
|
||||
@@ -70,7 +69,6 @@ machine-$(CONFIG_ARCH_KIRKWOOD) += kirkwood
|
||||
machine-$(CONFIG_ARCH_LPC32XX) += lpc32xx
|
||||
machine-$(CONFIG_ARCH_MEDIATEK) += mediatek
|
||||
machine-$(CONFIG_ARCH_MESON) += meson
|
||||
machine-$(CONFIG_ARCH_MMP) += mmp
|
||||
machine-$(CONFIG_ARCH_MVEBU) += mvebu
|
||||
machine-$(CONFIG_ARCH_NEXELL) += nexell
|
||||
machine-$(CONFIG_ARCH_NPCM) += npcm
|
||||
@@ -80,7 +78,6 @@ machine-$(CONFIG_ARCH_OWL) += owl
|
||||
machine-$(CONFIG_ARCH_RENESAS) += renesas
|
||||
machine-$(CONFIG_ARCH_ROCKCHIP) += rockchip
|
||||
machine-$(CONFIG_ARCH_S5PC1XX) += s5pc1xx
|
||||
machine-$(CONFIG_ARCH_SC5XX) += sc5xx
|
||||
machine-$(CONFIG_ARCH_SNAPDRAGON) += snapdragon
|
||||
machine-$(CONFIG_ARCH_SOCFPGA) += socfpga
|
||||
machine-$(CONFIG_ARCH_STM32) += stm32
|
||||
@@ -92,7 +89,6 @@ machine-$(CONFIG_ARCH_OCTEONTX) += octeontx
|
||||
machine-$(CONFIG_ARCH_OCTEONTX2) += octeontx2
|
||||
machine-$(CONFIG_ARCH_UNIPHIER) += uniphier
|
||||
machine-$(CONFIG_ARCH_VERSAL) += versal
|
||||
machine-$(CONFIG_ARCH_VERSAL2) += versal2
|
||||
machine-$(CONFIG_ARCH_VERSAL_NET) += versal-net
|
||||
machine-$(CONFIG_ARCH_ZYNQ) += zynq
|
||||
machine-$(CONFIG_ARCH_ZYNQMP) += zynqmp
|
||||
@@ -108,7 +104,7 @@ libs-y += $(machdirs)
|
||||
|
||||
head-y := arch/arm/cpu/$(CPU)/start.o
|
||||
|
||||
ifeq ($(CONFIG_XPL_BUILD),y)
|
||||
ifeq ($(CONFIG_SPL_BUILD),y)
|
||||
ifeq ($(CONFIG_SYS_SOC)$(CONFIG_SPL_FRAMEWORK),"mxs")
|
||||
head-y := arch/arm/cpu/arm926ejs/mxs/start.o
|
||||
endif
|
||||
|
@@ -40,7 +40,7 @@ PLATFORM_ELFFLAGS += -B arm -O elf32-littlearm
|
||||
endif
|
||||
|
||||
# Choose between ARM/Thumb instruction sets
|
||||
ifeq ($(CONFIG_$(PHASE_)SYS_THUMB_BUILD),y)
|
||||
ifeq ($(CONFIG_$(SPL_)SYS_THUMB_BUILD),y)
|
||||
AFLAGS_IMPLICIT_IT := $(call as-option,-Wa$(comma)-mimplicit-it=always)
|
||||
PF_CPPFLAGS_ARM := $(AFLAGS_IMPLICIT_IT) \
|
||||
$(call cc-option, -mthumb -mthumb-interwork,\
|
||||
@@ -53,7 +53,7 @@ PF_CPPFLAGS_ARM := $(call cc-option,-marm,) \
|
||||
endif
|
||||
|
||||
# Only test once
|
||||
ifeq ($(CONFIG_$(PHASE_)SYS_THUMB_BUILD),y)
|
||||
ifeq ($(CONFIG_$(SPL_)SYS_THUMB_BUILD),y)
|
||||
archprepare: checkthumb checkgcc6
|
||||
|
||||
checkthumb:
|
||||
@@ -99,7 +99,7 @@ PLATFORM_CPPFLAGS += $(PF_CPPFLAGS_ARM) $(PF_CPPFLAGS_ABI)
|
||||
ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
|
||||
# This file is parsed many times, so the string may get added multiple
|
||||
# times. Also, the prefix needs to be different based on whether
|
||||
# CONFIG_XPL_BUILD is defined or not. 'filter-out' the existing entry
|
||||
# CONFIG_SPL_BUILD is defined or not. 'filter-out' the existing entry
|
||||
# before adding the correct one.
|
||||
PLATFORM_LIBS := arch/arm/lib/eabi_compat.o \
|
||||
$(filter-out arch/arm/lib/eabi_compat.o, $(PLATFORM_LIBS))
|
||||
@@ -116,7 +116,7 @@ LDFLAGS_u-boot += -pie
|
||||
#
|
||||
# http://sourceware.org/bugzilla/show_bug.cgi?id=12532
|
||||
#
|
||||
ifeq ($(CONFIG_$(PHASE_)SYS_THUMB_BUILD),y)
|
||||
ifeq ($(CONFIG_$(SPL_)SYS_THUMB_BUILD),y)
|
||||
ifeq ($(GAS_BUG_12532),)
|
||||
export GAS_BUG_12532:=$(shell if [ $(call binutils-version) -lt 0222 ] ; \
|
||||
then echo y; else echo n; fi)
|
||||
@@ -126,7 +126,7 @@ PLATFORM_RELFLAGS += -fno-optimize-sibling-calls
|
||||
endif
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_XPL_BUILD),y)
|
||||
ifneq ($(CONFIG_SPL_BUILD),y)
|
||||
# Check that only R_ARM_RELATIVE relocations are generated.
|
||||
INPUTS-y += checkarmreloc
|
||||
# The movt / movw can hardcode 16 bit parts of the addresses in the
|
||||
@@ -160,7 +160,7 @@ endif
|
||||
ifdef CONFIG_MACH_IMX
|
||||
ifneq ($(CONFIG_IMX_CONFIG),"")
|
||||
ifdef CONFIG_SPL
|
||||
ifndef CONFIG_XPL_BUILD
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
INPUTS-y += SPL
|
||||
endif
|
||||
else
|
||||
|
@@ -5,6 +5,6 @@
|
||||
|
||||
obj-y = cpu.o
|
||||
|
||||
ifneq ($(CONFIG_XPL_BUILD),y)
|
||||
ifneq ($(CONFIG_SPL_BUILD),y)
|
||||
obj-$(CONFIG_EFI_LOADER) += sctlr.o
|
||||
endif
|
||||
|
@@ -14,6 +14,7 @@
|
||||
* CPU specific code
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <irq_func.h>
|
||||
@@ -116,15 +117,3 @@ void enable_caches(void)
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !CONFIG_IS_ENABLED(SYS_ICACHE_OFF)
|
||||
/* Invalidate entire I-cache */
|
||||
void invalidate_icache_all(void)
|
||||
{
|
||||
unsigned long i = 0;
|
||||
|
||||
asm ("mcr p15, 0, %0, c7, c5, 0" : : "r" (i));
|
||||
}
|
||||
#else
|
||||
void invalidate_icache_all(void) {}
|
||||
#endif
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* (c) 2007 Pengutronix, Sascha Hauer <s.hauer@pengutronix.de>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
||||
|
@@ -4,6 +4,7 @@
|
||||
* Sascha Hauer, Pengutronix
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <div64.h>
|
||||
#include <init.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
|
@@ -4,6 +4,7 @@
|
||||
* Sascha Hauer, Pengutronix
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <asm/arch/imx-regs.h>
|
||||
#include <asm/io.h>
|
||||
|
@@ -33,7 +33,11 @@ SECTIONS
|
||||
.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
|
||||
. = ALIGN(4);
|
||||
__image_copy_end = .;
|
||||
_end = .;
|
||||
|
||||
.end :
|
||||
{
|
||||
*(.__end)
|
||||
}
|
||||
|
||||
.bss :
|
||||
{
|
||||
|
@@ -65,7 +65,7 @@ cpu_init_crit:
|
||||
* When booting from NAND - it has definitely been a reset, so, no need
|
||||
* to flush caches and disable the MMU
|
||||
*/
|
||||
#ifndef CONFIG_XPL_BUILD
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
/*
|
||||
* flush v4 I/D caches
|
||||
*/
|
||||
|
@@ -9,7 +9,7 @@
|
||||
* Alex Zuepke <azu@sysgo.de>
|
||||
*/
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <common.h>
|
||||
|
||||
#if defined(CONFIG_ARCH_TEGRA)
|
||||
static ulong timestamp;
|
||||
|
@@ -9,6 +9,6 @@ obj-y += cpu.o
|
||||
|
||||
# some files can only build in ARM mode
|
||||
|
||||
ifdef CONFIG_$(PHASE_)SYS_THUMB_BUILD
|
||||
ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
|
||||
CFLAGS_cpu.o := -marm
|
||||
endif
|
||||
|
@@ -12,6 +12,7 @@
|
||||
* CPU specific code
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <irq_func.h>
|
||||
|
@@ -8,6 +8,7 @@
|
||||
*/
|
||||
|
||||
#include <asm-offsets.h>
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
|
||||
/*
|
||||
|
@@ -6,7 +6,7 @@
|
||||
extra-y = start.o
|
||||
obj-y = cpu.o cache.o
|
||||
|
||||
ifdef CONFIG_XPL_BUILD
|
||||
ifdef CONFIG_SPL_BUILD
|
||||
ifdef CONFIG_SPL_NO_CPU_SUPPORT
|
||||
extra-y :=
|
||||
endif
|
||||
@@ -17,7 +17,7 @@ obj-$(CONFIG_ARCH_SUNXI) += sunxi/
|
||||
|
||||
# some files can only build in ARM or THUMB2, not THUMB1
|
||||
|
||||
ifdef CONFIG_$(PHASE_)SYS_THUMB_BUILD
|
||||
ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD
|
||||
ifndef CONFIG_HAS_THUMB2
|
||||
|
||||
CFLAGS_cpu.o := -marm
|
||||
|
@@ -5,8 +5,8 @@
|
||||
*/
|
||||
#include <cpu_func.h>
|
||||
#include <asm/cache.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
#include <common.h>
|
||||
|
||||
#if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF)
|
||||
void invalidate_dcache_all(void)
|
||||
@@ -89,8 +89,3 @@ void enable_caches(void)
|
||||
dcache_enable();
|
||||
#endif
|
||||
}
|
||||
|
||||
int __weak pgprot_set_attrs(phys_addr_t addr, size_t size, enum pgprot_attrs perm)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@@ -12,6 +12,7 @@
|
||||
* CPU specific code
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <irq_func.h>
|
||||
@@ -44,6 +45,7 @@ int cleanup_before_linux (void)
|
||||
|
||||
disable_interrupts();
|
||||
|
||||
|
||||
/* turn off I/D-cache */
|
||||
icache_disable();
|
||||
dcache_disable();
|
||||
|
@@ -3,11 +3,11 @@
|
||||
# (C) Copyright 2000-2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
|
||||
extra-$(CONFIG_XPL_BUILD) := start.o
|
||||
extra-$(CONFIG_SPL_BUILD) := start.o
|
||||
|
||||
obj-y = clock.o mxs.o iomux.o timer.o
|
||||
|
||||
ifdef CONFIG_XPL_BUILD
|
||||
ifdef CONFIG_SPL_BUILD
|
||||
obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
|
||||
endif
|
||||
|
||||
|
@@ -9,6 +9,7 @@
|
||||
* Copyright (C) 2010 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <log.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/io.h>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* <armlinux@phytec.de>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/clock.h>
|
||||
|
@@ -9,6 +9,7 @@
|
||||
* Copyright (C) 2010 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <hang.h>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* on behalf of DENX Software Engineering GmbH
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <init.h>
|
||||
#include <log.h>
|
||||
@@ -117,7 +118,7 @@ static void mxs_spl_console_init(void)
|
||||
gd->bd = &bdata;
|
||||
gd->baudrate = CONFIG_BAUDRATE;
|
||||
serial_init();
|
||||
gd->flags |= GD_FLG_HAVE_CONSOLE;
|
||||
gd->have_console = 1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* on behalf of DENX Software Engineering GmbH
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <log.h>
|
||||
#include <asm/io.h>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* on behalf of DENX Software Engineering GmbH
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <init.h>
|
||||
#include <log.h>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* on behalf of DENX Software Engineering GmbH
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <config.h>
|
||||
#include <hang.h>
|
||||
#include <log.h>
|
||||
|
@@ -20,6 +20,7 @@
|
||||
|
||||
#include <asm-offsets.h>
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <system-constants.h>
|
||||
|
||||
/*
|
||||
|
@@ -9,6 +9,7 @@
|
||||
* (C) Copyright 2009-2010 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <time.h>
|
||||
#include <asm/global_data.h>
|
||||
|
@@ -49,7 +49,11 @@ SECTIONS
|
||||
__bss_end = .;
|
||||
}
|
||||
|
||||
_end = .;
|
||||
.end :
|
||||
{
|
||||
*(.__end)
|
||||
}
|
||||
|
||||
_image_binary_end = .;
|
||||
|
||||
.dynsym _image_binary_end : { *(.dynsym) }
|
||||
|
@@ -16,6 +16,7 @@
|
||||
|
||||
#include <asm-offsets.h>
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <linux/linkage.h>
|
||||
|
||||
/*
|
||||
|
@@ -1,6 +1,6 @@
|
||||
# Build a combined spl + u-boot image
|
||||
ifdef CONFIG_SPL
|
||||
ifndef CONFIG_XPL_BUILD
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
ALL-y += u-boot-sunxi-with-spl.bin
|
||||
endif
|
||||
endif
|
||||
|
@@ -12,6 +12,7 @@
|
||||
* CPU specific code
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <irq_func.h>
|
||||
|
@@ -12,12 +12,12 @@ obj-y += syslib.o
|
||||
|
||||
obj-$(CONFIG_SYS_ARM_MPU) += mpu_v7r.o
|
||||
|
||||
ifneq ($(CONFIG_XPL_BUILD),y)
|
||||
ifneq ($(CONFIG_SPL_BUILD),y)
|
||||
obj-$(CONFIG_EFI_LOADER) += sctlr.o
|
||||
obj-$(CONFIG_ARMV7_NONSEC) += exception_level.o
|
||||
endif
|
||||
|
||||
ifneq ($(CONFIG_$(PHASE_)SKIP_LOWLEVEL_INIT),y)
|
||||
ifneq ($(CONFIG_$(SPL_)SKIP_LOWLEVEL_INIT),y)
|
||||
obj-y += lowlevel_init.o
|
||||
endif
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
* Texas Instruments Incorporated, <www.ti.com>
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <time.h>
|
||||
#include <asm/global_data.h>
|
||||
@@ -49,6 +49,7 @@ unsigned long long get_ticks(void)
|
||||
return (((unsigned long long)gd->arch.tbu) << 32) | gd->arch.tbl;
|
||||
}
|
||||
|
||||
|
||||
ulong timer_get_boot_us(void)
|
||||
{
|
||||
if (!gd->arch.timer_rate_hz)
|
||||
|
@@ -9,6 +9,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2013 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -9,6 +9,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <log.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/delay.h>
|
||||
@@ -84,6 +85,7 @@ static int peri_clk_enable(struct clk *c, int enable)
|
||||
struct bcm_clk_gate *gate = &cd->gate;
|
||||
void *base = (void *)c->ccu_clk_mgr_base;
|
||||
|
||||
|
||||
debug("%s: %s\n", __func__, c->name);
|
||||
|
||||
clk_get_rate(c); /* Make sure rate and sel are filled in */
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/errno.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2013 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
#include "clk-core.h"
|
||||
|
@@ -9,6 +9,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2013 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -9,6 +9,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <log.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/delay.h>
|
||||
@@ -84,6 +85,7 @@ static int peri_clk_enable(struct clk *c, int enable)
|
||||
struct bcm_clk_gate *gate = &cd->gate;
|
||||
void *base = (void *)c->ccu_clk_mgr_base;
|
||||
|
||||
|
||||
debug("%s: %s\n", __func__, c->name);
|
||||
|
||||
clk_get_rate(c); /* Make sure rate and sel are filled in */
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/delay.h>
|
||||
#include <linux/errno.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2013 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <linux/errno.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
#include "clk-core.h"
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2013 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/sysmap.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
|
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
#include <cpu_func.h>
|
||||
#include <asm/cache.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/types.h>
|
||||
#include <common.h>
|
||||
#include <asm/armv7.h>
|
||||
#include <asm/utils.h>
|
||||
|
||||
@@ -210,8 +210,3 @@ __weak void v7_outer_cache_flush_all(void) {}
|
||||
__weak void v7_outer_cache_inval_all(void) {}
|
||||
__weak void v7_outer_cache_flush_range(u32 start, u32 end) {}
|
||||
__weak void v7_outer_cache_inval_range(u32 start, u32 end) {}
|
||||
|
||||
int __weak pgprot_set_attrs(phys_addr_t addr, size_t size, enum pgprot_attrs perm)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
@@ -7,6 +7,7 @@
|
||||
* CP15 specific code
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/cache.h>
|
||||
|
@@ -14,6 +14,7 @@
|
||||
* CPU specific code
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <irq_func.h>
|
||||
@@ -32,7 +33,7 @@ int cleanup_before_linux_select(int flags)
|
||||
*
|
||||
* we turn off caches etc ...
|
||||
*/
|
||||
#ifndef CONFIG_XPL_BUILD
|
||||
#ifndef CONFIG_SPL_BUILD
|
||||
disable_interrupts();
|
||||
#endif
|
||||
|
||||
|
@@ -8,12 +8,13 @@
|
||||
* secure mode before booting an operating system.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <bootm.h>
|
||||
#include <cpu_func.h>
|
||||
#include <log.h>
|
||||
#include <setjmp.h>
|
||||
#include <asm/armv7.h>
|
||||
#include <asm/secure.h>
|
||||
#include <asm/setjmp.h>
|
||||
|
||||
/**
|
||||
* entry_non_secure() - entry point when switching to non-secure mode
|
||||
@@ -24,7 +25,7 @@
|
||||
*
|
||||
* @non_secure_jmp: jump buffer for restoring stack and registers
|
||||
*/
|
||||
static void entry_non_secure(jmp_buf non_secure_jmp)
|
||||
static void entry_non_secure(struct jmp_buf_data *non_secure_jmp)
|
||||
{
|
||||
dcache_enable();
|
||||
debug("Reached non-secure mode\n");
|
||||
@@ -42,10 +43,10 @@ static void entry_non_secure(jmp_buf non_secure_jmp)
|
||||
void switch_to_non_secure_mode(void)
|
||||
{
|
||||
static bool is_nonsec;
|
||||
jmp_buf non_secure_jmp;
|
||||
struct jmp_buf_data non_secure_jmp;
|
||||
|
||||
if (armv7_boot_nonsec() && !is_nonsec) {
|
||||
if (setjmp(non_secure_jmp))
|
||||
if (setjmp(&non_secure_jmp))
|
||||
return;
|
||||
dcache_disable(); /* flush cache before switch to HYP */
|
||||
armv7_init_nonsec();
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/iproc-common/armpll.h>
|
||||
#include <asm/iproc-common/sysmap.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/cache.h>
|
||||
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Broadcom Corporation.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <div64.h>
|
||||
#include <init.h>
|
||||
#include <time.h>
|
||||
|
@@ -26,8 +26,8 @@ WEAK(lowlevel_init)
|
||||
/*
|
||||
* Setup a temporary stack. Global data is not available yet.
|
||||
*/
|
||||
#if CONFIG_IS_ENABLED(HAVE_INIT_STACK)
|
||||
ldr sp, =CONFIG_VAL(STACK)
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK)
|
||||
ldr sp, =CONFIG_SPL_STACK
|
||||
#else
|
||||
ldr sp, =SYS_INIT_SP_ADDR
|
||||
#endif
|
||||
@@ -39,7 +39,7 @@ WEAK(lowlevel_init)
|
||||
* Set up global data for boards that still need it. This will be
|
||||
* removed soon.
|
||||
*/
|
||||
#ifdef CONFIG_XPL_BUILD
|
||||
#ifdef CONFIG_SPL_BUILD
|
||||
ldr r9, =gdata
|
||||
#else
|
||||
sub sp, sp, #GD_SIZE
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <clock_legacy.h>
|
||||
#include <asm/global_data.h>
|
||||
#include <asm/io.h>
|
||||
|
@@ -4,6 +4,7 @@
|
||||
* Copyright 2021 NXP
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <cpu_func.h>
|
||||
#include <init.h>
|
||||
#include <net.h>
|
||||
@@ -224,6 +225,7 @@ void enable_caches(void)
|
||||
}
|
||||
#endif /* #if !CONFIG_IS_ENABLED(SYS_DCACHE_OFF) */
|
||||
|
||||
|
||||
uint get_svr(void)
|
||||
{
|
||||
struct ccsr_gur __iomem *gur = (void *)(CFG_SYS_FSL_GUTS_ADDR);
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <clock_legacy.h>
|
||||
#include <net.h>
|
||||
#include <asm/global_data.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
|
||||
#include "fsl_epu.h"
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <asm/arch/fsl_serdes.h>
|
||||
#include <asm/arch/immap_ls102xa.h>
|
||||
#include <linux/errno.h>
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <common.h>
|
||||
#include <asm/arch/fsl_serdes.h>
|
||||
#include <asm/arch/immap_ls102xa.h>
|
||||
|
||||
|
@@ -3,7 +3,7 @@
|
||||
* Copyright 2015 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <log.h>
|
||||
#include <asm/arch/clock.h>
|
||||
#include <asm/io.h>
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <spl.h>
|
||||
|
||||
u32 spl_boot_device(void)
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright 2014 Freescale Semiconductor, Inc.
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <init.h>
|
||||
#include <time.h>
|
||||
#include <asm/global_data.h>
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* Lokesh Vutla <lokeshvutla@ti.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <cpu_func.h>
|
||||
#include <asm/armv7.h>
|
||||
|
@@ -8,7 +8,7 @@ ifdef CONFIG_ARCH_NEXELL
|
||||
obj-$(CONFIG_S5P4418_ONEWIRE) += pwm.o
|
||||
else
|
||||
obj-y += cpu_info.o
|
||||
ifndef CONFIG_XPL_BUILD
|
||||
ifndef CONFIG_SPL_BUILD
|
||||
obj-y += timer.o
|
||||
obj-y += sromc.o
|
||||
endif
|
||||
|
@@ -3,6 +3,7 @@
|
||||
* Copyright (C) 2009 Samsung Electronics
|
||||
* Minkyu Kang <mk7.kang@samsung.com>
|
||||
*/
|
||||
#include <common.h>
|
||||
#include <display_options.h>
|
||||
#include <fdtdec.h>
|
||||
#include <init.h>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
* Donghwa Lee <dh09.lee@samsung.com>
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <errno.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/pwm.h>
|
||||
|
@@ -4,7 +4,7 @@
|
||||
* Naveen Krishna Ch <ch.naveen@samsung.com>
|
||||
*/
|
||||
|
||||
#include <config.h>
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch/sromc.h>
|
||||
|
||||
|
@@ -6,6 +6,7 @@
|
||||
* Minkyu Kang <mk7.kang@samsung.com>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <div64.h>
|
||||
#include <init.h>
|
||||
#include <time.h>
|
||||
|
@@ -4,6 +4,7 @@
|
||||
* Hyunseok, Jung <hsjung@nexell.co.kr>
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <command.h>
|
||||
#include <asm/system.h>
|
||||
#include <asm/cache.h>
|
||||
|
@@ -182,8 +182,6 @@ saved_args:
|
||||
.word 0
|
||||
.endr
|
||||
END(saved_args)
|
||||
|
||||
.section .text
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_ARMV7_LPAE
|
||||
@@ -281,8 +279,8 @@ ENTRY(cpu_init_cp15)
|
||||
orr r2, r4, r2 @ r2 has combined CPU variant + revision
|
||||
|
||||
/* Early stack for ERRATA that needs into call C code */
|
||||
#if CONFIG_IS_ENABLED(HAVE_INIT_STACK)
|
||||
ldr r0, =CONFIG_VAL(STACK)
|
||||
#if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK)
|
||||
ldr r0, =(CONFIG_SPL_STACK)
|
||||
#else
|
||||
ldr r0, =(SYS_INIT_SP_ADDR)
|
||||
#endif
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user