mirror of
https://github.com/drasko/codezero.git
synced 2026-01-15 04:13:16 +01:00
Make the coding style more consistent with PEP-8.
This commit is contained in:
@@ -17,13 +17,13 @@
|
||||
#
|
||||
# Author: Russel Winder
|
||||
|
||||
Import ( 'environment' )
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone ( )
|
||||
e.Append ( LINKFLAGS = [ '-Ttasks/fs0/include/linker.lds' ] )
|
||||
e = environment.Clone()
|
||||
e.Append(LINKFLAGS = ['-Ttasks/fs0/include/linker.lds'])
|
||||
|
||||
objects = e.StaticObject ( Glob ( '*.c' ) + Glob ( 'src/*.c' ) )
|
||||
Depends ( objects , e['configFiles'] )
|
||||
library = e.Program ( 'fs0' , objects + [ e['crt0'] ] )
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.Program('fs0', objects + [e['crt0']])
|
||||
|
||||
Return ( 'library' )
|
||||
Return('library')
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
#
|
||||
# Author: Russel Winder
|
||||
|
||||
Import ( 'environment' )
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone ( )
|
||||
e.Append ( CPPPATH = [ 'include' ] )
|
||||
e = environment.Clone()
|
||||
e.Append(CPPPATH = ['include'])
|
||||
|
||||
# TODO: There are errors in this code that -Werror gives problems with.
|
||||
|
||||
e['CCFLAGS'] = [ '-g' , '-nostdlib' , '-Wall' , '-ffreestanding' , '-std=gnu99' ]
|
||||
e['CCFLAGS'] = ['-g', '-nostdlib', '-Wall', '-ffreestanding', '-std=gnu99']
|
||||
|
||||
objects = e.StaticObject ( Glob ( 'src/*.c' ) + Glob ( 'src/' + e['ARCH'] + '/*.[cS]' ) )
|
||||
Depends ( objects , e['configFiles'] )
|
||||
library = e.StaticLibrary ( 'l4' , objects )
|
||||
objects = e.StaticObject(Glob('src/*.c') + Glob('src/' + e['ARCH'] + '/*.[cS]'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.StaticLibrary('l4', objects)
|
||||
|
||||
Return ( 'library' )
|
||||
Return('library')
|
||||
|
||||
@@ -17,23 +17,23 @@
|
||||
#
|
||||
# Author: Russel Winder
|
||||
|
||||
Import ( 'environment' )
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone ( )
|
||||
e.Append ( CPPPATH = [ '#tasks/libl4/include' , '.' ] )
|
||||
e = environment.Clone()
|
||||
e.Append(CPPPATH = ['#tasks/libl4/include' , '.' ])
|
||||
|
||||
mmObjects = e.StaticObject ( Glob ( 'mm/*.c' ) )
|
||||
Depends ( mmObjects , e['configFiles'] )
|
||||
mmLibrary = e.StaticLibrary ( 'mm' , mmObjects )
|
||||
mmObjects = e.StaticObject(Glob('mm/*.c'))
|
||||
Depends(mmObjects, e['configFiles'])
|
||||
mmLibrary = e.StaticLibrary('mm', mmObjects)
|
||||
|
||||
kmObjects = e.StaticObject ( Glob ( 'kmalloc/*.c' ) )
|
||||
Depends ( kmObjects , e['configFiles'] )
|
||||
kmLibrary = e.StaticLibrary ( 'km' , kmObjects )
|
||||
kmObjects = e.StaticObject(Glob('kmalloc/*.c'))
|
||||
Depends(kmObjects, e['configFiles'])
|
||||
kmLibrary = e.StaticLibrary('km', kmObjects)
|
||||
|
||||
mcObjects = e.StaticObject ( Glob ( 'memcache/*.c' ) )
|
||||
Depends ( mcObjects , e['configFiles'] )
|
||||
mcLibrary = e.StaticLibrary ( 'mc' , mcObjects )
|
||||
mcObjects = e.StaticObject(Glob('memcache/*.c'))
|
||||
Depends(mcObjects, e['configFiles'])
|
||||
mcLibrary = e.StaticLibrary('mc', mcObjects)
|
||||
|
||||
libraries = ( mmLibrary , kmLibrary , mcLibrary )
|
||||
libraries = (mmLibrary, kmLibrary, mcLibrary)
|
||||
|
||||
Return ( 'libraries' )
|
||||
Return('libraries')
|
||||
|
||||
@@ -17,17 +17,17 @@
|
||||
#
|
||||
# Author: Russel Winder
|
||||
|
||||
Import ( 'environment' )
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone ( )
|
||||
e.Append ( CPPPATH = [ 'include' , 'include/posix' , '#tasks/libl4/include' ] )
|
||||
e = environment.Clone()
|
||||
e.Append(CPPPATH = ['include', 'include/posix', '#tasks/libl4/include'])
|
||||
|
||||
# TODO: There are errors in this code that -Werror gives problems with.
|
||||
|
||||
e['CCFLAGS'] = [ '-g' , '-nostdlib' , '-Wall' , '-ffreestanding' , '-std=gnu99' ]
|
||||
e['CCFLAGS'] = ['-g', '-nostdlib', '-Wall', '-ffreestanding', '-std=gnu99']
|
||||
|
||||
objects = e.StaticObject ( Glob ( '*.c' ) )
|
||||
Depends ( objects , e['configFiles'] )
|
||||
library = e.StaticLibrary ( 'posix' , objects )
|
||||
objects = e.StaticObject(Glob('*.c'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.StaticLibrary('posix', objects)
|
||||
|
||||
Return ( 'library' )
|
||||
Return('library')
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
#
|
||||
# Author: Russel Winder
|
||||
|
||||
Import ( 'environment' )
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone ( )
|
||||
e.Append ( LINKFLAGS = [ '-Ttasks/mm0/include/linker.lds' ] )
|
||||
e = environment.Clone()
|
||||
e.Append(LINKFLAGS = ['-Ttasks/mm0/include/linker.lds'])
|
||||
|
||||
objects = e.StaticObject ( Glob ( '*.c' ) + Glob ( 'src/*.c' ) )
|
||||
Depends ( objects , e['configFiles'] )
|
||||
library = e.Program ( 'mm0' , objects + [ e['crt0'] ] )
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.Program('mm0', objects + [e['crt0']])
|
||||
|
||||
Return ( 'library' )
|
||||
Return('library')
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
#
|
||||
# Author: Russel Winder
|
||||
|
||||
Import ( 'environment' )
|
||||
Import('environment')
|
||||
|
||||
e = environment.Clone ( )
|
||||
e.Append ( LINKFLAGS = [ '-Ttasks/test0/include/linker.lds' ] )
|
||||
e = environment.Clone()
|
||||
e.Append(LINKFLAGS = ['-Ttasks/test0/include/linker.lds'])
|
||||
|
||||
objects = e.StaticObject ( Glob ( '*.c' ) + Glob ( 'src/*.c' ) )
|
||||
Depends ( objects , e['configFiles'] )
|
||||
library = e.Program ( 'test0' , objects + [ e['crt0'] ] )
|
||||
objects = e.StaticObject(Glob('*.c') + Glob('src/*.c'))
|
||||
Depends(objects, e['configFiles'])
|
||||
library = e.Program('test0', objects + [e['crt0']])
|
||||
|
||||
Return ( 'library' )
|
||||
Return('library')
|
||||
|
||||
Reference in New Issue
Block a user