Skip to contentSkip to conversation

Kbuild: A collection of more refactoring

PATCH New Masahiro Yamada 5 participants 34 messages Mar 11, 2014 – Mar 13, 2014

Subsystems (10)
lore
Share & tools
lore
#0 lore raw

cover Kbuild: A collection of more refactoring

- Convert more make rules to Kbuild style to use short logs.
- Consolidate TOPDIR, OBJTREE, SRCTREE
- Other minor refactoring

Masahiro Yamada (12):
kbuild,mxs: use short logs for MXS images
kbuild: use short logs for some board specific make rules kbuild,x86: use a short log for arch/x86/lib/libgcc.a
x86: specify CONFIG_USE_PRIVATE_LIBGCC more simply
kbuild: delete redundant LDSCRIPT definition
freescale: pblimage: refactor CONFIG_SYS_FSL_PBL_{PBI,RCW}
kirkwood: kwbimage: refactor CONFIG_SYS_KWD_CONFIG
kbuild: use $(KBUILD_SRC) to check out-of-tree build
kbuild: rename TOPDIR to stctree
kbuild: rename SRCTREE to srctree
kbuild: rename OBJTREE to objtree
kbuild: delete SPLTREE and TPLTREE

 Makefile                                      | 43 +++++++++++----------------
 arch/arc/config.mk                            |  2 --
 arch/arm/cpu/arm926ejs/mxs/Makefile           | 13 ++++----
 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg  |  4 +--
 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg  |  4 +--
 arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd    |  4 +--
 arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd    |  4 +--
 arch/arm/include/asm/arch-kirkwood/config.h   |  2 +-
 arch/m68k/cpu/mcf52x2/config.mk               | 16 +++++-----
 arch/m68k/cpu/mcf532x/config.mk               |  6 ++--
 arch/m68k/cpu/mcf5445x/config.mk              |  4 +--
 arch/microblaze/config.mk                     |  2 --
 arch/openrisc/config.mk                       |  2 --
 arch/powerpc/cpu/ppc4xx/config.mk             |  4 +--
 arch/x86/config.mk                            |  4 +--
 arch/x86/lib/Makefile                         |  5 ++--
 board/ait/cam_enc_4xx/config.mk               |  2 +-
 board/avnet/fx12mm/Makefile                   |  2 +-
 board/avnet/v5fx30teval/Makefile              |  2 +-
 board/cray/L1/Makefile                        | 15 ++++++++--
 board/hymod/config.mk                         |  2 +-
 board/korat/config.mk                         |  2 +-
 board/matrix_vision/mvblm7/Makefile           |  8 ++++-
 board/matrix_vision/mvsmr/Makefile            |  8 ++++-
 board/xilinx/ml507/Makefile                   |  2 +-
 config.mk                                     | 10 +++----
 doc/README.SPL                                |  2 +-
 doc/README.TPL                                |  2 +-
 doc/README.commands                           |  2 +-
 doc/README.kwbimage                           |  2 +-
 include/configs/B4860QDS.h                    |  4 +--
 include/configs/P2041RDB.h                    |  5 ++--
 include/configs/T1040QDS.h                    |  4 +--
 include/configs/T208xQDS.h                    |  6 ++--
 include/configs/T208xRDB.h                    |  4 +--
 include/configs/T4240QDS.h                    |  4 +--
 include/configs/corenet_ds.h                  | 14 ++++-----
 include/configs/km/kmp204x-common.h           |  4 +--
 include/configs/km_kirkwood.h                 | 15 ++++------
 include/configs/lacie_kw.h                    |  4 +--
 include/configs/lsxl.h                        |  4 +--
 mkconfig                                      | 12 ++++----
 nand_spl/board/freescale/mpc8315erdb/Makefile | 22 +++++++-------
 nand_spl/board/freescale/mpc8536ds/Makefile   | 28 ++++++++---------
 nand_spl/board/freescale/mpc8569mds/Makefile  | 28 ++++++++---------
 nand_spl/board/freescale/mpc8572ds/Makefile   | 28 ++++++++---------
 nand_spl/board/freescale/p1023rds/Makefile    | 28 ++++++++---------
 nand_spl/board/freescale/p1_p2_rdb/Makefile   | 28 ++++++++---------
 nand_spl/board/sheldon/simpc8313/Makefile     | 22 +++++++-------
 spl/Makefile                                  | 22 +++++++-------
 tools/Makefile                                |  6 ++--
 tools/env/Makefile                            |  2 +-
 52 files changed, 235 insertions(+), 239 deletions(-)
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/12 kbuild,mxs: use short logs for MXS images

Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>

---

Hi MXS board maitainers,

I think this commit is probably correct.
(I mean, it still generates correct "u-boot.sb" image)

But I could not corfirm it by binary comparison.

Every build generates a different u-boot.sb
even if no source file is changed.

I wish someone could do run test this patch.

 Makefile                                     |  2 +-
 arch/arm/cpu/arm926ejs/mxs/Makefile          | 13 +++++++------
 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg |  4 ++--
 arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg |  4 ++--
 arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd   |  4 ++--
 arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd   |  4 ++--
 6 files changed, 16 insertions(+), 15 deletions(-)
Makefile +1 -1
index b795338..0df3780 100644
@@ -858,7 +858,7 @@ u-boot.ais: spl/u-boot-spl.ais u-boot.img FORCE
 	$(call if_changed,pad_cat)
 
 u-boot.sb: u-boot.bin spl/u-boot-spl.bin
-	$(Q)$(MAKE) $(build)=arch/arm/cpu/arm926ejs/mxs $(objtree)/u-boot.sb
+	$(Q)$(MAKE) $(build)=arch/arm/cpu/arm926ejs/mxs u-boot.sb
 
 # On x600 (SPEAr600) U-Boot is appended to U-Boot SPL.
 # Both images are created using mkimage (crc etc), so that the ROM
arch/arm/cpu/arm926ejs/mxs/Makefile +7 -6
index 152546e..1eee661 100644
@@ -14,11 +14,12 @@ obj-y	+= spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o
 endif
 
 # Specify the target for use in elftosb call
-MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
-MKIMAGE_TARGET-$(CONFIG_MX28) = mx28
+MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg
+MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg
 
-$(OBJTREE)/mxsimage.cfg: $(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg
-	sed "s at OBJTREE@$(OBJTREE)@g" $^ > $@
+quiet_cmd_mkimage_mxs = UIMAGE  $@
+cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \
+	$(if $(KBUILD_VERBOSE:1=), >/dev/null)
 
-$(OBJTREE)/u-boot.sb: $(OBJTREE)/u-boot.bin $(OBJTREE)/spl/u-boot-spl.bin $(OBJTREE)/mxsimage.cfg
-	$(OBJTREE)/tools/mkimage -n $(OBJTREE)/mxsimage.cfg -T mxsimage $@
+u-boot.sb: $(src)/$(MKIMAGE_TARGET-y) u-boot.bin spl/u-boot-spl.bin FORCE
+	$(call if_changed,mkimage_mxs)
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx23.cfg +2 -2
index c9cf4b3..8118767 100644
@@ -1,6 +1,6 @@
 SECTION 0x0 BOOTABLE
  TAG LAST
- LOAD     0x0        OBJTREE/spl/u-boot-spl.bin
+ LOAD     0x0        spl/u-boot-spl.bin
  CALL     0x14       0x0
- LOAD     0x40000100 OBJTREE/u-boot.bin
+ LOAD     0x40000100 u-boot.bin
  CALL     0x40000100 0x0
arch/arm/cpu/arm926ejs/mxs/mxsimage.mx28.cfg +2 -2
index 676f5c8..ea772f0 100644
@@ -1,8 +1,8 @@
 SECTION 0x0 BOOTABLE
  TAG LAST
- LOAD     0x0        OBJTREE/spl/u-boot-spl.bin
+ LOAD     0x0        spl/u-boot-spl.bin
  LOAD IVT 0x8000     0x14
  CALL HAB 0x8000     0x0
- LOAD     0x40000100 OBJTREE/u-boot.bin
+ LOAD     0x40000100 u-boot.bin
  LOAD IVT 0x8000     0x40000100
  CALL HAB 0x8000     0x0
arch/arm/cpu/arm926ejs/mxs/u-boot-imx23.bd +2 -2
index 8b6c30e..3a51879 100644
@@ -4,8 +4,8 @@ options {
 }
 
 sources {
-	u_boot_spl="OBJTREE/spl/u-boot-spl.bin";
-	u_boot="OBJTREE/u-boot.bin";
+	u_boot_spl="spl/u-boot-spl.bin";
+	u_boot="u-boot.bin";
 }
 
 section (0) {
arch/arm/cpu/arm926ejs/mxs/u-boot-imx28.bd +2 -2
index a5fa648..c60615a 100644
@@ -1,6 +1,6 @@
 sources {
-	u_boot_spl="OBJTREE/spl/u-boot-spl.bin";
-	u_boot="OBJTREE/u-boot.bin";
+	u_boot_spl="spl/u-boot-spl.bin";
+	u_boot="u-boot.bin";
 }
 
 section (0) {
Signature · 1 line
1.8.3.2
#2 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Quoted 5 lines · Masahiro Yamada
Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>

You can drop Lauri from CC , I think this address is dead.

Quoted 11 lines

---

Hi MXS board maitainers,

I think this commit is probably correct.
(I mean, it still generates correct "u-boot.sb" image)

But I could not corfirm it by binary comparison.

Every build generates a different u-boot.sb
even if no source file is changed.

Note sure about that:

marex at bfu:/tmp/u-boot$ make -j9 u-boot.sb

  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/envcrc
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  AS      arch/arm/cpu/arm926ejs/start.o
  CC      arch/arm/lib/board.o
  CC      drivers/video/cfb_console.o
  LD      arch/arm/lib/built-in.o
  CC      lib/display_options.o
  CC      common/main.o
  CC      common/cmd_version.o
  AS      spl/arch/arm/cpu/arm926ejs/mxs/start.o
  LD      lib/built-in.o
  CC      spl/lib/display_options.o
  LD      spl/lib/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl.bin
  LD      common/built-in.o
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
  LD      u-boot

OBJCOPY u-boot.bin
MXSIMAGE u-boot.sb
marex at bfu:/tmp/u-boot$ sha1sum u-boot.bin a31b6fb66fab4a0f05634987585140ffe463452e u-boot.bin marex at bfu:/tmp/u-boot$ make -j9 u-boot.sb

  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/generated/version_autogenerated.h
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/envcrc
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  AS      arch/arm/cpu/arm926ejs/start.o
  CC      arch/arm/lib/board.o
  CC      drivers/video/cfb_console.o
  LD      arch/arm/lib/built-in.o
  CC      lib/display_options.o
  CC      common/main.o
  CC      common/cmd_version.o
  AS      spl/arch/arm/cpu/arm926ejs/mxs/start.o
  CC      spl/lib/display_options.o
  LD      lib/built-in.o
  LD      spl/lib/built-in.o
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl.bin
  LD      common/built-in.o
  LD      drivers/video/built-in.o
  LD      drivers/built-in.o
  LD      u-boot

OBJCOPY u-boot.bin
MXSIMAGE u-boot.sb
marex at bfu:/tmp/u-boot$ sha1sum u-boot.bin b5d5feab4a6974fe00272d3a3408300d8c8a473d u-boot.bin

Given that u-boot.bin and spl/u-boot-spl.bin are packed into u-boot.sb , this is why you always see a different u-boot.sb .

Quoted 1 line

I wish someone could do run test this patch.

The patch is good, I have just a minor rant below, otherwise add my:

btw. you can check if the image was not corrupted by issuing:

$ mkimage -l u-boot.sb

;-)

[...]

Quoted 14 lines
(quoted diff) +0 -0

b/arch/arm/cpu/arm926ejs/mxs/Makefile index 152546e..1eee661 100644

arch/arm/cpu/arm926ejs/mxs/Makefile +0 -0
@@ -14,11 +14,12 @@ obj-y	+= spl_boot.o spl_lradc_init.o spl_mem_init.o

spl_power_init.o endif

# Specify the target for use in elftosb call

arch/arm/cpu/arm926ejs/mxs/Makefile +2 -3
-MKIMAGE_TARGET-$(CONFIG_MX23) = mx23
-MKIMAGE_TARGET-$(CONFIG_MX28) = mx28
+MKIMAGE_TARGET-$(CONFIG_MX23) = mxsimage.mx23.cfg
+MKIMAGE_TARGET-$(CONFIG_MX28) = mxsimage.mx28.cfg
 
-$(OBJTREE)/mxsimage.cfg:
Quoted 3 lines

$(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg - sed
"s at OBJTREE@$(OBJTREE)@g" $^ > $@
+quiet_cmd_mkimage_mxs = UIMAGE $@

Why don't we use 'MKIMAGE' here to be consistent ? Or 'MXSIMAGE' if we want to differentiate ?

arch/arm/cpu/arm926ejs/mxs/Makefile obj-y += spl_boot.o spl_lradc_init.o spl_mem_init.o spl_power_init.o · line 22

Quoted 2 lines
arch/arm/cpu/arm926ejs/mxs/Makefile +2 -0
+cmd_mkimage_mxs = $(objtree)/tools/mkimage -n $< -T mxsimage $@ \
+	$(if $(KBUILD_VERBOSE:1=), >/dev/null)

Invokation seems OK to me. Getting rid of the 'sed' call is really to my liking here :)

Thank you!

#3 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Hello Marek,

Quoted 6 lines
Quoted 4 lines
Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>

You can drop Lauri from CC , I think this address is dead.

It looks like Cc to Lauri is not bouncing so far.

Quoted 4 lines

b5d5feab4a6974fe00272d3a3408300d8c8a473d u-boot.bin

Given that u-boot.bin and spl/u-boot-spl.bin are packed into u-boot.sb , this is why you always see a different u-boot.sb .

For other boot images, binary compare matched except a few bytes difference which comes from time stamp.

But, when I compared u-boot.sb
I had much more diffs than I expect for the difference of timestamp.

I still cannot understand what is different from the others.

Anyway, that's good to know it worked on run test.

Quoted 5 lines
Quoted 1 line

I wish someone could do run test this patch.

The patch is good, I have just a minor rant below, otherwise add my:

It's really appreciated. Thanks!

Quoted 7 lines
Quoted 4 lines

-$(OBJTREE)/mxsimage.cfg:
$(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg - sed
"s at OBJTREE@$(OBJTREE)@g" $^ > $@ +quiet_cmd_mkimage_mxs = UIMAGE $@

Why don't we use 'MKIMAGE' here to be consistent ? Or 'MXSIMAGE' if we want to differentiate ?

Good point.
MXSIMAGE is no good because the short log must be within 7 characters. MKIMAGE is OK.

Why UIMAGE?

All explanation I can give is
just the mimic of scripts/Makefile.build which originates from Linux Kernel.

Around line 340,

quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT)

      cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \

Anyway I do not persist on "UIMAGE".
If requested (or you can post a patch), it's OK to rename it, althogh naming must be consistent throughout the code.

Best Regards
Masahiro Yamada

#4 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Quoted 10 lines · Masahiro Yamada

Hello Marek,

Quoted 6 lines
Quoted 4 lines
Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>

You can drop Lauri from CC , I think this address is dead.

It looks like Cc to Lauri is not bouncing so far.

Strange, I remember the apx4 maintainer didn't work for B/G anymore.

Quoted 5 lines
Quoted 4 lines

b5d5feab4a6974fe00272d3a3408300d8c8a473d u-boot.bin

Given that u-boot.bin and spl/u-boot-spl.bin are packed into u-boot.sb , this is why you always see a different u-boot.sb .

Quoted 7 lines

For other boot images, binary compare matched except a few bytes difference which comes from time stamp.

But, when I compared u-boot.sb
I had much more diffs than I expect for the difference of timestamp.

I still cannot understand what is different from the others.

Ah, right. The u-boot.sb is also encrypted with aes-128-cbc with zero key. The bootrom on mx23/mx28 has the encryption enabled by default (and it can be fused off), with the default key being all zeroes. That's why you see so many differences.

Quoted 9 lines

Anyway, that's good to know it worked on run test.

Quoted 5 lines
Quoted 1 line

I wish someone could do run test this patch.

The patch is good, I have just a minor rant below, otherwise add my:

It's really appreciated. Thanks!

No, thank _you_ for putting so much effort into this :)

Quoted 20 lines
Quoted 7 lines
Quoted 4 lines

-$(OBJTREE)/mxsimage.cfg:
$(SRCTREE)/$(CPUDIR)/$(SOC)/mxsimage.$(MKIMAGE_TARGET-y).cfg - sed
"s at OBJTREE@$(OBJTREE)@g" $^ > $@ +quiet_cmd_mkimage_mxs = UIMAGE $@

Why don't we use 'MKIMAGE' here to be consistent ? Or 'MXSIMAGE' if we want to differentiate ?

Good point.
MXSIMAGE is no good because the short log must be within 7 characters. MKIMAGE is OK.

Why UIMAGE?

All explanation I can give is
just the mimic of scripts/Makefile.build which originates from Linux Kernel.

Around line 340,

Quoted 7 lines

quiet_cmd_uimage = UIMAGE $(UIMAGE_OUT)

      cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(UIMAGE_ARCH) -O linux \

Anyway I do not persist on "UIMAGE".
If requested (or you can post a patch), it's OK to rename it, althogh naming must be consistent throughout the code.

Yes, I see. We shall eventually rename it to mkimage throughout the code.

How shall we proceed? I see we have three options:
- Post V2 of this patch
- Fix the rest of the files which have this 'UIMAGE' in them and then post V2
- Postpone the fix and then do it globally

I would be in favor of the second option.

Best regards,
Marek Vasut

#5 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Hi,

Quoted 8 lines · Marek Vasut
Quoted 7 lines · Masahiro Yamada

Hello Marek,

Quoted 5 lines
Quoted 4 lines
Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>
Quoted 5 lines
Quoted 3 lines
Quoted 1 line

You can drop Lauri from CC , I think this address is dead.

It looks like Cc to Lauri is not bouncing so far.

Strange, I remember the apx4 maintainer didn't work for B/G anymore.

You remember it correctly :)

I was the original apx4 maintainer and I left Bluegiga. At that point Lauri took care of apx4 and he is still working there.

--
Veli-Pekka Peltola

#6 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Quoted 13 lines · Veli-Pekka Peltola

Hi,

Quoted 10 lines · Marek Vasut
Quoted 9 lines · Masahiro Yamada

Hello Marek,

Quoted 6 lines
Quoted 4 lines
Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>

You can drop Lauri from CC , I think this address is dead.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

It looks like Cc to Lauri is not bouncing so far.

Strange, I remember the apx4 maintainer didn't work for B/G anymore.

You remember it correctly :)

I was the original apx4 maintainer and I left Bluegiga. At that point Lauri took care of apx4 and he is still working there.

Ah ... sorry then.

Best regards,
Marek Vasut

#7 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

In reply to Marek Vasut

Hello Marek,

Quoted 11 lines
Quoted 11 lines
Quoted 4 lines

b5d5feab4a6974fe00272d3a3408300d8c8a473d u-boot.bin

Given that u-boot.bin and spl/u-boot-spl.bin are packed into u-boot.sb , this is why you always see a different u-boot.sb .

For other boot images, binary compare matched except a few bytes difference which comes from time stamp.

But, when I compared u-boot.sb
I had much more diffs than I expect for the difference of timestamp.

Quoted 6 lines
Quoted 1 line

I still cannot understand what is different from the others.

Ah, right. The u-boot.sb is also encrypted with aes-128-cbc with zero key. The bootrom on mx23/mx28 has the encryption enabled by default (and it can be fused off), with the default key being all zeroes. That's why you see so many differences.

That makes sense. :-)

Quoted 8 lines

Yes, I see. We shall eventually rename it to mkimage throughout the code.

How shall we proceed? I see we have three options:
- Post V2 of this patch
- Fix the rest of the files which have this 'UIMAGE' in them and then post V2
- Postpone the fix and then do it globally

I would be in favor of the second option.

This patch is already on u-boot/master.

Can you post a follow-up patch?

I think you will have to modify 7 files.

./Makefile:731:quiet_cmd_mkimage = UIMAGE $@ ./arch/arm/imx-common/Makefile:35:quiet_cmd_mkimage = UIMAGE $@ ./arch/arm/cpu/arm926ejs/mxs/Makefile:20:quiet_cmd_mkimage_mxs = UIMAGE $@ ./spl/Makefile:174:quiet_cmd_mkimage = UIMAGE $@ ./board/cray/L1/Makefile:18:quiet_cmd_mkimage = UIMAGE $@ ./board/matrix_vision/mvsmr/Makefile:15:quiet_cmd_mkimage = UIMAGE $@ ./board/matrix_vision/mvblm7/Makefile:11:quiet_cmd_mkimage = UIMAGE $@

Best Regards
Masahiro Yamada

#8 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Hello Masahiro-san,
[...]

Quoted 15 lines
Quoted 8 lines

Yes, I see. We shall eventually rename it to mkimage throughout the code.

How shall we proceed? I see we have three options:
- Post V2 of this patch
- Fix the rest of the files which have this 'UIMAGE' in them and then post V2 - Postpone the fix and then do it globally

I would be in favor of the second option.

This patch is already on u-boot/master.

Can you post a follow-up patch?

I think you will have to modify 7 files.

Quoted 7 lines

./Makefile:731:quiet_cmd_mkimage = UIMAGE $@ ./arch/arm/imx-common/Makefile:35:quiet_cmd_mkimage = UIMAGE $@ ./arch/arm/cpu/arm926ejs/mxs/Makefile:20:quiet_cmd_mkimage_mxs = UIMAGE $@ ./spl/Makefile:174:quiet_cmd_mkimage = UIMAGE $@ ./board/cray/L1/Makefile:18:quiet_cmd_mkimage = UIMAGE $@ ./board/matrix_vision/mvsmr/Makefile:15:quiet_cmd_mkimage = UIMAGE $@ ./board/matrix_vision/mvblm7/Makefile:11:quiet_cmd_mkimage = UIMAGE $@

Tom, what's your take on this ... UIMAGE or MKIMAGE ?

Best regards,
Marek Vasut

#9 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

Quoted 25 lines · Marek Vasut

Hello Masahiro-san,
[...]

Quoted 15 lines
Quoted 8 lines

Yes, I see. We shall eventually rename it to mkimage throughout the code.

How shall we proceed? I see we have three options:
- Post V2 of this patch
- Fix the rest of the files which have this 'UIMAGE' in them and then post V2 - Postpone the fix and then do it globally

I would be in favor of the second option.

This patch is already on u-boot/master.

Can you post a follow-up patch?

I think you will have to modify 7 files.

Quoted 7 lines

./Makefile:731:quiet_cmd_mkimage = UIMAGE $@ ./arch/arm/imx-common/Makefile:35:quiet_cmd_mkimage = UIMAGE $@ ./arch/arm/cpu/arm926ejs/mxs/Makefile:20:quiet_cmd_mkimage_mxs = UIMAGE $@ ./spl/Makefile:174:quiet_cmd_mkimage = UIMAGE $@ ./board/cray/L1/Makefile:18:quiet_cmd_mkimage = UIMAGE $@ ./board/matrix_vision/mvsmr/Makefile:15:quiet_cmd_mkimage = UIMAGE $@ ./board/matrix_vision/mvblm7/Makefile:11:quiet_cmd_mkimage = UIMAGE $@

Quoted 1 line

Tom, what's your take on this ... UIMAGE or MKIMAGE ?

MKIMAGE please, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140313/926fd662/attachment.pgp>
#10 lore raw

PATCH 1/12 kbuild, mxs: use short logs for MXS images

In reply to Masahiro Yamada
Quoted 6 lines · Masahiro Yamada
Cc Marek Vasut <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Otavio Salvador <[email protected]>
Cc Lauri Hintsala <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/7a1153fc/attachment.pgp>
#11 lore raw

PATCH 2/12 kbuild: use short logs for some board specific make rules

In reply to Masahiro Yamada
Cc David Updegraff <[email protected]>
Cc Andre Schwarz <[email protected]>

---

 board/cray/L1/Makefile              | 15 ++++++++++++---
 board/matrix_vision/mvblm7/Makefile |  8 +++++++-
 board/matrix_vision/mvsmr/Makefile  |  8 +++++++-
 3 files changed, 26 insertions(+), 5 deletions(-)
board/cray/L1/Makefile +12 -3
index 63f43da..655f530 100644
@@ -9,10 +9,19 @@ obj-y	= L1.o flash.o
 obj-y	+= init.o
 obj-y	+= bootscript.o
 
-$(obj)/bootscript.c: $(obj)/bootscript.image
-	od -t x1 -v -A x $^ | awk -f $(srctree)/$(src)/x2c.awk > $@
+quiet_cmd_awk = AWK     $@
+      cmd_awk = od -t x1 -v -A x $< | $(AWK) -f $(filter-out $<,$^) > $@
 
+$(obj)/bootscript.c: $(obj)/bootscript.image $(src)/x2c.awk
+	$(call cmd,awk)
+
+quiet_cmd_mkimage = UIMAGE  $@
+cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
+        $(if $(KBUILD_VERBOSE:1=), >/dev/null)
+
+MKIMAGEFLAGS_bootscript.image := -A ppc -O linux -T script -C none \
+						-a 0 -e 0 -n bootscript
 $(obj)/bootscript.image: $(src)/bootscript.hush
-	-$(OBJTREE)/tools/mkimage -A ppc -O linux -T script -C none -a 0 -e 0 -n bootscript -d $< $@
+	$(call cmd,mkimage)
 
 clean-files := bootscript.c bootscript.image
\ No newline@end of file
board/matrix_vision/mvblm7/Makefile +7 -1
index 1bc1d61..b5987fd 100644
@@ -8,5 +8,11 @@ obj-y	:= mvblm7.o pci.o fpga.o
 
 extra-y := bootscript.img
 
+quiet_cmd_mkimage = UIMAGE  $@
+cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
+        $(if $(KBUILD_VERBOSE:1=), >/dev/null)
+
+MKIMAGEFLAGS_bootscript.image := -T script -C none -n M7_script
+
 $(obj)/bootscript.img: $(src)/bootscript
-	@mkimage -T script -C none -n M7_script -d $< $@
+	$(call cmd,mkimage)
board/matrix_vision/mvsmr/Makefile +7 -1
index 9454259..fae7ec2 100644
@@ -12,5 +12,11 @@ obj-y	:= mvsmr.o fpga.o
 
 extra-y := bootscript.img
 
+quiet_cmd_mkimage = UIMAGE  $@
+cmd_mkimage = $(objtree)/tools/mkimage $(MKIMAGEFLAGS_$(@F)) -d $< $@ \
+        $(if $(KBUILD_VERBOSE:1=), >/dev/null)
+
+MKIMAGEFLAGS_bootscript.image := -T script -C none -n mvSMR_Script
+
 $(obj)/bootscript.img: $(src)/bootscript
-	@mkimage -T script -C none -n mvSMR_Script -d $< $@
+	$(call cmd,mkimage)
Signature · 1 line
1.8.3.2
#12 lore raw

PATCH 2/12 kbuild: use short logs for some board specific make rules

Quoted 3 lines · Masahiro Yamada
Cc David Updegraff <[email protected]>
Cc Andre Schwarz <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/b54e4ace/attachment-0001.pgp>
#13 lore raw

PATCH 3/12 kbuild, x86: use a short log for arch/x86/lib/libgcc.a

In reply to Masahiro Yamada

---

 arch/x86/lib/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
arch/x86/lib/Makefile +3 -2
index a35d062..f7303ab 100644
@@ -23,5 +23,6 @@ obj-$(CONFIG_CMD_ZBOOT)	+= zimage.o
 LIBGCC := $(notdir $(NORMAL_LIBGCC))
 extra-y := $(LIBGCC)
 
-$(obj)/$(LIBGCC): $(NORMAL_LIBGCC)
-	$(OBJCOPY) $< $@ --prefix-symbols=__normal_
+OBJCOPYFLAGS := --prefix-symbols=__normal_
+$(obj)/$(LIBGCC): $(NORMAL_LIBGCC) FORCE
+	$(call if_changed,objcopy)
Signature · 1 line
1.8.3.2
#14 lore raw

PATCH 3/12 kbuild, x86: use a short log for arch/x86/lib/libgcc.a

Quoted 2 lines · Masahiro Yamada

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/40a756ac/attachment.pgp>
#15 lore raw

PATCH 4/12 x86: specify CONFIG_USE_PRIVATE_LIBGCC more simply

In reply to Masahiro Yamada

---

 arch/x86/config.mk | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/x86/config.mk +1 -3
index 1e52a5e..38cb7c9 100644
@@ -29,6 +29,4 @@ LDFLAGS_FINAL += --wrap=__divdi3 --wrap=__udivdi3
 LDFLAGS_FINAL += --wrap=__moddi3 --wrap=__umoddi3
 
 export NORMAL_LIBGCC = $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
-PREFIXED_LIBGCC = $(OBJTREE)/arch/$(ARCH)/lib/$(shell basename $(NORMAL_LIBGCC))
-
-CONFIG_USE_PRIVATE_LIBGCC=$(shell dirname $(PREFIXED_LIBGCC))
+CONFIG_USE_PRIVATE_LIBGCC := arch/x86/lib
Signature · 1 line
1.8.3.2
#16 lore raw

PATCH 4/12 x86: specify CONFIG_USE_PRIVATE_LIBGCC more simply

Quoted 2 lines · Masahiro Yamada

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/5dab6b4e/attachment.pgp>
#17 lore raw

PATCH 5/12 kbuild: delete redundant LDSCRIPT definition

In reply to Masahiro Yamada

$(SRCTREE)/$(CPUDIR)/u-boot.lds is our default location of arch-specific linker script.

Remove redundant definitions in
arch/{arc,microblaze,openrisc}/config.mk.

Cc Alexey Brodkin <[email protected]>
Cc Michal Simek <[email protected]>
Cc Stefan Kristiansson <[email protected]>

---

 arch/arc/config.mk        | 2 --
 arch/microblaze/config.mk | 2 --
 arch/openrisc/config.mk   | 2 --
 3 files changed, 6 deletions(-)
arch/arc/config.mk +0 -2
index d9f5d9d..a3b8df7 100644
@@ -23,8 +23,6 @@ endif
 
 PLATFORM_CPPFLAGS += -ffixed-r25 -D__ARC__ -DCONFIG_ARC -gdwarf-2
 
-LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
-
 # Needed for relocation
 LDFLAGS_FINAL += -pie
 
arch/microblaze/config.mk +0 -2
index cdb321a..98bbf79 100644
@@ -15,5 +15,3 @@ endif
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x80F00000
 
 PLATFORM_CPPFLAGS += -ffixed-r31 -D__microblaze__
-
-LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
arch/openrisc/config.mk +0 -2
index 981edff..9902b9a 100644
@@ -14,5 +14,3 @@ endif
 PLATFORM_CPPFLAGS += -DCONFIG_OPENRISC -D__OR1K__ -ffixed-r10
 
 CONFIG_STANDALONE_LOAD_ADDR ?= 0x40000
-
-LDSCRIPT ?= $(SRCTREE)/$(CPUDIR)/u-boot.lds
Signature · 1 line
1.8.3.2
maintainer
#18 lore raw

PATCH 5/12 kbuild: delete redundant LDSCRIPT definition

Quoted 10 lines · Masahiro Yamada

$(SRCTREE)/$(CPUDIR)/u-boot.lds is our default location of arch-specific linker script.

Remove redundant definitions in
arch/{arc,microblaze,openrisc}/config.mk.

Cc Alexey Brodkin <[email protected]>
Cc Michal Simek <[email protected]>
Cc Stefan Kristiansson <[email protected]>

for Microblaze

Thanks,
Michal

Signature · 14 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140311/48a8466c/attachment.pgp>
#19 lore raw

PATCH 5/12 kbuild: delete redundant LDSCRIPT definition

In reply to Masahiro Yamada
Quoted 11 lines · Masahiro Yamada

$(SRCTREE)/$(CPUDIR)/u-boot.lds is our default location of arch-specific linker script.

Remove redundant definitions in
arch/{arc,microblaze,openrisc}/config.mk.

Cc Alexey Brodkin <[email protected]>
Cc Michal Simek <[email protected]>
Cc Stefan Kristiansson <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/1872b27d/attachment.pgp>
#20 lore raw

PATCH 6/12 freescale: pblimage: refactor CONFIG_SYS_FSL_PBL_{PBI, RCW}

In reply to Masahiro Yamada

Pull out "$(SRCTREE)/" from CONFIG_SYS_FSL_PBL_PBI and CONFIG_SYS_FSL_PBL_RCW and push it into the top Makefile.

Cc York Sun <[email protected]>
Cc Poonam Aggrwal <[email protected]>
Cc Valentin Longchamp <[email protected]>

---

 Makefile                            |  4 ++--
 include/configs/B4860QDS.h          |  4 ++--
 include/configs/P2041RDB.h          |  5 ++---
 include/configs/T1040QDS.h          |  4 ++--
 include/configs/T208xQDS.h          |  6 +++---
 include/configs/T208xRDB.h          |  4 ++--
 include/configs/T4240QDS.h          |  4 ++--
 include/configs/corenet_ds.h        | 14 +++++---------
 include/configs/km/kmp204x-common.h |  4 ++--
 9 files changed, 22 insertions(+), 27 deletions(-)
Makefile +2 -2
index 0df3780..198efa3 100644
@@ -805,8 +805,8 @@ MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
 MKIMAGEFLAGS_u-boot.kwb = -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
 		-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
 
-MKIMAGEFLAGS_u-boot.pbl = -n $(CONFIG_SYS_FSL_PBL_RCW) \
-		-R $(CONFIG_SYS_FSL_PBL_PBI) -T pblimage
+MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
+		-R $(srctree)/$(CONFIG_SYS_FSL_PBL_PBI:"%"=%) -T pblimage
 
 u-boot.img u-boot.kwb u-boot.pbl: u-boot.bin FORCE
 	$(call if_changed,mkimage)
include/configs/B4860QDS.h +2 -2
index 64acc88..b248302 100644
@@ -16,8 +16,8 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI	$(SRCTREE)/board/freescale/b4860qds/b4_pbi.cfg
-#define CONFIG_SYS_FSL_PBL_RCW	$(SRCTREE)/board/freescale/b4860qds/b4_rcw.cfg
+#define CONFIG_SYS_FSL_PBL_PBI	board/freescale/b4860qds/b4_pbi.cfg
+#define CONFIG_SYS_FSL_PBL_RCW	board/freescale/b4860qds/b4_rcw.cfg
 #endif
 
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
include/configs/P2041RDB.h +2 -3
index 47c6384..b3880f1 100644
@@ -18,9 +18,8 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/corenet_ds/pbi.cfg
-#define CONFIG_SYS_FSL_PBL_RCW \
-			$(SRCTREE)/board/freescale/corenet_ds/rcw_p2041rdb.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/freescale/corenet_ds/pbi.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p2041rdb.cfg
 #endif
 
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
include/configs/T1040QDS.h +2 -2
index e776a46..993f9ae 100644
@@ -32,8 +32,8 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/t1040qds/t1040_pbi.cfg
-#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t1040qds/t1040_rcw.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/freescale/t1040qds/t1040_pbi.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/t1040qds/t1040_rcw.cfg
 #endif
 
 /* High Level Configuration Options */
include/configs/T208xQDS.h +3 -3
index c6a30db..399ddbb 100644
@@ -48,11 +48,11 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/t208xqds/t208x_pbi.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/freescale/t208xqds/t208x_pbi.cfg
 #if defined(CONFIG_PPC_T2080)
-#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t208xqds/t2080_rcw.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/t208xqds/t2080_rcw.cfg
 #elif defined(CONFIG_PPC_T2081)
-#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t208xqds/t2081_rcw.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/t208xqds/t2081_rcw.cfg
 #endif
 #endif
 
include/configs/T208xRDB.h +2 -2
index 979843b..743eee3 100644
@@ -41,8 +41,8 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/t208xrdb/t2080_pbi.cfg
-#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t208xrdb/t2080_rcw.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/freescale/t208xrdb/t2080_pbi.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/t208xrdb/t2080_rcw.cfg
 #endif
 
 #define CONFIG_SRIO_PCIE_BOOT_MASTER
include/configs/T4240QDS.h +2 -2
index 0d43c27..56e1293 100644
@@ -21,8 +21,8 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/t4qds/t4_pbi.cfg
-#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/freescale/t4qds/t4_rcw.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/freescale/t4qds/t4_pbi.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/t4qds/t4_rcw.cfg
 #endif
 
 #ifdef CONFIG_SRIO_PCIE_BOOT_SLAVE
include/configs/corenet_ds.h +5 -9
index 72432e4..1e4bfc4 100644
@@ -15,19 +15,15 @@
 #ifdef CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/freescale/corenet_ds/pbi.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/freescale/corenet_ds/pbi.cfg
 #if defined(CONFIG_P3041DS)
-#define CONFIG_SYS_FSL_PBL_RCW \
-			$(SRCTREE)/board/freescale/corenet_ds/rcw_p3041ds.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p3041ds.cfg
 #elif defined(CONFIG_P4080DS)
-#define CONFIG_SYS_FSL_PBL_RCW \
-			$(SRCTREE)/board/freescale/corenet_ds/rcw_p4080ds.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p4080ds.cfg
 #elif defined(CONFIG_P5020DS)
-#define CONFIG_SYS_FSL_PBL_RCW \
-			$(SRCTREE)/board/freescale/corenet_ds/rcw_p5020ds.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p5020ds.cfg
 #elif defined(CONFIG_P5040DS)
-#define CONFIG_SYS_FSL_PBL_RCW \
-			$(SRCTREE)/board/freescale/corenet_ds/rcw_p5040ds.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/freescale/corenet_ds/rcw_p5040ds.cfg
 #endif
 #endif
 
include/configs/km/kmp204x-common.h +2 -2
index 0d24f78..582978a 100644
@@ -28,8 +28,8 @@
 #define CONFIG_RAMBOOT_PBL
 #define CONFIG_RAMBOOT_TEXT_BASE	CONFIG_SYS_TEXT_BASE
 #define CONFIG_RESET_VECTOR_ADDRESS	0xfffffffc
-#define CONFIG_SYS_FSL_PBL_PBI $(SRCTREE)/board/keymile/kmp204x/pbi.cfg
-#define CONFIG_SYS_FSL_PBL_RCW $(SRCTREE)/board/keymile/kmp204x/rcw_kmp204x.cfg
+#define CONFIG_SYS_FSL_PBL_PBI board/keymile/kmp204x/pbi.cfg
+#define CONFIG_SYS_FSL_PBL_RCW board/keymile/kmp204x/rcw_kmp204x.cfg
 
 /* High Level Configuration Options */
 #define CONFIG_BOOKE
Signature · 1 line
1.8.3.2
#21 lore raw

PATCH 6/12 freescale: pblimage: refactor CONFIG_SYS_FSL_PBL_{PBI, RCW}

Quoted 7 lines · Masahiro Yamada

Pull out "$(SRCTREE)/" from CONFIG_SYS_FSL_PBL_PBI and CONFIG_SYS_FSL_PBL_RCW and push it into the top Makefile.

Cc York Sun <[email protected]>
Cc Poonam Aggrwal <[email protected]>
Cc Valentin Longchamp <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/39e35cbd/attachment.pgp>
#22 lore raw

PATCH 7/12 kirkwood: kwbimage: refactor CONFIG_SYS_KWD_CONFIG

In reply to Masahiro Yamada

Pull out "$(SRCTREE)/" from CONFIG_SYS_KWD_CONFIG
and push it into the top Makefile.

Cc Michael Walle <[email protected]>
Cc Simon Guinot <[email protected]>
Cc Dave Purdy <[email protected]>
Cc Stefan Herbrechtsmeier <[email protected]>
Cc Luka Perkov <[email protected]>
Cc Valentin Longchamp <[email protected]>
Cc Jason Cooper <[email protected]>
Cc Siddarth Gore <[email protected]>
Cc Prafulla Wadaskar <[email protected]>
Cc Eric Cooper <[email protected]>
Cc Suriyan Ramasami <[email protected]>

---

 Makefile                                    |  4 ++--
 arch/arm/include/asm/arch-kirkwood/config.h |  2 +-
 doc/README.kwbimage                         |  2 +-
 include/configs/km_kirkwood.h               | 15 +++++----------
 include/configs/lacie_kw.h                  |  4 ++--
 include/configs/lsxl.h                      |  4 ++--
 6 files changed, 13 insertions(+), 18 deletions(-)
Makefile +2 -2
index 198efa3..8a1fe9b 100644
@@ -802,8 +802,8 @@ MKIMAGEFLAGS_u-boot.img = -A $(ARCH) -T firmware -C none -O u-boot \
 	-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_UBOOT_START) \
 	-n "U-Boot $(UBOOTRELEASE) for $(BOARD) board"
 
-MKIMAGEFLAGS_u-boot.kwb = -n $(CONFIG_SYS_KWD_CONFIG) -T kwbimage \
-		-a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
+MKIMAGEFLAGS_u-boot.kwb = -n $(srctree)/$(CONFIG_SYS_KWD_CONFIG:"%"=%) \
+	-T kwbimage -a $(CONFIG_SYS_TEXT_BASE) -e $(CONFIG_SYS_TEXT_BASE)
 
 MKIMAGEFLAGS_u-boot.pbl = -n $(srctree)/$(CONFIG_SYS_FSL_PBL_RCW:"%"=%) \
 		-R $(srctree)/$(CONFIG_SYS_FSL_PBL_PBI:"%"=%) -T pblimage
arch/arm/include/asm/arch-kirkwood/config.h +1 -1
index 197703b..7a688e4 100644
@@ -38,7 +38,7 @@
  * CONFIG_SYS_KWD_CONFIG should be defined in board specific header file
  */
 #ifndef CONFIG_SYS_KWD_CONFIG
-#define	CONFIG_SYS_KWD_CONFIG	$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage.cfg
+#define	CONFIG_SYS_KWD_CONFIG	$(CONFIG_BOARDDIR)/kwbimage.cfg
 #endif /* CONFIG_SYS_KWD_CONFIG */
 
 /* Kirkwood has 2k of Security SRAM, use it for SP */
doc/README.kwbimage +1 -1
index 8ed708c..13f6f92 100644
@@ -42,7 +42,7 @@ Board specific configuration file specifications:
 	kwbimage.cfg.  The name can be set as part of the full path
 	to the file using CONFIG_SYS_KWD_CONFIG (probably in
 	include/configs/<yourboard>.h).   The path should look like:
-	$(SRCTREE)/$(CONFIG_BOARDDIR)/<yourkwbimagename>.cfg
+	$(CONFIG_BOARDDIR)/<yourkwbimagename>.cfg
 2. This file can have empty lines and lines starting with "#" as first
 	character to put comments
 3. This file can have configuration command lines as mentioned below,
include/configs/km_kirkwood.h +5 -10
index 2cde177..9eb1ad3 100644
@@ -40,8 +40,7 @@
 #define CONFIG_IDENT_STRING		"\nKeymile Kirkwood 128M16"
 #define CONFIG_HOSTNAME			km_kirkwood_128m16
 #undef CONFIG_SYS_KWD_CONFIG
-#define CONFIG_SYS_KWD_CONFIG \
-		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
 #define CONFIG_KM_DISABLE_PCIE
 #define CONFIG_KM_IVM_BUS		1	/* I2C2 (Mux-Port 1)*/
 
@@ -59,8 +58,7 @@
 #endif
 
 #undef CONFIG_SYS_KWD_CONFIG
-#define CONFIG_SYS_KWD_CONFIG \
-		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
 #define CONFIG_KM_ENV_IS_IN_SPI_NOR
 #define CONFIG_KM_FPGA_CONFIG
 #define CONFIG_KM_PIGGY4_88E6352
@@ -73,8 +71,7 @@
 #define CONFIG_HOSTNAME			mgcoge3un
 #define CONFIG_KM_IVM_BUS		1	/* I2C2 (Mux-Port 1)*/
 #undef CONFIG_SYS_KWD_CONFIG
-#define CONFIG_SYS_KWD_CONFIG \
-		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-memphis.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-memphis.cfg
 #define CONFIG_KM_BOARD_EXTRA_ENV	"waitforne=true\0"
 #define CONFIG_PIGGY_MAC_ADRESS_OFFSET  3
 #define CONFIG_KM_DISABLE_PCIE
@@ -85,8 +82,7 @@
 #define CONFIG_IDENT_STRING		"\nKeymile COGE5UN"
 #define CONFIG_KM_IVM_BUS		1	/* I2C2 (Mux-Port 1)*/
 #undef	CONFIG_SYS_KWD_CONFIG
-#define CONFIG_SYS_KWD_CONFIG \
-		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_256M8_1.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage_256M8_1.cfg
 #define CONFIG_KM_ENV_IS_IN_SPI_NOR
 #define CONFIG_PIGGY_MAC_ADRESS_OFFSET	3
 #define CONFIG_HOSTNAME			kmcoge5un
@@ -106,8 +102,7 @@
 #define CONFIG_IDENT_STRING		"\nKeymile SUV31"
 #define CONFIG_HOSTNAME			kmsuv31
 #undef CONFIG_SYS_KWD_CONFIG
-#define CONFIG_SYS_KWD_CONFIG \
-		$(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage_128M16_1.cfg
 #define CONFIG_KM_ENV_IS_IN_SPI_NOR
 #define CONFIG_KM_FPGA_CONFIG
 
include/configs/lacie_kw.h +2 -2
index f6e79ba..2d2e23a 100644
@@ -80,9 +80,9 @@
  * from the Network Space v2
  */
 #if defined(CONFIG_INETSPACE_V2)
-#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-is2.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-is2.cfg
 #elif defined(CONFIG_NETSPACE_LITE_V2) || defined(CONFIG_NETSPACE_MINI_V2)
-#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-ns2l.cfg
 #endif
 
 /*
include/configs/lsxl.h +2 -2
index 92865df..2ae8a27 100644
@@ -13,12 +13,12 @@
  */
 #if defined(CONFIG_LSCHLV2)
 #define CONFIG_IDENT_STRING " LS-CHLv2"
-#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-lschl.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-lschl.cfg
 #define CONFIG_MACH_TYPE 3006
 #define CONFIG_SYS_TCLK 166666667 /* 166 MHz */
 #elif defined(CONFIG_LSXHL)
 #define CONFIG_IDENT_STRING " LS-XHL"
-#define CONFIG_SYS_KWD_CONFIG $(SRCTREE)/$(CONFIG_BOARDDIR)/kwbimage-lsxhl.cfg
+#define CONFIG_SYS_KWD_CONFIG $(CONFIG_BOARDDIR)/kwbimage-lsxhl.cfg
 #define CONFIG_MACH_TYPE 2663
 /* CONFIG_SYS_TCLK is 200000000 by default */
 #else
Signature · 1 line
1.8.3.2
#23 lore raw

PATCH 7/12 kirkwood: kwbimage: refactor CONFIG_SYS_KWD_CONFIG

Quoted 15 lines · Masahiro Yamada

Pull out "$(SRCTREE)/" from CONFIG_SYS_KWD_CONFIG
and push it into the top Makefile.

Cc Michael Walle <[email protected]>
Cc Simon Guinot <[email protected]>
Cc Dave Purdy <[email protected]>
Cc Stefan Herbrechtsmeier <[email protected]>
Cc Luka Perkov <[email protected]>
Cc Valentin Longchamp <[email protected]>
Cc Jason Cooper <[email protected]>
Cc Siddarth Gore <[email protected]>
Cc Prafulla Wadaskar <[email protected]>
Cc Eric Cooper <[email protected]>
Cc Suriyan Ramasami <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/32760c0e/attachment.pgp>
#24 lore raw

PATCH 8/12 kbuild: use $(KBUILD_SRC) to check out-of-tree build

In reply to Masahiro Yamada

Non-empty $(KBUILD_SRC) means out-of-tree build.

---

 Makefile | 8 +++-----
 mkconfig | 4 ++--
 2 files changed, 5 insertions(+), 7 deletions(-)
Makefile +3 -5
index 8a1fe9b..1b1cfb8 100644
@@ -556,11 +556,9 @@ export CONFIG_SYS_TEXT_BASE
 
 # Use UBOOTINCLUDE when you must reference the include/ directory.
 # Needed to be compatible with the O= option
-UBOOTINCLUDE    :=
-ifneq ($(OBJTREE),$(SRCTREE))
-UBOOTINCLUDE	+= -I$(OBJTREE)/include
-endif
-UBOOTINCLUDE	+= -I$(srctree)/include \
+UBOOTINCLUDE    := \
+		-Iinclude \
+		$(if $(KBUILD_SRC), -I$(srctree)/include) \
 		-I$(srctree)/arch/$(ARCH)/include
 
 NOSTDINC_FLAGS += -nostdinc -isystem $(shell $(CC) -print-file-name=include)
mkconfig +2 -2
index 9827e4d..b755d2a 100755
@@ -103,7 +103,7 @@ fi
 #
 # Create link to architecture specific headers
 #
-if [ "$SRCTREE" != "$OBJTREE" ] ; then
+if [ -n "$KBUILD_SRC" ] ; then
 	mkdir -p ${OBJTREE}/include
 	LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
 	cd ${OBJTREE}/include
@@ -125,7 +125,7 @@ if [ "${arch}" = "arm" ] ; then
 	ln -s ${LNPREFIX}proc-armv asm/proc
 fi
 
-if [ "$SRCTREE" = "$OBJTREE" ] ; then
+if [ -z "$KBUILD_SRC" ] ; then
 	cd ${SRCTREE}/include
 fi
 
Signature · 1 line
1.8.3.2
#25 lore raw

PATCH 8/12 kbuild: use $(KBUILD_SRC) to check out-of-tree build

Quoted 3 lines · Masahiro Yamada

Non-empty $(KBUILD_SRC) means out-of-tree build.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/4ccabb7d/attachment.pgp>
#26 lore raw

PATCH 9/12 kbuild: rename TOPDIR to stctree

In reply to Masahiro Yamada

Prior to Kbuild, $(TOPDIR) or $(SRCTREE) was used for pointing to the top of source directory.
(No difference between the two.)

In Kbuild style, $(srctree) is used instead. This commit renames TOPDIR to srctree and delete the defition of TOPDIR.

---

 Makefile                                      | 19 +++++++++----------
 arch/m68k/cpu/mcf52x2/config.mk               | 14 +++++++-------
 arch/m68k/cpu/mcf532x/config.mk               |  4 ++--
 arch/m68k/cpu/mcf5445x/config.mk              |  2 +-
 arch/powerpc/cpu/ppc4xx/config.mk             |  2 +-
 board/hymod/config.mk                         |  2 +-
 board/korat/config.mk                         |  2 +-
 config.mk                                     |  8 ++++----
 doc/README.SPL                                |  2 +-
 doc/README.TPL                                |  2 +-
 doc/README.commands                           |  2 +-
 nand_spl/board/freescale/mpc8315erdb/Makefile |  2 +-
 nand_spl/board/freescale/mpc8536ds/Makefile   |  2 +-
 nand_spl/board/freescale/mpc8569mds/Makefile  |  2 +-
 nand_spl/board/freescale/mpc8572ds/Makefile   |  2 +-
 nand_spl/board/freescale/p1023rds/Makefile    |  2 +-
 nand_spl/board/freescale/p1_p2_rdb/Makefile   |  2 +-
 nand_spl/board/sheldon/simpc8313/Makefile     |  2 +-
 spl/Makefile                                  | 10 +++++-----
 19 files changed, 41 insertions(+), 42 deletions(-)
Makefile +9 -10
index 1b1cfb8..f18f3eb 100644
@@ -169,8 +169,7 @@ OBJTREE		:= $(objtree)
 SPLTREE		:= $(OBJTREE)/spl
 TPLTREE		:= $(OBJTREE)/tpl
 SRCTREE		:= $(srctree)
-TOPDIR		:= $(SRCTREE)
-export	TOPDIR SRCTREE OBJTREE SPLTREE TPLTREE
+export	SRCTREE OBJTREE SPLTREE TPLTREE
 
 MKCONFIG	:= $(SRCTREE)/mkconfig
 export MKCONFIG
@@ -490,7 +489,7 @@ endif
 # standard location.
 
 ifndef LDSCRIPT
-	#LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds.debug
+	#LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot.lds.debug
 	ifdef CONFIG_SYS_LDSCRIPT
 		# need to strip off double quotes
 		LDSCRIPT := $(srctree)/$(CONFIG_SYS_LDSCRIPT:"%"=%)
@@ -500,19 +499,19 @@ endif
 # If there is no specified link script, we look in a number of places for it
 ifndef LDSCRIPT
 	ifeq ($(CONFIG_NAND_U_BOOT),y)
-		LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot-nand.lds
+		LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-nand.lds
 		ifeq ($(wildcard $(LDSCRIPT)),)
-			LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-nand.lds
+			LDSCRIPT := $(srctree)/$(CPUDIR)/u-boot-nand.lds
 		endif
 	endif
 	ifeq ($(wildcard $(LDSCRIPT)),)
-		LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot.lds
+		LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot.lds
 	endif
 	ifeq ($(wildcard $(LDSCRIPT)),)
-		LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot.lds
+		LDSCRIPT := $(srctree)/$(CPUDIR)/u-boot.lds
 	endif
 	ifeq ($(wildcard $(LDSCRIPT)),)
-		LDSCRIPT := $(TOPDIR)/arch/$(ARCH)/cpu/u-boot.lds
+		LDSCRIPT := $(srctree)/arch/$(ARCH)/cpu/u-boot.lds
 	endif
 endif
 
@@ -666,7 +665,7 @@ export PLATFORM_LIBS
 # Pass the version down so we can handle backwards compatibility
 # on the fly.
 LDPPFLAGS += \
-	-include $(TOPDIR)/include/u-boot/u-boot.lds.h \
+	-include $(srctree)/include/u-boot/u-boot.lds.h \
 	-DCPUDIR=$(CPUDIR) \
 	$(shell $(LD) --version | \
 	  sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
@@ -1240,7 +1239,7 @@ distclean: mrproper
 		-type f -print | xargs rm -f
 
 backup:
-	F=`basename $(TOPDIR)` ; cd .. ; \
+	F=`basename $(srctree)` ; cd .. ; \
 	gtar --force-local -zcvf `LC_ALL=C date "+$$F-%Y-%m-%d-%T.tar.gz"` $$F
 
 help:
arch/m68k/cpu/mcf52x2/config.mk +7 -7
index 25f98de..ebf75e6 100644
@@ -8,13 +8,13 @@
 #
 
 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
-is5208:=$(shell grep CONFIG_M5208 $(TOPDIR)/include/$(cfg))
-is5249:=$(shell grep CONFIG_M5249 $(TOPDIR)/include/$(cfg))
-is5253:=$(shell grep CONFIG_M5253 $(TOPDIR)/include/$(cfg))
-is5271:=$(shell grep CONFIG_M5271 $(TOPDIR)/include/$(cfg))
-is5272:=$(shell grep CONFIG_M5272 $(TOPDIR)/include/$(cfg))
-is5275:=$(shell grep CONFIG_M5275 $(TOPDIR)/include/$(cfg))
-is5282:=$(shell grep CONFIG_M5282 $(TOPDIR)/include/$(cfg))
+is5208:=$(shell grep CONFIG_M5208 $(srctree)/include/$(cfg))
+is5249:=$(shell grep CONFIG_M5249 $(srctree)/include/$(cfg))
+is5253:=$(shell grep CONFIG_M5253 $(srctree)/include/$(cfg))
+is5271:=$(shell grep CONFIG_M5271 $(srctree)/include/$(cfg))
+is5272:=$(shell grep CONFIG_M5272 $(srctree)/include/$(cfg))
+is5275:=$(shell grep CONFIG_M5275 $(srctree)/include/$(cfg))
+is5282:=$(shell grep CONFIG_M5282 $(srctree)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_M5208,$(is5208)))
 PLATFORM_CPPFLAGS += -mcpu=5208
arch/m68k/cpu/mcf532x/config.mk +2 -2
index 0604ab0..0a248c3 100644
@@ -8,8 +8,8 @@
 #
 
 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
-is5301x:=$(shell grep CONFIG_MCF5301x $(TOPDIR)/include/$(cfg))
-is532x:=$(shell grep CONFIG_MCF532x $(TOPDIR)/include/$(cfg))
+is5301x:=$(shell grep CONFIG_MCF5301x $(srctree)/include/$(cfg))
+is532x:=$(shell grep CONFIG_MCF532x $(srctree)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_MCF5301x,$(is5301x)))
 PLATFORM_CPPFLAGS += -mcpu=53015 -fPIC
arch/m68k/cpu/mcf5445x/config.mk +1 -1
index 6da08d5..2f310a5 100644
@@ -10,7 +10,7 @@
 #
 
 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
-is5441x:=$(shell grep CONFIG_MCF5441x $(TOPDIR)/include/$(cfg))
+is5441x:=$(shell grep CONFIG_MCF5441x $(srctree)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
 PLATFORM_CPPFLAGS += -mcpu=54418 -fPIC
arch/powerpc/cpu/ppc4xx/config.mk +1 -1
index 71c2a6c..907a3dd 100644
@@ -8,7 +8,7 @@
 PLATFORM_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float
 
 cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
-is440:=$(shell grep CONFIG_440 $(TOPDIR)/include/$(cfg))
+is440:=$(shell grep CONFIG_440 $(srctree)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_440,$(is440)))
 PLATFORM_CPPFLAGS += -Wa,-m440 -mcpu=440
board/hymod/config.mk +1 -1
index ee15890..2eeea50 100644
@@ -9,6 +9,6 @@
 # HYMOD boards
 #
 
-PLATFORM_CPPFLAGS += -I$(TOPDIR)
+PLATFORM_CPPFLAGS += -I$(srctree)
 
 OBJCOPYFLAGS = --remove-section=.ppcenv
board/korat/config.mk +1 -1
index f8dba2b..42e0060 100644
@@ -23,5 +23,5 @@ PLATFORM_CPPFLAGS += -DCONFIG_SYS_INIT_DBCR=0x8CFF0000
 endif
 
 ifndef CONFIG_KORAT_PERMANENT
-LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot-F7FC.lds
+LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-F7FC.lds
 endif
config.mk +4 -4
index 4657577..9bf4eda 100644
@@ -29,11 +29,11 @@ ifneq ($(SRCTREE)/$(CPUDIR),$(wildcard $(SRCTREE)/$(CPUDIR)))
 CPUDIR=arch/$(ARCH)/cpu
 endif
 
-sinclude $(TOPDIR)/arch/$(ARCH)/config.mk	# include architecture dependend rules
-sinclude $(TOPDIR)/$(CPUDIR)/config.mk		# include  CPU	specific rules
+sinclude $(srctree)/arch/$(ARCH)/config.mk	# include architecture dependend rules
+sinclude $(srctree)/$(CPUDIR)/config.mk		# include  CPU	specific rules
 
 ifdef	SOC
-sinclude $(TOPDIR)/$(CPUDIR)/$(SOC)/config.mk	# include  SoC	specific rules
+sinclude $(srctree)/$(CPUDIR)/$(SOC)/config.mk	# include  SoC	specific rules
 endif
 ifneq ($(BOARD),)
 ifdef	VENDOR
@@ -43,7 +43,7 @@ BOARDDIR = $(BOARD)
 endif
 endif
 ifdef	BOARD
-sinclude $(TOPDIR)/board/$(BOARDDIR)/config.mk	# include board specific rules
+sinclude $(srctree)/board/$(BOARDDIR)/config.mk	# include board specific rules
 endif
 
 #########################################################################
doc/README.SPL +1 -1
index b1bc3ca..57a39a4 100644
@@ -13,7 +13,7 @@ can be reused. No code duplication or symlinking is necessary anymore.
 How it works
 ------------
 
-There is a new directory TOPDIR/spl which contains only a Makefile.
+There is a new directory $(srctree)/spl which contains only a Makefile.
 The object files are built separately for SPL and placed in this directory.
 The final binaries which are generated are u-boot-spl, u-boot-spl.bin and
 u-boot-spl.map.
doc/README.TPL +1 -1
index 1df03b9..980debe 100644
@@ -19,7 +19,7 @@ board can be reused. No code duplication or symlinking is necessary anymore.
 How it works
 ------------
 
-There has been a directory TOPDIR/spl which contains only a Makefile. The
+There has been a directory $(srctree)/spl which contains only a Makefile. The
 Makefile is shared by SPL and TPL.
 
 The object files are built separately for SPL/TPL and placed in the
doc/README.commands +1 -1
index 9eb3671..afd5577 100644
@@ -28,7 +28,7 @@ these symbols when linking full U-Boot even though they are not
 referenced in the source code as such.
 
 If a new board is defined do not forget to define the command section
-by writing in u-boot.lds ($(TOPDIR)/board/boardname/u-boot.lds) these
+by writing in u-boot.lds ($(srctree)/board/boardname/u-boot.lds) these
 3 lines:
 
 	.u_boot_list : {
nand_spl/board/freescale/mpc8315erdb/Makefile +1 -1
index f41a13a..4eec00f 100644
@@ -10,7 +10,7 @@ PAD_TO := 0xfff04000
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LDSCRIPT= $(srctree)/nand_spl/board/$(BOARDDIR)/u-boot.lds
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 	   $(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
nand_spl/board/freescale/mpc8536ds/Makefile +1 -1
index f571862..9a9823d 100644
@@ -12,7 +12,7 @@ PAD_TO := 0xfff01000
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
nand_spl/board/freescale/mpc8569mds/Makefile +1 -1
index f571862..9a9823d 100644
@@ -12,7 +12,7 @@ PAD_TO := 0xfff01000
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
nand_spl/board/freescale/mpc8572ds/Makefile +1 -1
index f571862..9a9823d 100644
@@ -12,7 +12,7 @@ PAD_TO := 0xfff01000
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
nand_spl/board/freescale/p1023rds/Makefile +1 -1
index b7eedcd..9e8698b 100644
@@ -8,7 +8,7 @@ PAD_TO := 0xfff01000
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
nand_spl/board/freescale/p1_p2_rdb/Makefile +1 -1
index f571862..9a9823d 100644
@@ -12,7 +12,7 @@ PAD_TO := 0xfff01000
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
nand_spl/board/sheldon/simpc8313/Makefile +1 -1
index 8b29e97..e08a9a0 100644
@@ -11,7 +11,7 @@ include $(srctree)/$(src)/config.mk
 
 nandobj	:= $(OBJTREE)/nand_spl/
 
-LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LDSCRIPT= $(srctree)/nand_spl/board/$(BOARDDIR)/u-boot.lds
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 	   $(LDFLAGS) $(LDFLAGS_FINAL)
 asflags-y += -DCONFIG_NAND_SPL
spl/Makefile +5 -5
index bb3d349..640db8b 100644
@@ -44,7 +44,7 @@ else
   -include include/spl-autoconf.mk
 endif
 
-include $(TOPDIR)/config.mk
+include $(srctree)/config.mk
 
 # Enable garbage collection of un-used sections for SPL
 KBUILD_CFLAGS += -ffunction-sections -fdata-sections
@@ -149,13 +149,13 @@ LDSCRIPT := $(addprefix $(SRCTREE)/,$(CONFIG_SPL_LDSCRIPT:"%"=%))
 endif
 
 ifeq ($(wildcard $(LDSCRIPT)),)
-	LDSCRIPT := $(TOPDIR)/board/$(BOARDDIR)/u-boot-spl.lds
+	LDSCRIPT := $(srctree)/board/$(BOARDDIR)/u-boot-spl.lds
 endif
 ifeq ($(wildcard $(LDSCRIPT)),)
-	LDSCRIPT := $(TOPDIR)/$(CPUDIR)/u-boot-spl.lds
+	LDSCRIPT := $(srctree)/$(CPUDIR)/u-boot-spl.lds
 endif
 ifeq ($(wildcard $(LDSCRIPT)),)
-	LDSCRIPT := $(TOPDIR)/arch/$(ARCH)/cpu/u-boot-spl.lds
+	LDSCRIPT := $(srctree)/arch/$(ARCH)/cpu/u-boot-spl.lds
 endif
 ifeq ($(wildcard $(LDSCRIPT)),)
 $(error could not find linker script)
@@ -165,7 +165,7 @@ endif
 # Pass the version down so we can handle backwards compatibility
 # on the fly.
 LDPPFLAGS += \
-	-include $(TOPDIR)/include/u-boot/u-boot.lds.h \
+	-include $(srctree)/include/u-boot/u-boot.lds.h \
 	-include $(OBJTREE)/include/config.h \
 	-DCPUDIR=$(CPUDIR) \
 	$(shell $(LD) --version | \
Signature · 1 line
1.8.3.2
#27 lore raw

PATCH 9/12 kbuild: rename TOPDIR to stctree

Quoted 9 lines · Masahiro Yamada

Prior to Kbuild, $(TOPDIR) or $(SRCTREE) was used for pointing to the top of source directory.
(No difference between the two.)

In Kbuild style, $(srctree) is used instead. This commit renames TOPDIR to srctree and delete the defition of TOPDIR.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/7ed469c9/attachment.pgp>
#28 lore raw

PATCH 10/12 kbuild: rename SRCTREE to srctree

In reply to Masahiro Yamada

Prior to Kbuild, $(TOPDIR) or $(SRCTREE) was used for pointing to the top of source directory.
(No difference between the two.)

In Kbuild style, $(srctree) is used for instead. This commit renames SRCTREE to srctree and deletes the defition of SRCTREE.

Note that SRCTREE in scripts/kernel-doc, scripts/docproc.c, doc/DocBook/Makefile should be keep.

---

 Makefile                                      |  5 ++---
 board/ait/cam_enc_4xx/config.mk               |  2 +-
 board/avnet/fx12mm/Makefile                   |  2 +-
 board/avnet/v5fx30teval/Makefile              |  2 +-
 board/xilinx/ml507/Makefile                   |  2 +-
 config.mk                                     |  2 +-
 mkconfig                                      |  4 ++--
 nand_spl/board/freescale/mpc8315erdb/Makefile | 18 +++++++++---------
 nand_spl/board/freescale/mpc8536ds/Makefile   | 24 ++++++++++++------------
 nand_spl/board/freescale/mpc8569mds/Makefile  | 24 ++++++++++++------------
 nand_spl/board/freescale/mpc8572ds/Makefile   | 24 ++++++++++++------------
 nand_spl/board/freescale/p1023rds/Makefile    | 24 ++++++++++++------------
 nand_spl/board/freescale/p1_p2_rdb/Makefile   | 24 ++++++++++++------------
 nand_spl/board/sheldon/simpc8313/Makefile     | 18 +++++++++---------
 spl/Makefile                                  |  4 ++--
 tools/Makefile                                |  6 +++---
 tools/env/Makefile                            |  2 +-
 17 files changed, 93 insertions(+), 94 deletions(-)
Makefile +2 -3
index f18f3eb..a8ca5e9 100644
@@ -168,10 +168,9 @@ export srctree objtree VPATH
 OBJTREE		:= $(objtree)
 SPLTREE		:= $(OBJTREE)/spl
 TPLTREE		:= $(OBJTREE)/tpl
-SRCTREE		:= $(srctree)
-export	SRCTREE OBJTREE SPLTREE TPLTREE
+export	OBJTREE SPLTREE TPLTREE
 
-MKCONFIG	:= $(SRCTREE)/mkconfig
+MKCONFIG	:= $(srctree)/mkconfig
 export MKCONFIG
 
 # Make sure CDPATH settings don't interfere
board/ait/cam_enc_4xx/config.mk +1 -1
index c7cfaca..2022151 100644
@@ -7,7 +7,7 @@
 # (mem base + reserved)
 #
 
-UBL_CONFIG = $(SRCTREE)/board/$(BOARDDIR)/ublimage.cfg
+UBL_CONFIG = $(srctree)/board/$(BOARDDIR)/ublimage.cfg
 ifndef CONFIG_SPL_BUILD
 ALL-y += u-boot.ubl
 else
board/avnet/fx12mm/Makefile +1 -1
index 37fb02f..618b42f 100644
@@ -8,4 +8,4 @@
 
 obj-y	+= fx12mm.o
 
-include $(SRCTREE)/board/xilinx/ppc405-generic/Makefile
+include $(srctree)/board/xilinx/ppc405-generic/Makefile
board/avnet/v5fx30teval/Makefile +1 -1
index f7d0417..8c41af0 100644
@@ -8,4 +8,4 @@
 
 obj-y	+= v5fx30teval.o
 
-include $(SRCTREE)/board/xilinx/ppc440-generic/Makefile
+include $(srctree)/board/xilinx/ppc440-generic/Makefile
board/xilinx/ml507/Makefile +1 -1
index 3c84651..9a3809f 100644
@@ -8,4 +8,4 @@
 
 obj-y	+= ml507.o
 
-include $(SRCTREE)/board/xilinx/ppc440-generic/Makefile
+include $(srctree)/board/xilinx/ppc440-generic/Makefile
config.mk +1 -1
index 9bf4eda..05864aa 100644
@@ -25,7 +25,7 @@ OBJCOPYFLAGS :=
 # Check if arch/$ARCH/cpu/$CPU exists, otherwise assume arch/$ARCH/cpu contains
 # CPU-specific code.
 CPUDIR=arch/$(ARCH)/cpu/$(CPU)
-ifneq ($(SRCTREE)/$(CPUDIR),$(wildcard $(SRCTREE)/$(CPUDIR)))
+ifneq ($(srctree)/$(CPUDIR),$(wildcard $(srctree)/$(CPUDIR)))
 CPUDIR=arch/$(ARCH)/cpu
 endif
 
mkconfig +2 -2
index b755d2a..17ff298 100755
@@ -105,7 +105,7 @@ fi
 #
 if [ -n "$KBUILD_SRC" ] ; then
 	mkdir -p ${OBJTREE}/include
-	LNPREFIX=${SRCTREE}/arch/${arch}/include/asm/
+	LNPREFIX=${srctree}/arch/${arch}/include/asm/
 	cd ${OBJTREE}/include
 	mkdir -p asm
 else
@@ -126,7 +126,7 @@ if [ "${arch}" = "arm" ] ; then
 fi
 
 if [ -z "$KBUILD_SRC" ] ; then
-	cd ${SRCTREE}/include
+	cd ${srctree}/include
 fi
 
 #
nand_spl/board/freescale/mpc8315erdb/Makefile +9 -9
index 4eec00f..e3c87cf 100644
@@ -44,28 +44,28 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 # create symbolic links for common files
 
 $(obj)/start.S:
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/start.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc83xx/start.S $@
 
 $(obj)/nand_boot_fsl_elbc.c:
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -sf $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/sdram.c:
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/sdram.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/sdram.c $@
 
 $(obj)/$(BOARD).c:
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/$(BOARD).c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/$(BOARD).c $@
 
 $(obj)/ns16550.c:
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -sf $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/spl_minimal.c:
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc83xx/spl_minimal.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc83xx/spl_minimal.c $@
 
 $(obj)/cache.c:
-	ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/time.c:
-	ln -sf $(SRCTREE)/arch/powerpc/lib/time.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/time.c $@
 
 $(obj)/ticks.S:
-	ln -sf $(SRCTREE)/arch/powerpc/lib/ticks.S $@
+	ln -sf $(srctree)/arch/powerpc/lib/ticks.S $@
nand_spl/board/freescale/mpc8536ds/Makefile +12 -12
index 9a9823d..eefa44d 100644
@@ -48,48 +48,48 @@ $(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
 
 $(obj)/cache.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/cpu_init_early.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
 
 $(obj)/spl_minimal.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
 
 $(obj)/fsl_law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc8xxx/law.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc8xxx/law.c $@
 
 $(obj)/law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/law.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/law.c $@
 
 $(obj)/nand_boot_fsl_elbc.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -sf $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/ns16550.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -sf $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/resetvec.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $@
+	ln -s $(srctree)/$(CPUDIR)/resetvec.S $@
 
 $(obj)/fixed_ivor.S:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
 
 $(obj)/start.S: $(obj)/fixed_ivor.S
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/start.S $@
 
 $(obj)/tlb.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/tlb.c $@
 
 $(obj)/tlb_table.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/tlb.c $@
nand_spl/board/freescale/mpc8569mds/Makefile +12 -12
index 9a9823d..eefa44d 100644
@@ -48,48 +48,48 @@ $(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
 
 $(obj)/cache.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/cpu_init_early.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
 
 $(obj)/spl_minimal.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
 
 $(obj)/fsl_law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc8xxx/law.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc8xxx/law.c $@
 
 $(obj)/law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/law.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/law.c $@
 
 $(obj)/nand_boot_fsl_elbc.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -sf $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/ns16550.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -sf $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/resetvec.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $@
+	ln -s $(srctree)/$(CPUDIR)/resetvec.S $@
 
 $(obj)/fixed_ivor.S:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
 
 $(obj)/start.S: $(obj)/fixed_ivor.S
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/start.S $@
 
 $(obj)/tlb.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/tlb.c $@
 
 $(obj)/tlb_table.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/tlb.c $@
nand_spl/board/freescale/mpc8572ds/Makefile +12 -12
index 9a9823d..eefa44d 100644
@@ -48,48 +48,48 @@ $(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
 
 $(obj)/cache.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/cpu_init_early.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
 
 $(obj)/spl_minimal.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
 
 $(obj)/fsl_law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc8xxx/law.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc8xxx/law.c $@
 
 $(obj)/law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/law.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/law.c $@
 
 $(obj)/nand_boot_fsl_elbc.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -sf $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/ns16550.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -sf $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/resetvec.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $@
+	ln -s $(srctree)/$(CPUDIR)/resetvec.S $@
 
 $(obj)/fixed_ivor.S:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
 
 $(obj)/start.S: $(obj)/fixed_ivor.S
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/start.S $@
 
 $(obj)/tlb.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/tlb.c $@
 
 $(obj)/tlb_table.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/tlb.c $@
nand_spl/board/freescale/p1023rds/Makefile +12 -12
index 9e8698b..f5e567c 100644
@@ -44,48 +44,48 @@ $(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
 
 $(obj)/cache.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/cpu_init_early.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/$(CPUDIR)/cpu_init_early.c $@
+	ln -sf $(srctree)/$(CPUDIR)/cpu_init_early.c $@
 
 $(obj)/spl_minimal.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/$(CPUDIR)/spl_minimal.c $@
+	ln -sf $(srctree)/$(CPUDIR)/spl_minimal.c $@
 
 $(obj)/fsl_law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc8xxx/law.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc8xxx/law.c $@
 
 $(obj)/law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/law.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/law.c $@
 
 $(obj)/nand_boot_fsl_elbc.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -sf $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/ns16550.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -sf $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/resetvec.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $@
+	ln -s $(srctree)/$(CPUDIR)/resetvec.S $@
 
 $(obj)/fixed_ivor.S:
 	@rm -f $@
-	ln -sf $(SRCTREE)/$(CPUDIR)/fixed_ivor.S $@
+	ln -sf $(srctree)/$(CPUDIR)/fixed_ivor.S $@
 
 $(obj)/start.S: $(obj)/fixed_ivor.S
 	@rm -f $@
-	ln -sf $(SRCTREE)/$(CPUDIR)/start.S $@
+	ln -sf $(srctree)/$(CPUDIR)/start.S $@
 
 $(obj)/tlb.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/$(CPUDIR)/tlb.c $@
+	ln -sf $(srctree)/$(CPUDIR)/tlb.c $@
 
 $(obj)/tlb_table.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/tlb.c $@
nand_spl/board/freescale/p1_p2_rdb/Makefile +12 -12
index 9a9823d..eefa44d 100644
@@ -48,48 +48,48 @@ $(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
 
 $(obj)/cache.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -sf $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/cpu_init_early.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/cpu_init_early.c $@
 
 $(obj)/spl_minimal.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/spl_minimal.c $@
 
 $(obj)/fsl_law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc8xxx/law.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc8xxx/law.c $@
 
 $(obj)/law.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/law.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/law.c $@
 
 $(obj)/nand_boot_fsl_elbc.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -sf $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/ns16550.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -sf $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/resetvec.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/$(CPUDIR)/resetvec.S $@
+	ln -s $(srctree)/$(CPUDIR)/resetvec.S $@
 
 $(obj)/fixed_ivor.S:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/fixed_ivor.S $@
 
 $(obj)/start.S: $(obj)/fixed_ivor.S
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/start.S $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/start.S $@
 
 $(obj)/tlb.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/arch/powerpc/cpu/mpc85xx/tlb.c $@
+	ln -sf $(srctree)/arch/powerpc/cpu/mpc85xx/tlb.c $@
 
 $(obj)/tlb_table.c:
 	@rm -f $@
-	ln -sf $(SRCTREE)/board/$(BOARDDIR)/tlb.c $@
+	ln -sf $(srctree)/board/$(BOARDDIR)/tlb.c $@
nand_spl/board/sheldon/simpc8313/Makefile +9 -9
index e08a9a0..664301c 100644
@@ -46,36 +46,36 @@ $(nandobj)u-boot.lds: $(LDSCRIPT)
 
 $(obj)/start.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/arch/powerpc/cpu/mpc83xx/start.S $@
+	ln -s $(srctree)/arch/powerpc/cpu/mpc83xx/start.S $@
 
 $(obj)/nand_boot_fsl_elbc.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/nand_spl/nand_boot_fsl_elbc.c $@
+	ln -s $(srctree)/nand_spl/nand_boot_fsl_elbc.c $@
 
 $(obj)/sdram.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/board/$(BOARDDIR)/sdram.c $@
+	ln -s $(srctree)/board/$(BOARDDIR)/sdram.c $@
 
 $(obj)/$(BOARD).c:
 	@rm -f $@
-	ln -s $(SRCTREE)/board/$(BOARDDIR)/$(BOARD).c $@
+	ln -s $(srctree)/board/$(BOARDDIR)/$(BOARD).c $@
 
 $(obj)/ns16550.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/drivers/serial/ns16550.c $@
+	ln -s $(srctree)/drivers/serial/ns16550.c $@
 
 $(obj)/spl_minimal.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/arch/powerpc/cpu/mpc83xx/spl_minimal.c $@
+	ln -s $(srctree)/arch/powerpc/cpu/mpc83xx/spl_minimal.c $@
 
 $(obj)/cache.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/arch/powerpc/lib/cache.c $@
+	ln -s $(srctree)/arch/powerpc/lib/cache.c $@
 
 $(obj)/time.c:
 	@rm -f $@
-	ln -s $(SRCTREE)/arch/powerpc/lib/time.c $@
+	ln -s $(srctree)/arch/powerpc/lib/time.c $@
 
 $(obj)/ticks.S:
 	@rm -f $@
-	ln -s $(SRCTREE)/arch/powerpc/lib/ticks.S $@
+	ln -s $(srctree)/arch/powerpc/lib/ticks.S $@
spl/Makefile +2 -2
index 640db8b..b89a579 100644
@@ -68,7 +68,7 @@ include/tpl-autoconf.mk: include/config.h
 include/spl-autoconf.mk: include/config.h
 	$(call cmd,autoconf)
 
-HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(SRCTREE)/board/$(VENDOR)/common/Makefile),y,n)
+HAVE_VENDOR_COMMON_LIB = $(if $(wildcard $(srctree)/board/$(VENDOR)/common/Makefile),y,n)
 
 ifdef	CONFIG_SPL_START_S_PATH
 START_PATH := $(CONFIG_SPL_START_S_PATH:"%"=%)
@@ -145,7 +145,7 @@ u-boot-spl-main := $(libs-y)
 # Linker Script
 ifdef CONFIG_SPL_LDSCRIPT
 # need to strip off double quotes
-LDSCRIPT := $(addprefix $(SRCTREE)/,$(CONFIG_SPL_LDSCRIPT:"%"=%))
+LDSCRIPT := $(addprefix $(srctree)/,$(CONFIG_SPL_LDSCRIPT:"%"=%))
 endif
 
 ifeq ($(wildcard $(LDSCRIPT)),)
tools/Makefile +3 -3
index bac6aaf..097cc1d 100644
@@ -172,10 +172,10 @@ endif # !LOGO_BMP
 # Define __KERNEL_STRICT_NAMES to prevent typedef overlaps
 # Define _GNU_SOURCE to obtain the getline prototype from stdio.h
 #
-HOST_EXTRACFLAGS += -include $(SRCTREE)/include/libfdt_env.h \
+HOST_EXTRACFLAGS += -include $(srctree)/include/libfdt_env.h \
 		$(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \
-		-I$(SRCTREE)/lib/libfdt \
-		-I$(SRCTREE)/tools \
+		-I$(srctree)/lib/libfdt \
+		-I$(srctree)/tools \
 		-DCONFIG_SYS_TEXT_BASE=$(CONFIG_SYS_TEXT_BASE) \
 		-DUSE_HOSTCC \
 		-D__KERNEL_STRICT_NAMES \
tools/env/Makefile +1 -1
index 6ad81fd..fcb752d 100644
@@ -12,7 +12,7 @@ HOSTCC = $(CC)
 
 # Compile for a hosted environment on the target
 HOST_EXTRACFLAGS  = $(patsubst -I%,-idirafter%, $(UBOOTINCLUDE)) \
-		-idirafter $(SRCTREE)/tools/env \
+		-idirafter $(srctree)/tools/env \
 		-DUSE_HOSTCC \
 		-DTEXT_BASE=$(TEXT_BASE)
 
Signature · 1 line
1.8.3.2
#29 lore raw

PATCH 10/12 kbuild: rename SRCTREE to srctree

Quoted 4 lines · Masahiro Yamada

Prior to Kbuild, $(TOPDIR) or $(SRCTREE) was used for pointing to the top of source directory.
(No difference between the two.)

Quoted 8 lines

In Kbuild style, $(srctree) is used for instead. This commit renames SRCTREE to srctree and deletes the defition of SRCTREE.

Note that SRCTREE in scripts/kernel-doc, scripts/docproc.c, doc/DocBook/Makefile should be keep.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/179a5f9a/attachment.pgp>
#30 lore raw

PATCH 11/12 kbuild: rename OBJTREE to objtree

In reply to Masahiro Yamada

Prior to Kbuild, $(OBJTREE) was used for pointing to the top of build directory with absolute path.

In Kbuild style, $(objtree) is used instead. This commit renames OBJTREE to objtree and delete the defition of OBJTREE.

---

 Makefile                                      | 7 +++----
 arch/m68k/cpu/mcf52x2/config.mk               | 2 +-
 arch/m68k/cpu/mcf532x/config.mk               | 2 +-
 arch/m68k/cpu/mcf5445x/config.mk              | 2 +-
 arch/powerpc/cpu/ppc4xx/config.mk             | 2 +-
 mkconfig                                      | 4 ++--
 nand_spl/board/freescale/mpc8315erdb/Makefile | 2 +-
 nand_spl/board/freescale/mpc8536ds/Makefile   | 2 +-
 nand_spl/board/freescale/mpc8569mds/Makefile  | 2 +-
 nand_spl/board/freescale/mpc8572ds/Makefile   | 2 +-
 nand_spl/board/freescale/p1023rds/Makefile    | 2 +-
 nand_spl/board/freescale/p1_p2_rdb/Makefile   | 2 +-
 nand_spl/board/sheldon/simpc8313/Makefile     | 2 +-
 spl/Makefile                                  | 8 ++++----
 14 files changed, 20 insertions(+), 21 deletions(-)
Makefile +3 -4
index a8ca5e9..fa1e0ae 100644
@@ -165,10 +165,9 @@ VPATH		:= $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))
 
 export srctree objtree VPATH
 
-OBJTREE		:= $(objtree)
-SPLTREE		:= $(OBJTREE)/spl
-TPLTREE		:= $(OBJTREE)/tpl
-export	OBJTREE SPLTREE TPLTREE
+SPLTREE		:= $(objtree)/spl
+TPLTREE		:= $(objtree)/tpl
+export	SPLTREE TPLTREE
 
 MKCONFIG	:= $(srctree)/mkconfig
 export MKCONFIG
arch/m68k/cpu/mcf52x2/config.mk +1 -1
index ebf75e6..34ad99e 100644
@@ -7,7 +7,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
+cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
 is5208:=$(shell grep CONFIG_M5208 $(srctree)/include/$(cfg))
 is5249:=$(shell grep CONFIG_M5249 $(srctree)/include/$(cfg))
 is5253:=$(shell grep CONFIG_M5253 $(srctree)/include/$(cfg))
arch/m68k/cpu/mcf532x/config.mk +1 -1
index 0a248c3..af94354 100644
@@ -7,7 +7,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
+cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
 is5301x:=$(shell grep CONFIG_MCF5301x $(srctree)/include/$(cfg))
 is532x:=$(shell grep CONFIG_MCF532x $(srctree)/include/$(cfg))
 
arch/m68k/cpu/mcf5445x/config.mk +1 -1
index 2f310a5..5fd0d4d 100644
@@ -9,7 +9,7 @@
 # SPDX-License-Identifier:	GPL-2.0+
 #
 
-cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
+cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
 is5441x:=$(shell grep CONFIG_MCF5441x $(srctree)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_MCF5441x,$(is5441x)))
arch/powerpc/cpu/ppc4xx/config.mk +1 -1
index 907a3dd..102f069 100644
@@ -7,7 +7,7 @@
 
 PLATFORM_CPPFLAGS += -DCONFIG_4xx -mstring -msoft-float
 
-cfg=$(shell grep configs $(OBJTREE)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
+cfg=$(shell grep configs $(objtree)/include/config.h | sed 's/.*<\(configs.*\)>/\1/')
 is440:=$(shell grep CONFIG_440 $(srctree)/include/$(cfg))
 
 ifneq (,$(findstring CONFIG_440,$(is440)))
mkconfig +2 -2
index 17ff298..cd911a9 100755
@@ -104,9 +104,9 @@ fi
 # Create link to architecture specific headers
 #
 if [ -n "$KBUILD_SRC" ] ; then
-	mkdir -p ${OBJTREE}/include
+	mkdir -p ${objtree}/include
 	LNPREFIX=${srctree}/arch/${arch}/include/asm/
-	cd ${OBJTREE}/include
+	cd ${objtree}/include
 	mkdir -p asm
 else
 	cd arch/${arch}/include
nand_spl/board/freescale/mpc8315erdb/Makefile +1 -1
index e3c87cf..f4e7854 100644
@@ -8,7 +8,7 @@
 
 PAD_TO := 0xfff04000
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/nand_spl/board/$(BOARDDIR)/u-boot.lds
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
nand_spl/board/freescale/mpc8536ds/Makefile +1 -1
index eefa44d..c639b12 100644
@@ -10,7 +10,7 @@
 CONFIG_SYS_TEXT_BASE_SPL := 0xfff00000
 PAD_TO := 0xfff01000
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
nand_spl/board/freescale/mpc8569mds/Makefile +1 -1
index eefa44d..c639b12 100644
@@ -10,7 +10,7 @@
 CONFIG_SYS_TEXT_BASE_SPL := 0xfff00000
 PAD_TO := 0xfff01000
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
nand_spl/board/freescale/mpc8572ds/Makefile +1 -1
index eefa44d..c639b12 100644
@@ -10,7 +10,7 @@
 CONFIG_SYS_TEXT_BASE_SPL := 0xfff00000
 PAD_TO := 0xfff01000
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
nand_spl/board/freescale/p1023rds/Makefile +1 -1
index f5e567c..38f6726 100644
@@ -6,7 +6,7 @@
 
 PAD_TO := 0xfff01000
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
nand_spl/board/freescale/p1_p2_rdb/Makefile +1 -1
index eefa44d..c639b12 100644
@@ -10,7 +10,7 @@
 CONFIG_SYS_TEXT_BASE_SPL := 0xfff00000
 PAD_TO := 0xfff01000
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/$(CPUDIR)/u-boot-nand_spl.lds
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
nand_spl/board/sheldon/simpc8313/Makefile +1 -1
index 664301c..657f65f 100644
@@ -9,7 +9,7 @@
 
 include $(srctree)/$(src)/config.mk
 
-nandobj	:= $(OBJTREE)/nand_spl/
+nandobj	:= $(objtree)/nand_spl/
 
 LDSCRIPT= $(srctree)/nand_spl/board/$(BOARDDIR)/u-boot.lds
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
spl/Makefile +4 -4
index b89a579..be5fd3b 100644
@@ -166,7 +166,7 @@ endif
 # on the fly.
 LDPPFLAGS += \
 	-include $(srctree)/include/u-boot/u-boot.lds.h \
-	-include $(OBJTREE)/include/config.h \
+	-include $(objtree)/include/config.h \
 	-DCPUDIR=$(CPUDIR) \
 	$(shell $(LD) --version | \
 	  sed -ne 's/GNU ld version \([0-9][0-9]*\)\.\([0-9][0-9]*\).*/-DLD_MAJOR=\1 -DLD_MINOR=\2/p')
@@ -197,9 +197,9 @@ else
 VAR_SIZE_PARAM =
 endif
 $(obj)/$(BOARD)-spl.bin: $(obj)/u-boot-spl.bin
-	$(if $(wildcard $(OBJTREE)/spl/board/samsung/$(BOARD)/tools/mk$(BOARD)spl),\
-	$(OBJTREE)/spl/board/samsung/$(BOARD)/tools/mk$(BOARD)spl,\
-	$(OBJTREE)/tools/mkexynosspl) $(VAR_SIZE_PARAM) $< $@
+	$(if $(wildcard $(objtree)/spl/board/samsung/$(BOARD)/tools/mk$(BOARD)spl),\
+	$(objtree)/spl/board/samsung/$(BOARD)/tools/mk$(BOARD)spl,\
+	$(objtree)/tools/mkexynosspl) $(VAR_SIZE_PARAM) $< $@
 endif
 
 quiet_cmd_objcopy = OBJCOPY $@
Signature · 1 line
1.8.3.2
#31 lore raw

PATCH 11/12 kbuild: rename OBJTREE to objtree

Quoted 8 lines · Masahiro Yamada

Prior to Kbuild, $(OBJTREE) was used for pointing to the top of build directory with absolute path.

In Kbuild style, $(objtree) is used instead. This commit renames OBJTREE to objtree and delete the defition of OBJTREE.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/8355e7cf/attachment.pgp>
#32 lore raw

PATCH 12/12 kbuild: delete SPLTREE and TPLTREE

In reply to Masahiro Yamada

These variable are no longer used.

---

 Makefile | 4 ----
 1 file changed, 4 deletions(-)
Makefile +0 -4
index fa1e0ae..c8d5ccc 100644
@@ -165,10 +165,6 @@ VPATH		:= $(srctree)$(if $(KBUILD_EXTMOD),:$(KBUILD_EXTMOD))
 
 export srctree objtree VPATH
 
-SPLTREE		:= $(objtree)/spl
-TPLTREE		:= $(objtree)/tpl
-export	SPLTREE TPLTREE
-
 MKCONFIG	:= $(srctree)/mkconfig
 export MKCONFIG
 
Signature · 1 line
1.8.3.2
#33 lore raw

PATCH 12/12 kbuild: delete SPLTREE and TPLTREE

Quoted 3 lines · Masahiro Yamada

These variable are no longer used.

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140312/bbdbfd1d/attachment.pgp>