summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLokesh Vutla2020-08-11 16:33:08 -0500
committerDave Gerlach2020-08-14 12:11:07 -0500
commit10d3f3d1de829e02edacfa3a5d1c660263ef0820 (patch)
tree549774c581049afed784b4fe7cdbc916d7e3803e
parent0a2aa9e6e0a843c40eea51dc5a0bb53ff83f14ef (diff)
downloadk3-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--Makefile7
-rw-r--r--soc/am65x/Makefile34
-rw-r--r--soc/am65x_sr2/Makefile34
-rw-r--r--soc/j7200/Makefile41
-rw-r--r--soc/j721e/Makefile34
5 files changed, 146 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 6e955dd71..e16deb535 100644
--- a/Makefile
+++ b/Makefile
@@ -38,6 +38,8 @@
38SOC ?= am65x 38SOC ?= am65x
39CONFIG ?= evm 39CONFIG ?= evm
40 40
41include soc/$(SOC)/Makefile
42
41BUILD_SRC ?= . 43BUILD_SRC ?= .
42O ?= out 44O ?= out
43BIN_DIR ?= . 45BIN_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")
123endif 125endif
124 126
125.PHONY: all _objtree_build 127.PHONY: _objtree_build
126
127all: _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
34all: _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
34all: _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
33SBL_LOADADDDR ?= 0x41c00000
34COMBINED_BRDCFG_LOADADDR ?= 0x7f000
35
36.PHONY: all
37ifeq (,$(SBL))
38all: _objtree_build $(ITB) sysfw.itb
39else
40all: _objtree_build $(ITB) sysfw.itb tiboot3.bin
41endif
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
34all: _objtree_build $(ITB) sysfw.itb