diff options
author | Stephen Warren <swarren@nvidia.com> | 2013-10-03 12:45:34 -0600 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-10-03 13:09:05 -0600 |
commit | c86360be8425c33595b0c6f630365ab0ba3c06b1 (patch) | |
tree | c08e0e67d49a1e8c9bae214823a6fd521f0638c4 /tegra20/avionic-design | |
parent | caa74de0a7ebcbafd4c81809587316c1a42188e0 (diff) | |
download | cbootimage-configs-c86360be8425c33595b0c6f630365ab0ba3c06b1.tar.gz |
Build using Makefiles, add separate bct/img targets
In some situations, one may only need BCT binaries and not flashable
image binaries. Hence, it's useful to allow BCTs and flashable image
to be built separately, rather than always building both together.
While re-writing the build system, convert from shell-scripts to
Makefiles. Now, one can "make", "make bcts", or "make images", all with
appropriate dependency checking.
Many Avionic Design boards use a carrier/module design, with the carrier
and module files stored in separate directories. Use symlinks to handle
this, rather than complicating the build system with support for files
from other directories.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'tegra20/avionic-design')
12 files changed, 102 insertions, 24 deletions
diff --git a/tegra20/avionic-design/medcom-wide/Makefile b/tegra20/avionic-design/medcom-wide/Makefile new file mode 100644 index 0000000..7d37aa7 --- /dev/null +++ b/tegra20/avionic-design/medcom-wide/Makefile @@ -0,0 +1,30 @@ +# Copyright (C) 2013 Avionic Design GmbH +# Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +include ../../../build/pre.mk + +soc := t20 + +bcts := \ + Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct + +images := \ + tegra20-medcom-wide.img + +include ../../../build/post.mk diff --git a/tegra20/avionic-design/medcom-wide/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg b/tegra20/avionic-design/medcom-wide/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg new file mode 120000 index 0000000..6c76445 --- /dev/null +++ b/tegra20/avionic-design/medcom-wide/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg @@ -0,0 +1 @@ +../tamonten/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg
\ No newline at end of file diff --git a/tegra20/avionic-design/medcom-wide/build.sh b/tegra20/avionic-design/medcom-wide/build.sh index 9fa70e5..7dc6a05 100755 --- a/tegra20/avionic-design/medcom-wide/build.sh +++ b/tegra20/avionic-design/medcom-wide/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2013 Avionic Design GmbH +# Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages @@ -18,10 +18,4 @@ # misrepresented as being the original software. # 3. This notice may not be removed or altered from any source distribution. -set -e -set -x - -cbootimage -t20 -gbct \ - ../tamonten/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg \ - Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct -cbootimage -t20 ../tamonten/tegra20.img.cfg tegra20-medcom-wide.img +make diff --git a/tegra20/avionic-design/medcom-wide/tegra20-medcom-wide.img.cfg b/tegra20/avionic-design/medcom-wide/tegra20-medcom-wide.img.cfg new file mode 120000 index 0000000..46d2243 --- /dev/null +++ b/tegra20/avionic-design/medcom-wide/tegra20-medcom-wide.img.cfg @@ -0,0 +1 @@ +../tamonten/tegra20.img.cfg
\ No newline at end of file diff --git a/tegra20/avionic-design/plutux/Makefile b/tegra20/avionic-design/plutux/Makefile new file mode 100644 index 0000000..72ed811 --- /dev/null +++ b/tegra20/avionic-design/plutux/Makefile @@ -0,0 +1,30 @@ +# Copyright (C) 2013 Avionic Design GmbH +# Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +include ../../../build/pre.mk + +soc := t20 + +bcts := \ + Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct + +images := \ + tegra20-plutux.img + +include ../../../build/post.mk diff --git a/tegra20/avionic-design/plutux/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg b/tegra20/avionic-design/plutux/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg new file mode 120000 index 0000000..6c76445 --- /dev/null +++ b/tegra20/avionic-design/plutux/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg @@ -0,0 +1 @@ +../tamonten/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg
\ No newline at end of file diff --git a/tegra20/avionic-design/plutux/build.sh b/tegra20/avionic-design/plutux/build.sh index 382e451..7dc6a05 100755 --- a/tegra20/avionic-design/plutux/build.sh +++ b/tegra20/avionic-design/plutux/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2013 Avionic Design GmbH +# Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages @@ -18,10 +18,4 @@ # misrepresented as being the original software. # 3. This notice may not be removed or altered from any source distribution. -set -e -set -x - -cbootimage -t20 -gbct \ - ../tamonten/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg \ - Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct -cbootimage -t20 ../tamonten/tegra20.img.cfg tegra20-plutux.img +make diff --git a/tegra20/avionic-design/plutux/tegra20-plutux.img.cfg b/tegra20/avionic-design/plutux/tegra20-plutux.img.cfg new file mode 120000 index 0000000..46d2243 --- /dev/null +++ b/tegra20/avionic-design/plutux/tegra20-plutux.img.cfg @@ -0,0 +1 @@ +../tamonten/tegra20.img.cfg
\ No newline at end of file diff --git a/tegra20/avionic-design/tec/Makefile b/tegra20/avionic-design/tec/Makefile new file mode 100644 index 0000000..f5b81b6 --- /dev/null +++ b/tegra20/avionic-design/tec/Makefile @@ -0,0 +1,30 @@ +# Copyright (C) 2013 Avionic Design GmbH +# Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. +# +# This software is provided 'as-is', without any express or implied +# warranty. In no event will the authors be held liable for any damages +# arising from the use of this software. +# +# Permission is granted to anyone to use this software for any purpose, +# including commercial applications, and to alter it and redistribute it +# freely, subject to the following restrictions: +# +# 1. The origin of this software must not be misrepresented; you must not +# claim that you wrote the original software. If you use this software +# in a product, an acknowledgment in the product documentation would be +# appreciated but is not required. +# 2. Altered source versions must be plainly marked as such, and must not be +# misrepresented as being the original software. +# 3. This notice may not be removed or altered from any source distribution. + +include ../../../build/pre.mk + +soc := t20 + +bcts := \ + Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct + +images := \ + tegra20-tec.img + +include ../../../build/post.mk diff --git a/tegra20/avionic-design/tec/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg b/tegra20/avionic-design/tec/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg new file mode 120000 index 0000000..6c76445 --- /dev/null +++ b/tegra20/avionic-design/tec/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg @@ -0,0 +1 @@ +../tamonten/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg
\ No newline at end of file diff --git a/tegra20/avionic-design/tec/build.sh b/tegra20/avionic-design/tec/build.sh index 2a49fdd..7dc6a05 100755 --- a/tegra20/avionic-design/tec/build.sh +++ b/tegra20/avionic-design/tec/build.sh @@ -1,6 +1,6 @@ #!/bin/sh -# Copyright (C) 2013 Avionic Design GmbH +# Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved. # # This software is provided 'as-is', without any express or implied # warranty. In no event will the authors be held liable for any damages @@ -18,10 +18,4 @@ # misrepresented as being the original software. # 3. This notice may not be removed or altered from any source distribution. -set -e -set -x - -cbootimage -t20 -gbct \ - ../tamonten/Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct.cfg \ - Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct -cbootimage -t20 ../tamonten/tegra20.img.cfg tegra20-tec.img +make diff --git a/tegra20/avionic-design/tec/tegra20-tec.img.cfg b/tegra20/avionic-design/tec/tegra20-tec.img.cfg new file mode 120000 index 0000000..46d2243 --- /dev/null +++ b/tegra20/avionic-design/tec/tegra20-tec.img.cfg @@ -0,0 +1 @@ +../tamonten/tegra20.img.cfg
\ No newline at end of file |