forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kbuild: centralize MKIMAGE and cmd_uimage definitions
All ARCHs have the same definition of MKIMAGE. Move it to Makefile.lib to avoid duplication. All ARCHs have similar definitions of cmd_uimage. Place a sufficiently parameterized version in Makefile.lib to avoid duplication. Signed-off-by: Stephen Warren <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Tested-by: Mike Frysinger <[email protected]> [Blackfin] Tested-by: Michal Simek <[email protected]> [Microblaze] Tested-by: Guan Xuetao <[email protected]> [unicore32] Signed-off-by: Michal Marek <[email protected]>
- Loading branch information
Showing
8 changed files
with
54 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ | |
# arch/microblaze/boot/Makefile | ||
# | ||
|
||
MKIMAGE := $(srctree)/scripts/mkuboot.sh | ||
|
||
obj-y += linked_dtb.o | ||
|
||
targets := linux.bin linux.bin.gz simpleImage.% | ||
|
@@ -35,11 +33,9 @@ quiet_cmd_strip = STRIP $@ | |
cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \ | ||
-K _fdt_start vmlinux -o $@ | ||
|
||
quiet_cmd_uimage = UIMAGE $@.ub | ||
cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A microblaze -O linux -T kernel \ | ||
-C none -n 'Linux-$(KERNELRELEASE)' \ | ||
-a $(CONFIG_KERNEL_BASE_ADDR) -e $(CONFIG_KERNEL_BASE_ADDR) \ | ||
-d $@ [email protected] | ||
UIMAGE_IN = $@ | ||
UIMAGE_OUT = $@.ub | ||
UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR) | ||
|
||
$(obj)/simpleImage.%: vmlinux FORCE | ||
$(call if_changed,cp,.unstrip) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters