mirror of
https://github.com/elua/elua.git
synced 2025-01-08 20:56:17 +08:00
Update doc - remove code extract no longer valid
This commit is contained in:
parent
a3b3d3f7dc
commit
7d89c33c67
@ -31,17 +31,7 @@ Let's suppose that your new platform is called "foo". In order to compile eLua
|
||||
for foo, follow these steps:
|
||||
|
||||
1. create the src/platform/foo directory
|
||||
2. change the main build script (SConstruct) to include your new platform:
|
||||
|
||||
(BEGIN SConstruct)
|
||||
..........................
|
||||
# Sanity check
|
||||
if platform not in [ 'at91sam7x', 'i386', 'foo' ]:
|
||||
print "Invalid platform", platform
|
||||
sys.exit( -1 )
|
||||
..........................
|
||||
(END SConstruct)
|
||||
|
||||
2. change the main build script (SConstruct) to include your new platform
|
||||
3. you need at least 3 files (besides your platform specific files) in the
|
||||
src/platform/foo directory:
|
||||
|
||||
@ -53,6 +43,8 @@ if platform not in [ 'at91sam7x', 'i386', 'foo' ]:
|
||||
- platform_libs.h: see "platform modules.txt" for details.
|
||||
|
||||
4. implement the platform interface functions (see "platform interface.txt"). By
|
||||
convention, they should be implemented in a file called "platform.c".
|
||||
convention, they should be implemented in a file called "platform.c". Note that
|
||||
SConstruct defines a C flag <cputype> for your platform so you code can
|
||||
do #ifdef <cputype> ...
|
||||
|
||||
5. That's it! Build (see "building.txt") and enjoy!
|
||||
|
Loading…
x
Reference in New Issue
Block a user