Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support modules in Linux #19

Open
ckaestne opened this issue Mar 28, 2013 · 1 comment
Open

Support modules in Linux #19

ckaestne opened this issue Mar 28, 2013 · 1 comment

Comments

@ckaestne
Copy link
Owner

This occurs quite frequently during linking, that two files cannot be linked together but are also just compiled as separate modules (which controls linking restrictively).

First of all, we need to handle how to read the feature model correctly to not attempt to link those files.

Second, we should build a mechanisms to check modules and infer their interfaces.

Here is an example of two files that may be linked individually or be loaded both as modules, but not linked both (the feature model does describe the constraints correctly, but we do not process them correctly):

** processing drivers/media/radio/si470x **
parsing3 files
composing
 * si470x_get_register when !CONFIG_VIDEO_DEV | CONFIG_VIDEO_DEV & !CONFIG_RADIO_SI470X | CONFIG_VIDEO_DEV & CONFIG_RADIO_SI470X & !CONFIG_USB_SI470X | CONFIG_VIDEO_DEV & CONFIG_RADIO_SI470X & CONFIG_USB_SI470X & !CONFIG_I2C_SI470X
    si470x_get_register: (*struct si470x_device, signed int) => signed int      if CONFIG_VIDEO_DEV & CONFIG_RADIO_SI470X & CONFIG_I2C_SI470X       at l/drivers/media/radio/si470x/radio-si470x-i2c:0:0
    si470x_get_register: (*struct si470x_device, signed int) => signed int      if CONFIG_VIDEO_DEV & CONFIG_RADIO_SI470X & CONFIG_USB_SI470X       at l/drivers/media/radio/si470x/radio-si470x-usb:0:0
@ckaestne
Copy link
Owner Author

feature model extraction should be precise enough now to cover this.
should work out of the box now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant