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
421e2a9b
Commit
421e2a9b
authored
Jun 20, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kbuild: clean up arch/i386/boot, part 2
Use standard Rules.make rules for compiling and assembling.
parent
6411d22a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
39 deletions
+11
-39
arch/i386/boot/Makefile
arch/i386/boot/Makefile
+9
-30
arch/i386/boot/compressed/Makefile
arch/i386/boot/compressed/Makefile
+2
-9
No files found.
arch/i386/boot/Makefile
View file @
421e2a9b
...
...
@@ -25,16 +25,15 @@ SVGA_MODE := -DSVGA_MODE=NORMAL_VGA
#RAMDISK := -DRAMDISK=512
EXTRA_TARGETS
:=
vmlinux.bin bvmlinux.bin
EXTRA_TARGETS
:=
vmlinux.bin bvmlinux.bin bootsect.o bbootsect.o
\
setup.o bsetup.o
host-progs
:=
tools/build
include
$(TOPDIR)/Rules.make
# ---------------------------------------------------------------------------
BOOT_INCL
=
$(TOPDIR)
/include/linux/config.h
\
$(TOPDIR)
/include/linux/autoconf.h
\
$(TOPDIR)
/include/asm/boot.h
zImage
:
bootsect setup vmlinux.bin tools/build
tools/build bootsect setup vmlinux.bin
$(ROOT_DEV)
>
$@
...
...
@@ -66,44 +65,24 @@ zlilo: $(BOOTIMAGE)
install
:
$(BOOTIMAGE)
sh
-x
./install.sh
$(KERNELRELEASE)
$(BOOTIMAGE)
$(TOPDIR)
/System.map
"
$(INSTALL_PATH)
"
tools/build
:
tools/build.c
$(HOSTCC)
$(HOSTCFLAGS)
-o
$@
$<
-I
$(TOPDIR)
/include
EXTRA_AFLAGS
:=
-traditional
$(SVGA_MODE)
$(RAMDISK)
AFLAGS_bbootsect.o
:=
-D__BIG_KERNEL__
AFLAGS_bsetup.o
:=
-D__BIG_KERNEL__
bootsect
:
bootsect.o
$(LD)
$(LDFLAGS)
-Ttext
0x0
-s
--oformat
binary
-o
$@
$<
bootsect.o
:
bootsect.s
$(AS)
-o
$@
$<
bootsect.s
:
bootsect.S Makefile $(BOOT_INCL)
$(CPP)
$(CPPFLAGS)
-traditional
$(SVGA_MODE)
$(RAMDISK)
$<
-o
$@
bbootsect
:
bbootsect.o
$(LD)
$(LDFLAGS)
-Ttext
0x0
-s
--oformat
binary
$<
-o
$@
bbootsect.o
:
bbootsect.s
$(AS)
-o
$@
$<
bbootsect.s
:
bootsect.S Makefile $(BOOT_INCL)
$(CPP)
$(CPPFLAGS)
-D__BIG_KERNEL__
-traditional
$(SVGA_MODE)
$(RAMDISK)
$<
-o
$@
setup
:
setup.o
$(LD)
$(LDFLAGS)
-Ttext
0x0
-s
--oformat
binary
-e
begtext
-o
$@
$<
setup.o
:
setup.s
$(AS)
-o
$@
$<
setup.s
:
setup.S video.S Makefile $(BOOT_INCL) $(TOPDIR)/include/linux/version.h $(TOPDIR)/include/linux/compile.h
$(CPP)
$(CPPFLAGS)
-D__ASSEMBLY__
-traditional
$(SVGA_MODE)
$(RAMDISK)
$<
-o
$@
bsetup
:
bsetup.o
$(LD)
$(LDFLAGS)
-Ttext
0x0
-s
--oformat
binary
-e
begtext
-o
$@
$<
bsetup.o
:
bsetup.s
$(AS)
-o
$@
$<
bsetup.s
:
setup.S video.S Makefile $(BOOT_INCL) $(TOPDIR)/include/linux/version.h $(TOPDIR)/include/linux/compile.h
$(CPP)
$(CPPFLAGS)
-D__BIG_KERNEL__
-D__ASSEMBLY__
-traditional
$(SVGA_MODE)
$(RAMDISK)
$<
-o
$@
b%.S
:
%.S
cp
$<
$@
clean
:
@
echo
'Cleaning up (boot)'
...
...
arch/i386/boot/compressed/Makefile
View file @
421e2a9b
...
...
@@ -20,7 +20,8 @@ BZIMAGE_OFFSET = 0x100000
ZLINKFLAGS
=
-Ttext
$(ZIMAGE_OFFSET)
$(ZLDFLAGS)
BZLINKFLAGS
=
-Ttext
$(BZIMAGE_OFFSET)
$(ZLDFLAGS)
EXTRA_TARGETS
:=
vmlinux.bin vmlinux.bin.gz
EXTRA_TARGETS
:=
vmlinux.bin vmlinux.bin.gz head.o misc.o
EXTRA_AFLAGS
:=
-traditional
include
$(TOPDIR)/Rules.make
...
...
@@ -30,14 +31,6 @@ vmlinux: piggy.o $(OBJECTS)
bvmlinux
:
piggy.o $(OBJECTS)
$(LD)
$(LDFLAGS)
$(BZLINKFLAGS)
-o
bvmlinux
$(OBJECTS)
piggy.o
head.o
:
head.S
$(CC)
$(AFLAGS)
-traditional
-c
head.S
comma
:=
,
misc.o
:
misc.c
$(CC)
$(CFLAGS)
-DKBUILD_BASENAME
=
$(
subst
$(comma)
,_,
$(
subst
-,_,
$
(
*
F
)))
-c
misc.c
vmlinux.bin
:
$(TOPDIR)/vmlinux FORCE
$(
call
if_changed,objcopy
)
...
...
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