diff options
author | Lokesh Vutla | 2020-08-11 16:33:08 -0500 |
---|---|---|
committer | Dave Gerlach | 2020-08-14 12:11:07 -0500 |
commit | 10d3f3d1de829e02edacfa3a5d1c660263ef0820 (patch) | |
tree | 549774c581049afed784b4fe7cdbc916d7e3803e | |
parent | 0a2aa9e6e0a843c40eea51dc5a0bb53ff83f14ef (diff) | |
download | k3-image-gen-10d3f3d1de829e02edacfa3a5d1c660263ef0820.tar.gz k3-image-gen-10d3f3d1de829e02edacfa3a5d1c660263ef0820.tar.xz k3-image-gen-10d3f3d1de829e02edacfa3a5d1c660263ef0820.zip |
soc: Introduce SoC specific Makefiles
Now that SoCs have different boot image targets, introduce SOC specific
Makefiles to represent boot targets. Below are boot targets:
- AM65x: sysfw.itb
- AM65x SR2: sysfw.itb
- J721E: sysfw.itb
- J7200: tiboot3.bin, sysfw.itb
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | soc/am65x/Makefile | 34 | ||||
-rw-r--r-- | soc/am65x_sr2/Makefile | 34 | ||||
-rw-r--r-- | soc/j7200/Makefile | 41 | ||||
-rw-r--r-- | soc/j721e/Makefile | 34 |
5 files changed, 146 insertions, 4 deletions
@@ -38,6 +38,8 @@ | |||
38 | SOC ?= am65x | 38 | SOC ?= am65x |
39 | CONFIG ?= evm | 39 | CONFIG ?= evm |
40 | 40 | ||
41 | include soc/$(SOC)/Makefile | ||
42 | |||
41 | BUILD_SRC ?= . | 43 | BUILD_SRC ?= . |
42 | O ?= out | 44 | O ?= out |
43 | BIN_DIR ?= . | 45 | BIN_DIR ?= . |
@@ -122,10 +124,7 @@ ifeq ($(shell which python3),) | |||
122 | $(error "No python3 in $(PATH), consider installing python3") | 124 | $(error "No python3 in $(PATH), consider installing python3") |
123 | endif | 125 | endif |
124 | 126 | ||
125 | .PHONY: all _objtree_build | 127 | .PHONY: _objtree_build |
126 | |||
127 | all: _objtree_build $(ITB) sysfw.itb | ||
128 | |||
129 | _objtree_build: | 128 | _objtree_build: |
130 | @mkdir -p $(objroot) $(soc_objroot) $(binroot) | 129 | @mkdir -p $(objroot) $(soc_objroot) $(binroot) |
131 | 130 | ||
diff --git a/soc/am65x/Makefile b/soc/am65x/Makefile new file mode 100644 index 000000000..5be7f90c8 --- /dev/null +++ b/soc/am65x/Makefile | |||
@@ -0,0 +1,34 @@ | |||
1 | # | ||
2 | # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | # | ||
4 | # Redistribution and use in source and binary forms, with or without | ||
5 | # modification, are permitted provided that the following conditions | ||
6 | # are met: | ||
7 | # | ||
8 | # Redistributions of source code must retain the above copyright | ||
9 | # notice, this list of conditions and the following disclaimer. | ||
10 | # | ||
11 | # Redistributions in binary form must reproduce the above copyright | ||
12 | # notice, this list of conditions and the following disclaimer in the | ||
13 | # documentation and/or other materials provided with the | ||
14 | # distribution. | ||
15 | # | ||
16 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | # its contributors may be used to endorse or promote products derived | ||
18 | # from this software without specific prior written permission. | ||
19 | # | ||
20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | # | ||
32 | |||
33 | .PHONY: all | ||
34 | all: _objtree_build $(ITB) sysfw.itb | ||
diff --git a/soc/am65x_sr2/Makefile b/soc/am65x_sr2/Makefile new file mode 100644 index 000000000..5be7f90c8 --- /dev/null +++ b/soc/am65x_sr2/Makefile | |||
@@ -0,0 +1,34 @@ | |||
1 | # | ||
2 | # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | # | ||
4 | # Redistribution and use in source and binary forms, with or without | ||
5 | # modification, are permitted provided that the following conditions | ||
6 | # are met: | ||
7 | # | ||
8 | # Redistributions of source code must retain the above copyright | ||
9 | # notice, this list of conditions and the following disclaimer. | ||
10 | # | ||
11 | # Redistributions in binary form must reproduce the above copyright | ||
12 | # notice, this list of conditions and the following disclaimer in the | ||
13 | # documentation and/or other materials provided with the | ||
14 | # distribution. | ||
15 | # | ||
16 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | # its contributors may be used to endorse or promote products derived | ||
18 | # from this software without specific prior written permission. | ||
19 | # | ||
20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | # | ||
32 | |||
33 | .PHONY: all | ||
34 | all: _objtree_build $(ITB) sysfw.itb | ||
diff --git a/soc/j7200/Makefile b/soc/j7200/Makefile new file mode 100644 index 000000000..bdbc50f25 --- /dev/null +++ b/soc/j7200/Makefile | |||
@@ -0,0 +1,41 @@ | |||
1 | # | ||
2 | # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | # | ||
4 | # Redistribution and use in source and binary forms, with or without | ||
5 | # modification, are permitted provided that the following conditions | ||
6 | # are met: | ||
7 | # | ||
8 | # Redistributions of source code must retain the above copyright | ||
9 | # notice, this list of conditions and the following disclaimer. | ||
10 | # | ||
11 | # Redistributions in binary form must reproduce the above copyright | ||
12 | # notice, this list of conditions and the following disclaimer in the | ||
13 | # documentation and/or other materials provided with the | ||
14 | # distribution. | ||
15 | # | ||
16 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | # its contributors may be used to endorse or promote products derived | ||
18 | # from this software without specific prior written permission. | ||
19 | # | ||
20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | # | ||
32 | |||
33 | SBL_LOADADDDR ?= 0x41c00000 | ||
34 | COMBINED_BRDCFG_LOADADDR ?= 0x7f000 | ||
35 | |||
36 | .PHONY: all | ||
37 | ifeq (,$(SBL)) | ||
38 | all: _objtree_build $(ITB) sysfw.itb | ||
39 | else | ||
40 | all: _objtree_build $(ITB) sysfw.itb tiboot3.bin | ||
41 | endif | ||
diff --git a/soc/j721e/Makefile b/soc/j721e/Makefile new file mode 100644 index 000000000..5be7f90c8 --- /dev/null +++ b/soc/j721e/Makefile | |||
@@ -0,0 +1,34 @@ | |||
1 | # | ||
2 | # Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/ | ||
3 | # | ||
4 | # Redistribution and use in source and binary forms, with or without | ||
5 | # modification, are permitted provided that the following conditions | ||
6 | # are met: | ||
7 | # | ||
8 | # Redistributions of source code must retain the above copyright | ||
9 | # notice, this list of conditions and the following disclaimer. | ||
10 | # | ||
11 | # Redistributions in binary form must reproduce the above copyright | ||
12 | # notice, this list of conditions and the following disclaimer in the | ||
13 | # documentation and/or other materials provided with the | ||
14 | # distribution. | ||
15 | # | ||
16 | # Neither the name of Texas Instruments Incorporated nor the names of | ||
17 | # its contributors may be used to endorse or promote products derived | ||
18 | # from this software without specific prior written permission. | ||
19 | # | ||
20 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
21 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
22 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR | ||
23 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
24 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
25 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | ||
26 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
27 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
28 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
29 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
30 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
31 | # | ||
32 | |||
33 | .PHONY: all | ||
34 | all: _objtree_build $(ITB) sysfw.itb | ||