Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mruby
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
mruby
Commits
8607002f
Commit
8607002f
authored
Jun 11, 2012
by
Daniel Bovensiepen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake Toolchain file for any OpenWRT Target (x86, mips, AVR32, ARM, etc.)
parent
85901e05
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
cmake/Toolchain-Linux-openwrt-mips.cmake.sample
cmake/Toolchain-Linux-openwrt-mips.cmake.sample
+0
-10
cmake/Toolchain-OpenWRT-ANY.cmake
cmake/Toolchain-OpenWRT-ANY.cmake
+13
-0
No files found.
cmake/Toolchain-Linux-openwrt-mips.cmake.sample
deleted
100644 → 0
View file @
85901e05
# Toolchain file for building with OpenWRT Toolchain for MIPS.
# This is a preliminary version for mips outside of the buildroot-ng.
# The next version should be target independent.
# Further improvements:
# - use ENV variables in OpenWRT toolchain (like HOSTCC, TARGET_CC)
# - set flags properly for host and target
set(CMAKE_SYSTEM_NAME Linux)
set(TOOLCHAIN_PREFIX mips-openwrt-linux)
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
cmake/Toolchain-OpenWRT-ANY.cmake
0 → 100644
View file @
8607002f
# Toolchain file for building with OpenWRT Toolchain for ANY OpenWRT Target.
# Following prequisition are necessary:
# - latest cmake version
# - mruby OpenWRT Package file (not yet in distribution)
# Switch to Cross Compile by setting the system name
SET
(
CMAKE_SYSTEM_NAME Linux
)
# We show CMAKE the compiler, the rest will be guessed by the Toolchain
SET
(
CMAKE_C_COMPILER
"$ENV{OPENWRT_TOOLCHAIN}/bin/$ENV{OPENWRT_TARGETCC}"
)
# We define an own release flag so that we can adapt the optimal C_FLAGS
SET
(
CMAKE_C_FLAGS_OPENWRT
"$ENV{OPENWRT_TARGETFLAGS}"
)
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