Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
47
Issues
47
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
7238a35f
Commit
7238a35f
authored
Feb 25, 2013
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MAKEALL: default arch is not special
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
b00ce939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
MAKEALL
MAKEALL
+6
-8
No files found.
MAKEALL
View file @
7238a35f
...
...
@@ -26,34 +26,32 @@ build_ext () {
fi
}
# Built the default target, natively
for
var
in
HAS_DIAG HAS_FULL_DIAG CROSS_COMPILE ARCH CC LD
;
do
unset
$var
done
export
CC
=
"gcc"
export
LD
=
"ld"
build_ext
# Finally, loop over all archs, using our local names for compilers
# (we are not building for arch-spec, but we keep ready for it)
# Variables to set up proper stuff for the various architectures
PREFIX_gnu_linux
=
""
PREFIX_bare_i386
=
""
PREFIX_bare_x86_64
=
""
PREFIX_spec
=
"/opt/gcc-lm32/bin/lm32-elf-"
CC_gnu_linux
=
"gcc"
CC_bare_i386
=
"gcc -m32"
CC_bare_x86_64
=
"gcc -m64"
CC_spec
=
"
${
PREFIX_spec
}
gcc"
LD_gnu_linux
=
"ld"
LD_bare_i386
=
"ld -m elf_i386"
LD_bare_x86_64
=
"ld -m elf_x86_64"
LD_spec
=
"
${
PREFIX_spec
}
ld"
ARCHS
=
"bare-i386 bare-x86-64"
ARCHS
=
"
gnu-linux
bare-i386 bare-x86-64"
if
[
"x
${
WRPCSW_ROOT
}
"
!=
"x"
]
;
then
ARCHS
=
"
$ARCHS
spec"
fi
# And finally build
for
a
in
$ARCHS
;
do
export
ARCH
=
$a
eval export
CROSS_COMPILE
=
"
\$
{PREFIX_
$(
echo
$ARCH
|
sed
's/-/_/g'
)
}"
...
...
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