Skip to content

Commit c7e6ee4

Browse files
committed
Fix nasa#375, Separate network logic in pc-rtems to support generic targets
1 parent 79518b3 commit c7e6ee4

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

fsw/pc-rtems/make/build_options.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
# This indicates where to install target binaries created during the build
99
# Note - this should be phased out in favor of the staging dir from OSAL BSP
10-
set(INSTALL_SUBDIR "eeprom")
10+
set(INSTALL_SUBDIR "nonvol")
1111

1212
# Some upper-level code may be gated on _RTEMS_OS_ being defined
1313
# This is for compatibility with older build scripts which defined this symbol,

fsw/pc-rtems/src/cfe_psp_start.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@
3333
#include <errno.h>
3434
#include <rtems.h>
3535
#include <rtems/rtems_bsdnet.h>
36-
#include <rtems/rtems_dhcp_failsafe.h>
37-
#include <bsp.h>
36+
/* TODO Only needed for network setup, move? */
37+
//#include <rtems/rtems_dhcp_failsafe.h>
38+
//#include <bsp.h>
3839

3940
extern int rtems_fxp_attach(struct rtems_bsdnet_ifconfig *config, int attaching);
4041

@@ -63,6 +64,8 @@ extern int rtems_fxp_attach(struct rtems_bsdnet_ifconfig *config, int attaching)
6364

6465
rtems_id RtemsTimerId;
6566

67+
/* TODO in pc but not in generic... might be the only unique stuff? */
68+
#if 0
6669
static unsigned char ethernet_address[6] = {0x00, 0x04, 0x9F, 0x00, 0x27, 0x61};
6770
static char net_name_str[] = "fxp1";
6871
static char ip_addr_str[] = "10.0.2.17";
@@ -78,9 +81,11 @@ static struct rtems_bsdnet_ifconfig netdriver_config = {
7881
/* more options can follow */
7982
};
8083

84+
8185
struct rtems_bsdnet_config rtems_bsdnet_config = {
8286
.ifconfig = &netdriver_config, .bootp = rtems_bsdnet_do_dhcp_failsafe, /* fill if DHCP is used*/
8387
};
88+
#endif
8489

8590
/*
8691
** 1 HZ Timer "ISR"
@@ -200,7 +205,9 @@ void CFE_PSP_Main(void)
200205
/*
201206
** Set up the virtual FS mapping for the "/cf" directory
202207
*/
203-
Status = OS_FileSysAddFixedMap(&fs_id, "/mnt/eeprom", "/cf");
208+
/* TODO maybe make this into a config... or just switch to nonvol */
209+
// Status = OS_FileSysAddFixedMap(&fs_id, "/mnt/eeprom", "/cf");
210+
Status = OS_FileSysAddFixedMap(&fs_id, "/nonvol", "/cf");
204211
if (Status != OS_SUCCESS)
205212
{
206213
/* Print for informational purposes --

0 commit comments

Comments
 (0)