aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha/boot/tools
diff options
context:
space:
mode:
authorHelge Deller <deller@gmx.de>2015-03-23 17:47:21 -0400
committerMatt Turner <mattst88@gmail.com>2015-05-26 13:01:50 -0400
commit234306038064131a77da176d41e89e2c1535cda9 (patch)
tree87cf662b943e62a09a704353bcc5b9b3c5f45a6d /arch/alpha/boot/tools
parent9f7b2d1f02c5dae9c7fd59848681c88dc3741819 (diff)
alpha: Fix bootpfile and bootpzfile make targets
Fix the bootpfile and bootpzfile make targets to creat BOOTP images. Both targets were broken due to some missing defines to re-map ELF constants. In addition the old code used the generic vsprintf function of the kernel which we now replace by a simple and much smaller implementation for the bootloader. Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'arch/alpha/boot/tools')
-rw-r--r--arch/alpha/boot/tools/objstrip.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/alpha/boot/tools/objstrip.c b/arch/alpha/boot/tools/objstrip.c
index 367d53d031fc..dee82695f48b 100644
--- a/arch/alpha/boot/tools/objstrip.c
+++ b/arch/alpha/boot/tools/objstrip.c
@@ -27,6 +27,9 @@
27#include <linux/param.h> 27#include <linux/param.h>
28#ifdef __ELF__ 28#ifdef __ELF__
29# include <linux/elf.h> 29# include <linux/elf.h>
30# define elfhdr elf64_hdr
31# define elf_phdr elf64_phdr
32# define elf_check_arch(x) ((x)->e_machine == EM_ALPHA)
30#endif 33#endif
31 34
32/* bootfile size must be multiple of BLOCK_SIZE: */ 35/* bootfile size must be multiple of BLOCK_SIZE: */