This series creates build rules to create (and clean) include/asm/arch/asm-offsets.h from an asm-offsets.c file located in the SoC directory. In particular, the new rules will skip creating the asm-offsets.h file if the SoC does not have an asm-offsets.c file
Big Fat Note: I have not tested this on ARM which needs to be looked at closely as the SoC files are one level deeper than where sc520 sits under x86 Graeme Russ (3): Makefile: Add generic build rules for include/asm/arch/asm-offsets.h x86: Rename include/asm/ic to include/asm/arch-sc520 sc520: Create arch asm-offsets Makefile | 22 ++- arch/x86/cpu/Makefile | 3 + arch/x86/cpu/sc520/Makefile | 2 + arch/x86/cpu/sc520/asm-offsets.c | 45 ++++ arch/x86/cpu/sc520/sc520.c | 2 +- arch/x86/cpu/sc520/sc520_car.S | 5 +- arch/x86/cpu/sc520/sc520_pci.c | 4 +- arch/x86/cpu/sc520/sc520_reset.c | 2 +- arch/x86/cpu/sc520/sc520_sdram.c | 2 +- arch/x86/cpu/sc520/sc520_ssi.c | 4 +- arch/x86/cpu/sc520/sc520_timer.c | 2 +- arch/x86/cpu/start.S | 3 +- arch/x86/include/asm/arch-sc520/pci.h | 79 ++++++ arch/x86/include/asm/arch-sc520/sc520.h | 372 +++++++++++++++++++++++++++++ arch/x86/include/asm/arch-sc520/ssi.h | 34 +++ arch/x86/include/asm/global_data.h | 19 -- arch/x86/include/asm/ic/pci.h | 79 ------ arch/x86/include/asm/ic/sc520.h | 398 ------------------------------- arch/x86/include/asm/ic/ssi.h | 34 --- arch/x86/lib/zimage.c | 1 - board/eNET/eNET.c | 2 +- board/eNET/eNET_pci.c | 2 +- board/eNET/eNET_start16.S | 9 +- 23 files changed, 574 insertions(+), 551 deletions(-) create mode 100644 arch/x86/cpu/sc520/asm-offsets.c create mode 100644 arch/x86/include/asm/arch-sc520/pci.h create mode 100644 arch/x86/include/asm/arch-sc520/sc520.h create mode 100644 arch/x86/include/asm/arch-sc520/ssi.h delete mode 100644 arch/x86/include/asm/ic/pci.h delete mode 100644 arch/x86/include/asm/ic/sc520.h delete mode 100644 arch/x86/include/asm/ic/ssi.h -- 1.7.5.2.317.g391b14 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot