Project

General

Profile

Feature #19337

Add function to download from product area

Added by Richard Neswold over 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Kernel Enhancement
Start date:
03/09/2018
Due date:
% Done:

0%

Estimated time:
Duration:

Description

It would be nice to have a function in the kernel which knew where to download modules. Unless a better name is offered, I'd propose something like productLoad(). For instance, calling this function on a mv5500 running VxWorks 6.4 translates

productLoad("mooc-4.7.out");

into

ld(1, 1, "vxworks_boot/v6.4/module/mv5500/mooc-4.7.out");

whereas, on a mv2434 running VxWorks 6.7, it is translated to:

ld(0, 0, "vxworks_boot/v6.7/module/mv2434/mooc-4.7.out");

It could also print helpful error messages when a module can't be loaded (as long as the underlying ld() function provides a useful error status.)

The function could also do some intelligent adjustments. For instance, if the file name has our "-beta" designation in it, it means the developer is testing a module. In this case the first argument to ld() should be set to 1 so that all symbols are loaded, not just global symbols. If the filename has a version number, then it's operational and a 0 should be passed as the first argument to ld().



Also available in: Atom PDF