Hello,
In one of my custom XDC modules I am attempting to add my own getSects() function into package.xs. For whatever reason it does not seem that the function is called. I added print to see if I could find it in the output but it is not there. I also looked in the .xdl file for any of my template output, and nothing is there.
getSects():
function getSects()
{
print("Ethernet Driver Package getSects\n");
return "prog/drivers/ethernet/Ethernet_link.xdt";
}
Ethernet_link.xdt:
%var Ethernet = xdc.module('prog.drivers.ethernet.Ethernet');
SECTIONS {
`Ethernet.EthernetSectionNamePrefix` : {
__ethernet_region_start__ = .
`Ethernet.EthernetSectionNamePrefix + "." + Ethernet.TxDescriptorSectionName` : {*(`Ethernet.EthernetSectionNamePrefix + "." + Ethernet.TxDescriptorSectionName`)} > LSRAM
`Ethernet.EthernetSectionNamePrefix + "." + Ethernet.RxDescriptorSectionName` : {*(`Ethernet.EthernetSectionNamePrefix + "." + Ethernet.RxDescriptorSectionName`)} > LSRAM
`Ethernet.EthernetSectionNamePrefix + "." + Ethernet.RxBufferSectionName` : {*(`Ethernet.EthernetSectionNamePrefix + "." + Ethernet.RxBufferSectionName`)} > LSRAM
__ethernet_region_end__ = .
}
I must be missing something?