[bsp/allwinner]update allwinnter libraries object file path (#7482)

This commit is contained in:
flyingcys 2023-05-12 22:50:21 +08:00 committed by GitHub
parent 5991990b6a
commit acb5010e04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 7 deletions

View File

@ -44,13 +44,13 @@ d1_library = 'sunxi-hal'
rtconfig.BSP_LIBRARY_TYPE = d1_library rtconfig.BSP_LIBRARY_TYPE = d1_library
# include libraries # include libraries
objs.extend(SConscript(os.path.join(libraries_path_prefix, d1_library, 'SConscript'))) objs.extend(SConscript(os.path.join(libraries_path_prefix, d1_library, 'SConscript'), variant_dir='build/libraries/sunxi-hal', duplicate=0))
# include drivers # include drivers
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript'))) objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript'), variant_dir='build/libraries/drivers', duplicate=0))
# include libos # include libos
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'libos', 'SConscript'))) objs.extend(SConscript(os.path.join(libraries_path_prefix, 'libos', 'SConscript'), variant_dir='build/libraries/libos', duplicate=0))
stack_size = 4096 stack_size = 4096

View File

@ -79,13 +79,13 @@ hal_library = 'sunxi-hal'
rtconfig.BSP_LIBRARY_TYPE = hal_library rtconfig.BSP_LIBRARY_TYPE = hal_library
# include libraries # include libraries
objs.extend(SConscript(os.path.join(libraries_path_prefix, hal_library, 'SConscript'))) objs.extend(SConscript(os.path.join(libraries_path_prefix, hal_library, 'SConscript'), variant_dir='build/libraries/sunxi-hal', duplicate=0))
# include drivers # include drivers
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript'))) objs.extend(SConscript(os.path.join(libraries_path_prefix, 'drivers', 'SConscript'), variant_dir='build/libraries/drivers', duplicate=0))
# include libos # include libos
objs.extend(SConscript(os.path.join(libraries_path_prefix, 'libos', 'SConscript'))) objs.extend(SConscript(os.path.join(libraries_path_prefix, 'libos', 'SConscript'), variant_dir='build/libraries/libos', duplicate=0))
if rtconfig.PLATFORM == 'gcc': if rtconfig.PLATFORM == 'gcc':
env['LINKCOM'] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS -Wl,--start-group $_LIBFLAGS -Wl,--end-group' env['LINKCOM'] = '$LINK -o $TARGET $LINKFLAGS $__RPATH $SOURCES $_LIBDIRFLAGS -Wl,--start-group $_LIBFLAGS -Wl,--end-group'

View File

@ -221,7 +221,7 @@ rtc_path = [cwd + '/../include/hal/rtc']
twi_src = [] twi_src = []
twi_path = [] twi_path = []
if GetDepend('DRIVERS_TWI'): if GetDepend('DRIVERS_TWI'):
twi_src += [cwd + '/source/twi/hal_twi.c'] twi_src += ['source/twi/hal_twi.c']
twi_path += [cwd + '/source/twi'] twi_path += [cwd + '/source/twi']
udc_src = Split(''' udc_src = Split('''