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
86
Issues
86
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
3f213cd2
Commit
3f213cd2
authored
Jan 12, 2012
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: fixed kernel scripts for v3
parent
9e616d80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
wrs_build_kernel
build/scripts/wrs_build_kernel
+4
-9
No files found.
build/scripts/wrs_build_kernel
View file @
3f213cd2
...
...
@@ -11,8 +11,8 @@ fi
wrs_check_vars WRS_OUTPUT_DIR WRS_DOWNLOAD_DIR CROSS_COMPILE
wrs_echo
"--- Linux kernel for switch"
zipname
=
"buildroot-pkg/
linux-2.6.39.tar.bz2"
wrs_download
$
zip
name
tarname
=
"
linux-2.6.39.tar.bz2"
wrs_download
$
tar
name
mkdir
-p
$WRS_OUTPUT_DIR
/build
||
wrs_die
"mkdir build"
mkdir
-p
$WRS_OUTPUT_DIR
/images
||
wrs_die
"mkdir images"
...
...
@@ -21,7 +21,7 @@ mkdir -p $WRS_OUTPUT_DIR/images || wrs_die "mkdir images"
cd
$WRS_OUTPUT_DIR
/build
dirname
=
"linux-2.6.39"
rm
-rf
$dirname
tar
xjf
${
WRS_DOWNLOAD_DIR
}
/
$
zipname
||
wrs_die
"untar
$zip
name
"
tar
xjf
${
WRS_DOWNLOAD_DIR
}
/
$
tarname
||
wrs_die
"untar
$tar
name
"
# apply patches
cd
$dirname
...
...
@@ -44,12 +44,7 @@ fi
cp
$CFG
.config
export
ARCH
=
arm
make oldconfig
||
wrs_die
"kernel config"
# add mkimage in the path, in case it is not there
if
!
type
-p
mkimage
>
/dev/null
;
then
wrs_echo
"No mkimage: adding u-boot tools directory to PATH"
export
PATH
=
${
WRS_OUTPUT_DIR
}
/build/u-boot-1.3.4/tools:
$PATH
fi
# now proceed as usual
make
$WRS_MAKE_J
zImage modules
||
wrs_die
"kernel compilation"
cp arch
/
$ARCH
/boot/zImage
$(
find
.
-name
'*.ko'
)
$WRS_OUTPUT_DIR
/images
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