deleted file mode 100755
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# 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.
-
-deps_script=$0
-img_cfg_file=$1
-img_file=$2
-dep_file=$3
-
-rm -f ${dep_file}
-bct=`grep -i bctfile ${img_cfg_file} | sed -e 's/^.*=\s*//' -e s'/[,;].*$//'`
-bootloader=`grep -i bootloader ${img_cfg_file} | sed -e 's/^.*=\s*//' -e s'/[,;].*$//'`
-
-cat > ${dep_file} <<ENDOFHERE
-${img_file}: \\
- ${deps_script} \\
- ${img_cfg_file} \\
- ${bct} \\
- ${bootloader}
-
-${img_cfg_file}:
-
-${bct}:
-
-${bootloader}:
-ENDOFHERE
@@ -20,12 +20,8 @@ bcts: $(bcts)
images: $(images)
-image_deps := $(addprefix .,$(addsuffix .d,$(images)))
--include $(image_deps)
-
%.bct: %.bct.cfg
cbootimage -gbct -$(soc) $< $@
-%.img: %.img.cfg $(bcts)
- ../../../build/gen-image-deps.sh $< $@ .$@.d
+%.img: %.img.cfg $(bcts) $(bootloaders)
cbootimage -$(soc) $< $@
@@ -25,6 +25,9 @@ bcts := \
E1611_Hynix_2GB_H5TC4G63AFR-RDA_792Mhz_r403_v2.bct \
E1611_Hynix_2GB_H5TC4G63MFR-PBA_792Mhz_r403_v05.bct
+bootloaders := \
+ u-boot.bin
+
images := \
dalmore-t40x-1866.img \
dalmore-t40s-1866.img \
@@ -23,6 +23,9 @@ soc := t124
bcts := \
PM375_Hynix_2GB_H5TC4G63AFR_RDA_924MHz.bct
+bootloaders := \
+ u-boot.bin
+
images := \
jetson-tk1-emmc.img
@@ -23,6 +23,9 @@ soc := t124
bcts := \
PM370_Hynix_2GB_H5TC4G63AFR_PBA_924MHz_01212014.bct
+bootloaders := \
+ u-boot.bin
+
images := \
norrin-spi.img
@@ -23,6 +23,9 @@ soc := t124
bcts := \
PM371_Hynix_2GB_H5TC4G63AFR_RDA_792MHz_0719.bct
+bootloaders := \
+ u-boot.bin
+
images := \
venice2-spi.img
@@ -24,6 +24,9 @@ soc := t20
bcts := \
Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct
+bootloaders := \
+ u-boot.bin
+
images := \
tegra20-medcom-wide.img
@@ -24,6 +24,9 @@ soc := t20
bcts := \
Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct
+bootloaders := \
+ u-boot.bin
+
images := \
tegra20-plutux.img
@@ -24,6 +24,9 @@ soc := t20
bcts := \
Tamonten_T2_512MB_MEM2G16D2D-ABG-25_366MHz.bct
+bootloaders := \
+ u-boot.bin
+
images := \
tegra20-tec.img
@@ -24,6 +24,9 @@ bcts := \
trimslice-mmc.bct \
trimslice-spi.bct
+bootloaders := \
+ u-boot.bin
+
images := \
trimslice-mmc.img \
trimslice-spi.img
@@ -23,6 +23,9 @@ soc := t20
bcts := \
harmony_a02_12Mhz_H5PS1G83EFR-S6C_333Mhz_1GB_2K8Nand_HY27UF084G2B-TP.bct
+bootloaders := \
+ u-boot.bin
+
images := \
harmony-nand.img
@@ -23,6 +23,9 @@ soc := t20
bcts := \
PM282_Hynix_1GB_H5PS2G83AFR-S6C_380MHz_nand.bct
+bootloaders := \
+ u-boot.bin
+
images := \
seaboard-nand.img
@@ -23,6 +23,9 @@ soc := t20
bcts := \
ventana_A03_12MHz_EDB8132B1PB6DF_300Mhz_1GB_emmc_THGBM1G6D4EBAI4.bct
+bootloaders := \
+ u-boot.bin
+
images := \
ventana-emmc.img
@@ -23,6 +23,9 @@ soc := t20
bcts := \
E1108_Elpida_512MB_EDB4032B2PB-6D-F_300MHz_40nm_emmc_x8.bct
+bootloaders := \
+ u-boot.bin
+
images := \
whistler-emmc.img
@@ -29,6 +29,9 @@ bcts := \
colibri_t20-512-v11-nand.bct \
colibri_t20-512-v12-nand.bct
+bootloaders := \
+ u-boot.bin
+
images := \
colibri_t20-256-hsmmc.img \
colibri_t20-512-hsmmc.img \
@@ -23,6 +23,9 @@ soc := t210
bcts := \
P2180_A00_LP4_DSC_204Mhz.bct
+bootloaders := \
+ u-boot.bin
+
images := \
p2371-2180-emmc.img
@@ -24,6 +24,9 @@ soc := t30
bcts := \
TamontenNG_Nanya_1GB_NT5CC256M16CP-DI_750MHz_emmc.bct
+bootloaders := \
+ u-boot.bin
+
images := \
tegra30-tec-ng.img
@@ -23,6 +23,9 @@ soc := t30
bcts := \
Pm315_Hynix_2GB_H5TC4G83MFR-PBA_400MHz_120613_sdmmc4_x8.bct
+bootloaders := \
+ u-boot.bin
+
images := \
beaver-emmc.img
@@ -25,6 +25,9 @@ bcts := \
E1198_Hynix_2GB_H5TC2G83BFR-PBA_667MHz_111121_317_sdmmc4_x8.bct \
E1198_Hynix_2GB_H5TC4G83MFR-PBA_375MHz_111122_317_sdmmc4_x8.bct
+bootloaders := \
+ u-boot.bin
+
images := \
cardhu-a02-a04-1gb-emmc.img \
cardhu-a02-a04-2gb-emmc.img \
@@ -24,6 +24,9 @@ soc := t30
bcts := \
colibri_t30_12MHz_1GB_NT5CC256M16CP-DI_400MHz-shmoo.bct
+bootloaders := \
+ u-boot.bin
+
images := \
colibri_t30.img
The dependencies of the emmc image on the bootloader image and the bct file are specified in the .img.cfg config files. Currently a shell script extracts these dependencies from the .img.cfg file. But the bct filename is already known to make, so only the bootloader image filename is left as a somewhat dynamic component. Add the bootloader filename to the per-soc Makefiles, and kill the dynamic dependency file. Signed-off-by: Nikolaus Schulz <nikolaus.schulz@avionic-design.de> --- build/gen-image-deps.sh | 42 ----------------------------- build/post.mk | 6 +---- tegra114/nvidia/dalmore/Makefile | 3 +++ tegra124/nvidia/jetson-tk1/Makefile | 3 +++ tegra124/nvidia/norrin/Makefile | 3 +++ tegra124/nvidia/venice2/Makefile | 3 +++ tegra20/avionic-design/medcom-wide/Makefile | 3 +++ tegra20/avionic-design/plutux/Makefile | 3 +++ tegra20/avionic-design/tec/Makefile | 3 +++ tegra20/compulab/trimslice/Makefile | 3 +++ tegra20/nvidia/harmony/Makefile | 3 +++ tegra20/nvidia/seaboard/Makefile | 3 +++ tegra20/nvidia/ventana/Makefile | 3 +++ tegra20/nvidia/whistler/Makefile | 3 +++ tegra20/toradex/colibri_t20/Makefile | 3 +++ tegra210/nvidia/p2371-2180/Makefile | 3 +++ tegra30/avionic-design/tec-ng/Makefile | 3 +++ tegra30/nvidia/beaver/Makefile | 3 +++ tegra30/nvidia/cardhu/Makefile | 3 +++ tegra30/toradex/colibri_t30/Makefile | 3 +++ 20 files changed, 55 insertions(+), 47 deletions(-) delete mode 100755 build/gen-image-deps.sh