CodeSource

Revision as of 15:45, 10 January 2019 by deleted>Frq08988
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

1. Usage[edit source]

This template is used to indicate the URL of any Linux® kernel, U-Boot, TF-A and OP-TEE file used in this user guide.

It takes as first parameter a string that identifies the domain of the file. The possible values are:

  • Linux kernel: the file belongs to the Linux kernel domain.
  • U-Boot: the file belongs to the U-Boot domain.
  • TF-A: the file belongs to the TF-A domain.
  • OP-TEE_OS: the file belongs to the OP-TEE domain.

The second parameter is the relative path of the file from the root URL of the domain:

If the file is a directory (e.g. "arch/arm/boot/dts" directory for the Linux kernel), the parameter must end with the slash (/) character (e.g. ""arch/arm/boot/dts/").

It takes as optional third parameter, the link text (text that is displayed instead of the URL).

Per default, the URL points to the linux-4.19.y (Bootlin alternative: latest stable) version of the Linux kernel, and to the master (Bootlin alternative: latest stable) version of the U-Boot, TF-A or OP-TEE. The optional fourth parameter of this template is used to specify another Linux kernel, U-Boot, TF-A or OP-TEE version than the default one.


Linux kernel:
Regular file

  • {{CodeSource | Linux kernel | Makefile}}
  • {{CodeSource | Linux kernel | Makefile | Linux kernel root makefile - Makefile}}
  • {{CodeSource | Linux kernel | Makefile | | 4.14.48}}
  • {{CodeSource | Linux kernel | Makefile | Linux kernel root makefile - Makefile | 4.14.48}}

Directory

  • {{CodeSource | Linux kernel | arch/arm/boot/dts/}}
  • {{CodeSource | Linux kernel | arch/arm/boot/dts/ | arch/arm/boot/dts/stm32mp15*}}
  • {{CodeSource | Linux kernel | arch/arm/boot/dts/ | | 4.14.48}}
  • {{CodeSource | Linux kernel | arch/arm/boot/dts/ | arch/arm/boot/dts/stm32mp15* | 4.14.48 }}

U-Boot::
Regular file

  • {{CodeSource | U-Boot | Makefile}}
  • {{CodeSource | U-Boot | Makefile | U-Boot root makefile - Makefile}}
  • {{CodeSource | U-Boot | Makefile | | 2018.03}}
  • {{CodeSource | U-Boot | Makefile | U-Boot root makefile - Makefile | 2018.03}}

Directory

  • {{CodeSource | U-Boot | arch/arm/dts/}}
  • {{CodeSource | U-Boot | arch/arm/dts/ | arch/arm/dts/stm32mp15*}}
  • {{CodeSource | U-Boot | arch/arm/dts/ | | 2018.03}}
  • {{CodeSource | U-Boot | arch/arm/dts/ | arch/arm/dts/stm32mp15* | 2018.03}}

TF-A::
Regular file

  • {{CodeSource | TF-A | Makefile}}
  • {{CodeSource | TF-A | Makefile | TF-A root makefile - Makefile}}
  • {{CodeSource | TF-A | Makefile | | 1.4}}
  • {{CodeSource | TF-A | Makefile | TF-A root makefile - Makefile | 1.4}}

Directory

  • {{CodeSource | TF-A | fdts/}}
  • {{CodeSource | TF-A | fdts/ | fdts/stm32mp15*}}
  • {{CodeSource | TF-A | fdts/ | | 1.4}}
  • {{CodeSource | TF-A | fdts/ | fdts/stm32mp15* | 1.4}}

OP-TEE::
Regular file

  • {{CodeSource | OP-TEE_OS | Makefile}}
  • {{CodeSource | OP-TEE_OS | Makefile | OP-TEE OS root makefile - Makefile}}
  • {{CodeSource | OP-TEE_OS | Makefile | | 3.3.0}}
  • {{CodeSource | OP-TEE_OS | Makefile | OP-TEE OS root makefile - Makefile | 3.3.0}}

Directory

  • {{CodeSource | OP-TEE_OS | core/arch/arm/fdts/}}
  • {{CodeSource | OP-TEE_OS | core/arch/arm/fdts/ | core/arch/arm/fdts/stm32mp15*}}
  • {{CodeSource | OP-TEE_OS | core/arch/arm/fdts/ | | 3.3.0}
  • {{CodeSource | OP-TEE_OS | core/arch/arm/fdts/ | core/arch/arm/fdts/stm32mp15* | 3.3.0}}

2. Example[edit source]

Linux kernel:
Regular file

Directory

U-Boot:
Regular file

Directory

TF-A:
Regular file

Directory

OP-TEE_OS:
Regular file

Directory

Bad parameters:

  • Error (unsupported domain)

3. Code[edit source]

Linux kernel:

  • For Kernel.org git

[https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/{{#replace:{{{2|}}}| |}}?h={{#if: {{{4|}}}|v{{#replace:{{{4|}}}||}}|linux-4.19.y}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} {{#if: {{{4|}}}|(v{{#replace:{{{4|}}}| |}})}}]

  • For Bootlin alternative

[https://elixir.bootlin.com/linux/{{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|latest}}/source/{{#replace:{{{2|}}}| |}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} ({{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|latest stable}})]

U-Boot:

  • For U-Boot git

[http://git.denx.de/?p=u-boot.git;a={{#ifeq:{{#sub:{{{2}}}|-1}}|/|tree|blob}};f={{#ifeq:{{#sub:{{{2}}}|-1}}|/|{{#sub:{{{2}}}|0|-1}}|{{#sub:{{{2}}}|0}}}};hb={{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|master}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} ({{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|master}})]

  • For Bootlin alternative

[https://elixir.bootlin.com/u-boot/{{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|latest}}/source/{{#replace:{{{2|}}}| |}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} ({{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|latest stable}})]

TF-A

  • For ARM Trusted Firmware git

[https://github.com/ARM-software/arm-trusted-firmware/blob/{{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|master}}/{{#replace:{{{2|}}}| |}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} ({{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|master}})]

  • For Bootlin alternative

[https://elixir.bootlin.com/arm-trusted-firmware/{{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|latest}}/source/{{#replace:{{{2|}}}| |}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} ({{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|latest stable}})]

OP-TEE_OS

  • For OP-TEE OS git

[https://github.com/OP-TEE/optee_os/blob/{{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|master}}/{{#replace:{{{2|}}}| |}} {{#if: {{{3|}}}|{{{3}}}|{{{2}}}}} ({{#if: {{{4|}}}|v{{#replace:{{{4|}}}| |}}|master}})]

Error (unsupported domain)

No categories assignedEdit