linux/arch/microblaze
Masahiro Yamada 4722a3e6b7 microblaze: fix multiple bugs in arch/microblaze/boot/Makefile
This commit fixes some build issues.

The first issue is the breakage of linux.bin.ub target since commit
ece97f3a5f ("microblaze: Fix simpleImage format generation")
because the addition of UIMAGE_{IN,OUT} affected it.

make ARCH=microblaze CROSS_COMPILE=microblaze-linux- linux.bin.ub
  [ snip ]
  OBJCOPY arch/microblaze/boot/linux.bin
  UIMAGE  arch/microblaze/boot/linux.bin.ub.ub
/usr/bin/mkimage: Can't open arch/microblaze/boot/linux.bin.ub: No such file or directory
make[1]: *** [arch/microblaze/boot/Makefile;14: arch/microblaze/boot/linux.bin.ub] Error 1
make: *** [arch/microblaze/Makefile;83: linux.bin.ub] Error 2

The second issue is the use of the "if_changed" multiple times for
the same target.

As commit 92a4728608 ("x86/boot: Fix if_changed build flip/flop bug")
pointed out, this never works properly. Moreover, generating multiple
images as a side-effect is confusing.

Let's split the build recipe for each image.

simpleImage.<dt>*.unstrip is just a copy of vmlinux.

simpleImage.<dt> and simpleImage.<dt>.ub are created in the same way
as linux.bin and linux.bin.ub, respectively.

I kept simpleImage.* recipes independent of linux.bin.* ones to not
change the behavior.

Lastly, this commit fixes "make ARCH=microblaze clean". Previously,
it only cleaned up the unstrip image. Now, all the simpleImage files
are cleaned.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2018-12-14 08:09:20 +01:00
..
boot microblaze: fix multiple bugs in arch/microblaze/boot/Makefile 2018-12-14 08:09:20 +01:00
configs microblaze: Enabling CONFIG_BRIDGE in mmu_defconfig 2017-06-22 15:36:59 +02:00
include microblaze: generate uapi header and system call table files 2018-11-16 08:24:34 +01:00
kernel microblaze: generate uapi header and system call table files 2018-11-16 08:24:34 +01:00
lib microblaze: Setup dependencies for ASM optimized lib functions 2018-03-16 12:51:26 +01:00
mm memblock: stop using implicit alignment to SMP_CACHE_BYTES 2018-10-31 08:54:16 -07:00
oprofile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pci mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
Kconfig mm: remove CONFIG_HAVE_MEMBLOCK 2018-10-31 08:54:15 -07:00
Kconfig.debug Kconfig: consolidate the "Kernel hacking" menu 2018-08-02 08:06:48 +09:00
Kconfig.platform microblaze: Setup dependencies for ASM optimized lib functions 2018-03-16 12:51:26 +01:00
Makefile microblaze: fix multiple bugs in arch/microblaze/boot/Makefile 2018-12-14 08:09:20 +01:00