Commit 0f6d9975 authored by Stewart Brodie's avatar Stewart Brodie
Browse files

BBE support added.

Detail:
  The BBE export rules for this component are fairly complex.  The rom_link
    bbe rule is overridden in its entirety by clib.rom_link_v as the symbol
    definitions need to be generated and exported during the rom_link phase.
Admin:
  Tested in BBE build; does not affect other builds.

Version 5.26. Tagged as 'RISC_OSLib-5_26'
parent 189a7be0
......@@ -58,7 +58,7 @@ CMHG = cmhg
CP = copy
LD = link
LIBFILE = libfile
MKDIR = cdir
MKDIR = do mkdir -p
MODSQZ = modsqz
OBJASM = objasm
RM = remove
......@@ -452,6 +452,28 @@ resources:
${CP} <MessagesFile> ${RESDIR}.RISC_OSLib.Messages ${CPFLAGS}
@echo ${COMPONENT}: resource files copied
BBETYPE = clibrary
bbe-clibrary: bbe-generic
${MKDIR} ${BBEDIR}.clib.Resources.${LOCALE}
${MKDIR} ${BBEDIR}.rlib.Resources.${LOCALE}
${MKDIR} ${BBEDIR}.aof
${MKDIR} ${BBEDIR}.map
${MKDIR} ${BBEDIR}.syms
${MKDIR} ${BBEDIR}.linked
${MKDIR} ${BBEDIR}.kernel.s
${MKDIR} ${BBEDIR}.clib.s
${MKDIR} ${BBEDIR}.rlib.s
BBE_Export_Dir clib.Resources.${LOCALE}.${SYSTEM}
BBE_Export_File clib.Resources.${LOCALE}.Messages
BBE_Export_Dir rlib.Resources.${LOCALE}.${SYSTEM}
BBE_Export_File rlib.Resources.${LOCALE}.Messages
BBE_Export_File rlib.swi
BBE_Export_File kernel.s.k_entries
BBE_Export_File clib.s.cl_entries
BBE_Export_File rlib.s.rl_entries
BBE_Export_File aof.${TARGET}
${CP} clib.rom_link_v ${VERBATIMROMLINK} ${CPFLAGS}
dirs:
${MKDIR} ${LIBDIR}
${MKDIR} ${LIBDIR}.CLib
......
......@@ -11,14 +11,14 @@
GBLS Module_HelpVersion
GBLS Module_ComponentName
GBLS Module_ComponentPath
Module_MajorVersion SETS "5.25"
Module_Version SETA 525
Module_MajorVersion SETS "5.26"
Module_Version SETA 526
Module_MinorVersion SETS ""
Module_Date SETS "30 Nov 2000"
Module_ApplicationDate2 SETS "30-Nov-00"
Module_ApplicationDate4 SETS "30-Nov-2000"
Module_Date SETS "13 Dec 2000"
Module_ApplicationDate2 SETS "13-Dec-00"
Module_ApplicationDate4 SETS "13-Dec-2000"
Module_ComponentName SETS "RISC_OSLib"
Module_ComponentPath SETS "RiscOS/Sources/Lib/RISC_OSLib"
Module_FullVersion SETS "5.25"
Module_HelpVersion SETS "5.25 (30 Nov 2000)"
Module_FullVersion SETS "5.26"
Module_HelpVersion SETS "5.26 (13 Dec 2000)"
END
/* (5.25)
/* (5.26)
*
* This file is automatically maintained by srccommit, do not edit manually.
*
*/
#define Module_MajorVersion_CMHG 5.25
#define Module_MajorVersion_CMHG 5.26
#define Module_MinorVersion_CMHG
#define Module_Date_CMHG 30 Nov 2000
#define Module_Date_CMHG 13 Dec 2000
#define Module_MajorVersion "5.25"
#define Module_Version 525
#define Module_MajorVersion "5.26"
#define Module_Version 526
#define Module_MinorVersion ""
#define Module_Date "30 Nov 2000"
#define Module_Date "13 Dec 2000"
#define Module_ApplicationDate2 "30-Nov-00"
#define Module_ApplicationDate4 "30-Nov-2000"
#define Module_ApplicationDate2 "13-Dec-00"
#define Module_ApplicationDate4 "13-Dec-2000"
#define Module_ComponentName "RISC_OSLib"
#define Module_ComponentPath "RiscOS/Sources/Lib/RISC_OSLib"
#define Module_FullVersion "5.25"
#define Module_HelpVersion "5.25 (30 Nov 2000)"
#define Module_FullVersion "5.26"
#define Module_HelpVersion "5.26 (13 Dec 2000)"
#
# BBE Makefile fragment for rom_link for the C library
#
XTENT = perl build:xtentries >
LD = link
LDFLAGS = -linkversion 519
ABSSYM = RISC_OSLib:o.abssym
C_ABSSYM = RISC_OSLib:o.c_abssym
A_ABSSYM = RISC_OSLib:o.a_abssym
#
# Final link for the ROM Image {using given base address}
#
rom_link_Entries:
${XTENT} syms.C_Entries kernel.s.k_entries clib.s.cl_entries
print rlib.swi { >> syms.C_Entries }
| C_Entries *currently* only adds _swi/_swix to RO2 symbols.
egrep -v "^(0x00000000 . )?_swix?$" < syms.C_Entries > syms.A_Entries
rom_link_RISC_OSLib:
${XTENT} syms.Entries kernel.s.k_entries clib.s.cl_entries rlib.s.rl_entries
print rlib.swi { >> syms.Entries }
rom_link_CLib:
${XTENT} syms.Entries kernel.s.k_entries clib.s.cl_entries
print rlib.swi { >> syms.Entries }
rom_link: rom_link_${TARGET} rom_link_Entries
${LD} ${LDFLAGS} -o linked.${TARGET} aof.${TARGET} \
-symdefs syms.C_Entries \
-symdefs syms.A_Entries \
-symdefs syms.Entries \
-symbols syms.${TARGET} \
-bin -base ${ADDRESS} \
-map > map.${TARGET}
|
${CP} linked.${TARGET} ${LINKDIR}.${TARGET} ${CPFLAGS}
|
${CP} syms.Entries ${ABSSYM} ${CPFLAGS}
${CP} syms.C_Entries ${C_ABSSYM} ${CPFLAGS}
${CP} syms.A_Entries ${A_ABSSYM} ${CPFLAGS}
|
@echo ${COMPONENT}: rom_link complete
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment