Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
3b82ddf0
Commit
3b82ddf0
authored
Sep 28, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://stop.crashing.org/linux-2.6-uImage
into samba.org:/home/paulus/kernel/for-linus-ppc
parents
943ca916
0f7810ea
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
40 additions
and
3 deletions
+40
-3
arch/ppc/Makefile
arch/ppc/Makefile
+11
-2
arch/ppc/boot/images/Makefile
arch/ppc/boot/images/Makefile
+13
-1
scripts/mkuboot.sh
scripts/mkuboot.sh
+16
-0
No files found.
arch/ppc/Makefile
View file @
3b82ddf0
...
...
@@ -45,7 +45,7 @@ drivers-$(CONFIG_4xx) += arch/ppc/4xx_io/
drivers-$(CONFIG_8260)
+=
arch
/ppc/8260_io/
drivers-$(CONFIG_OCP)
+=
arch
/ppc/ocp/
BOOT_TARGETS
=
zImage zImage.initrd znetboot znetboot.initrd
pImage
vmlinux.sm
BOOT_TARGETS
=
zImage zImage.initrd znetboot znetboot.initrd vmlinux.sm
.PHONY
:
$(BOOT_TARGETS)
...
...
@@ -56,8 +56,17 @@ AFLAGS_vmlinux.lds.o := -Upowerpc
# All the instructions talk about "make bzImage".
bzImage
:
zImage
boot
:=
arch
/
$(ARCH)
/boot
$(BOOT_TARGETS)
:
vmlinux
$(Q)$(MAKE)
$(build)
=
arch
/ppc/boot
$@
$(Q)$(MAKE)
$(build)
=
$(boot)
$@
uImage
:
vmlinux
$(Q)$(MAKE)
$(build)
=
$(boot)
/images
$(boot)
/images/
$@
define
archhelp
@echo
' uImage - Create a bootable image for U-Boot / PPCBoot'
endef
archclean
:
$(Q)$(MAKE)
$(clean)
=
arch
/ppc/boot
...
...
arch/ppc/boot/images/Makefile
View file @
3b82ddf0
...
...
@@ -2,6 +2,8 @@
# This dir holds all of the images for PPC machines.
# Tom Rini January 2001
MKIMAGE
:=
$(srctree)
/scripts/mkuboot.sh
extra-y
:=
vmlinux.bin vmlinux.gz
OBJCOPYFLAGS_vmlinux.bin
:=
-O
binary
...
...
@@ -11,5 +13,15 @@ $(obj)/vmlinux.bin: vmlinux FORCE
$(obj)/vmlinux.gz
:
$(obj)/vmlinux.bin FORCE
$(
call
if_changed,gzip
)
quite_cmd_uimage
=
UIMAGE
$@
cmd_uimage
=
$(CONFIG_SHELL)
$(MKIMAGE)
-A
ppc
-O
linux
-T
kernel
\
-C
gzip
-a
00000000
-e
00000000
-n
'Linux-
$(KERNELRELEASE)
'
\
-d
$<
$@
targets
+=
uImage
$(obj)/uImage
:
$(obj)/vmlinux.gz
$(
call
if_changed,uimage
)
@
echo
' Image $@ is ready'
# Files generated that shall be removed upon make clean
clean-files
:=
sImage vmapus vmlinux
*
miboot
*
zImage
*
clean-files
:=
sImage vmapus vmlinux
*
miboot
*
zImage
*
uImage
arch/ppc/boot/utils/mkimage.wrapper
→
scripts/mkuboot.sh
100755 → 100644
View file @
3b82ddf0
#!/bin/bash
#
# Build
PPC
Boot image when `mkimage' tool is available.
# Build
U-
Boot image when `mkimage' tool is available.
#
MKIMAGE
=
$(
type
-path
mkimage
)
if
[
-z
"
${
MKIMAGE
}
"
]
;
then
# Doesn't exist
echo
'"mkimage" command not found -
PPC
Boot images will not be built'
>
&2
echo
'"mkimage" command not found -
U-
Boot images will not be built'
>
&2
exit
0
;
fi
# Call "mkimage" to create
PPC
Boot image
# Call "mkimage" to create
U-
Boot image
${
MKIMAGE
}
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment