Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
84
Issues
84
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
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
White Rabbit Switch - Software
Commits
0734050e
Commit
0734050e
authored
Aug 02, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build and doc: minor cleanups to kernel section
parent
4d0822d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
wrs_build_kernel
build/scripts/wrs_build_kernel
+4
-6
wrs-build.in
doc/wrs-build.in
+6
-11
No files found.
build/scripts/wrs_build_kernel
View file @
0734050e
...
...
@@ -12,6 +12,7 @@ wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR CROSS_COMPILE
wrs_echo
"--- Linux kernel for switch"
tarname
=
"linux-2.6.39.tar.bz2"
patchdir
=
"
${
WRS_BASE_DIR
}
/../patches/kernel/v2.6.39"
wrs_download
$tarname
mkdir
-p
$WRS_OUTPUT_DIR
/build
||
wrs_die
"mkdir build"
...
...
@@ -25,18 +26,18 @@ tar xjf ${WRS_DOWNLOAD_DIR}/$tarname || wrs_die "untar $tarname"
# apply patches
cd
$dirname
for
n
in
${
WRS_BASE_DIR
}
/../patches/kernel/v2.6.39
/00
*
;
do
for
n
in
${
patchdir
}
/00
*
;
do
patch
-p1
<
$n
||
wrs_die
"patch kernel"
done
# copy the config and replace "-j" level. First remove it in case it's left in
CFG
=
"
$
WRS_BASE_DIR
/../patches/kernel/v2.6.39
/linux-config-wrswitch"
CFG
=
"
$
{
patchdir
}
/linux-config-wrswitch"
if
[
"x
$WRS_KERNEL_CONFIG
"
!=
"x"
]
;
then
if
[
-f
$WRS_KERNEL_CONFIG
]
;
then
CFG
=
$WRS_KERNEL_CONFIG
else
wrs_warn
"WRS_KERNEL_CONFIG
is not a regularnam
e: ignoring it"
wrs_warn
"WRS_KERNEL_CONFIG
does not refer to a regular fil
e: ignoring it"
sleep
3
fi
fi
...
...
@@ -47,9 +48,6 @@ make oldconfig || wrs_die "kernel config"
make
$WRS_MAKE_J
zImage modules
||
wrs_die
"kernel compilation"
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib/modules
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib/modules/2.6.39
mkdir
-p
$WRS_OUTPUT_DIR
/images/lib/modules/2.6.39/kernel
cp
$(
find
.
-name
'*.ko'
)
$WRS_OUTPUT_DIR
/images/lib/modules/2.6.39/kernel
...
...
doc/wrs-build.in
View file @
0734050e
...
...
@@ -986,19 +986,14 @@ and are currently the following ones:
0002
-
initramfs
-
stop
-
after
-
one
-
cpio
-
archive
.
patch
0003
-
at91
-
NR_IRQS
-
increase
-
by
-
64
-
to
-
fit
-
custom
-
muxes
.
patch
0004
-
irq
-
export
-
symbols
-
for
-
external
-
irq
-
controller
.
patch
0005
-
fix
-
nand
-
parition
-
layout
-
and
-
usb
-
vbus
.
patch
0006
-
fiq
-
support
.
patch
@
end
example
The
configuration
being
used
is
copied
from
this
package
,
so
it
is
easier
to
change
it
if
needed
.
@
c
again
,
maybe
simplify
this
to
a
set
of
commands
?
If
you
want
to
change
the
configuration
,
you
can
do
so
after
the
first
build
iteration
:
change
directory
to
@
code
{
build
/
kernel
}
and
run
@
code
{
make
menuconfig
}.
After
making
your
choices
,
copy
back
the
file
@
code
{.
config
}
to
@
code
{
patches
/
kernel
/
v2
.6.39
/
linux
-
config
-
wrswitch
}
in
this
package
.
You
can
also
set
@
code
{
WRS_KERNEL_CONFIG
}
to
the
full
pathname
of
The
configuration
we
use
to
build
the
kernel
is
not
a
patch
but
a
plan
@
code
{.
config
}
file
,
in
the
same
directory
as
the
patches
,
so
you
can
change
it
easily
,
if
needed
.
As
an
alternative
,
you
can
also
set
@
code
{
WRS_KERNEL_CONFIG
}
to
the
full
pathname
of
your
configuration
file
of
choice
.
The
file
must
be
a
copy
of
the
@
code
{.
config
}
found
in
the
main
kernel
directory
,
(
for
example
the
one
left
after
the
@
code
{
make
menuconfig
}
step
).
...
...
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