Hack references to get the linker using the open lib definitions.
This commit is contained in:
parent
195eb3a97b
commit
b3f5ef604f
3 changed files with 21 additions and 0 deletions
|
@ -451,3 +451,18 @@ static __attribute__((noinline)) void dump_flash_config_sectors(uint32_t start_s
|
||||||
dump_flash_sector(start_sector + 3, BOOT_INFO_SIZE);
|
dump_flash_sector(start_sector + 3, BOOT_INFO_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Hack references to dummy functions in open_esplibs object files to
|
||||||
|
* ensure that the linker uses the open definitions rather than the
|
||||||
|
* sdk definitions.
|
||||||
|
*/
|
||||||
|
|
||||||
|
void libnet80211_hostap_linker_hack();
|
||||||
|
void libnet80211_wl_cnx_linker_hack();
|
||||||
|
|
||||||
|
void open_esplibs_refs()
|
||||||
|
{
|
||||||
|
libnet80211_hostap_linker_hack();
|
||||||
|
libnet80211_wl_cnx_linker_hack();
|
||||||
|
}
|
||||||
|
|
|
@ -28,4 +28,7 @@ void sdk_hostap_handle_timer(struct sdk_netif_conninfo *cnx_node)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Needed to have the linker actually replace the above definitions. */
|
||||||
|
void libnet80211_hostap_linker_hack(){}
|
||||||
|
|
||||||
#endif /* OPEN_LIBNET80211_HOSTAP */
|
#endif /* OPEN_LIBNET80211_HOSTAP */
|
||||||
|
|
|
@ -31,4 +31,7 @@ void *sdk_cnx_node_search(uint8_t mac[6])
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Needed to have the linker actually replace the above definitions. */
|
||||||
|
void libnet80211_wl_cnx_linker_hack(){}
|
||||||
|
|
||||||
#endif /* OPEN_LIBNET80211_WL_CNX */
|
#endif /* OPEN_LIBNET80211_WL_CNX */
|
||||||
|
|
Loading…
Reference in a new issue