Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linux
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martyn Welch
linux
Commits
991b7d6e
Commit
991b7d6e
authored
17 years ago
by
Kyle McMartin
Browse files
Options
Downloads
Patches
Plain Diff
[PARISC] Attempt to clean up parisc/Makefile
Signed-off-by:
Kyle McMartin
<
kyle@mcmartin.ca
>
parent
9611f61e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
arch/parisc/Makefile
+24
-38
24 additions, 38 deletions
arch/parisc/Makefile
with
24 additions
and
38 deletions
arch/parisc/Makefile
+
24
−
38
View file @
991b7d6e
...
@@ -19,26 +19,27 @@
...
@@ -19,26 +19,27 @@
NM
=
sh
$(
srctree
)
/arch/parisc/nm
NM
=
sh
$(
srctree
)
/arch/parisc/nm
CHECKFLAGS
+=
-D__hppa__
=
1
CHECKFLAGS
+=
-D__hppa__
=
1
MACHINE
:=
$(
shell
uname
-m
)
ifeq
($(MACHINE),parisc*)
NATIVE
:=
1
endif
ifdef
CONFIG_64BIT
ifdef
CONFIG_64BIT
CROSS_COMPILE
:=
$(
shell
if
[
-x
/usr/bin/hppa64-linux-gnu-gcc
]
;
then
\
echo
hppa64-linux-gnu-
;
else
echo
hppa64-linux-
;
fi
)
UTS_MACHINE
:=
parisc64
UTS_MACHINE
:=
parisc64
CHECKFLAGS
+=
-D__LP64__
=
1
-m64
CHECKFLAGS
+=
-D__LP64__
=
1
-m64
else
WIDTH
:=
64
MACHINE
:=
$(
subst 64,,
$(
shell
uname
-m
))
CROSS_COMPILE
:=
hppa64-linux-gnu-
ifneq
($(MACHINE),parisc)
else
# 32-bit
CROSS_COMPILE
:=
hppa-linux-
WIDTH
:=
endif
endif
endif
FINAL_LD
=
$(
CROSS_COMPILE
)
ld
--warn-common
--warn-section-align
# attempt to help out folks who are cross-compiling
ifeq
($(NATIVE),1)
CROSS_COMPILE
:=
hppa
$(
WIDTH
)
-linux-
endif
OBJCOPY_FLAGS
=
-O
binary
-R
.note
-R
.comment
-S
OBJCOPY_FLAGS
=
-O
binary
-R
.note
-R
.comment
-S
ifneq
($(call cc-ifversion, -lt, 0303, "bad"),)
$(
error
Sorry, GCC v3.3 or above is required.
)
endif
cflags-y
:=
-pipe
cflags-y
:=
-pipe
# These flags should be implied by an hppa-linux configuration, but they
# These flags should be implied by an hppa-linux configuration, but they
...
@@ -73,31 +74,8 @@ libs-y += arch/parisc/lib/
...
@@ -73,31 +74,8 @@ libs-y += arch/parisc/lib/
drivers-$(CONFIG_OPROFILE)
+=
arch
/parisc/oprofile/
drivers-$(CONFIG_OPROFILE)
+=
arch
/parisc/oprofile/
PALO
:=
$(
shell
if
which palo
;
then
:
;
\
# Shorthands for known targets not supported by parisc, use vmlinux as default
elif
[
-x
/sbin/palo
]
;
then
echo
/sbin/palo
;
\
Image zImage bzImage
:
vmlinux
fi
)
palo
:
vmlinux
@
if
[
-x
$PALO
]
;
then
\
echo
'ERROR: Please install palo first (apt-get install palo)'
;
\
echo
'or build it from source and install it somewhere in your $$PATH'
;
\
false
;
\
fi
@
if
[
!
-f
./palo.conf
]
;
then
\
cp arch
/parisc/defpalo.conf palo.conf
;
\
echo
'A generic palo config file (./palo.conf) has been created for you.'
;
\
echo
'You should check it and re-run "make palo".'
;
\
echo
'WARNING: the "lifimage" file is now placed in this directory by default!'
;
\
false
;
\
fi
$(
PALO
)
-f
./palo.conf
oldpalo
:
vmlinux
export
TOPDIR
=
`
pwd
`
;
\
unset
STRIP LDFLAGS CPP CPPFLAGS AFLAGS CFLAGS CC LD
;
cd
../palo
&&
make lifimage
# Shorthands for known targets not supported by parisc, use palo as default
Image zImage bzImage
:
palo
kernel_install
:
vmlinux
kernel_install
:
vmlinux
sh
$(
src
)
/arch/parisc/install.sh
\
sh
$(
src
)
/arch/parisc/install.sh
\
...
@@ -110,9 +88,17 @@ MRPROPER_FILES += palo.conf
...
@@ -110,9 +88,17 @@ MRPROPER_FILES += palo.conf
define
archhelp
define
archhelp
@echo
'* vmlinux - Uncompressed kernel image (./vmlinux)'
@echo
'* vmlinux - Uncompressed kernel image (./vmlinux)'
@echo
' palo - Bootable image (./lifimage)'
@echo
' install - Install kernel using'
@echo
' install - Install kernel using'
@echo
' (your) ~/bin/installkernel or'
@echo
' (your) ~/bin/installkernel or'
@echo
' (distribution) /sbin/installkernel or'
@echo
' (distribution) /sbin/installkernel or'
@echo
' copy to $$(INSTALL_PATH)'
@echo
' copy to $$(INSTALL_PATH)'
endef
endef
# we require gcc 3.3 or above to compile the kernel
archprepare
:
checkbin
checkbin
:
@
if
test
"
$(
call cc-version
)
"
-lt
"0303"
;
then
\
echo
-n
"Sorry, GCC v3.3 or above is required to build "
;
\
echo
"the kernel."
;
\
false
;
\
fi
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment