Bug 8013 - Compile and load a kernel module under BSP's fails on LSB image
Summary: Compile and load a kernel module under BSP's fails on LSB image
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-runtime (show other bugs)
Version: 1.9
Hardware: NUC x86_64
: Medium normal
Target Milestone: 1.9 M2
Assignee: Richard Purdie
QA Contact: Cristina Agurida
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-07-15 12:56 UTC by Cristina Agurida
Modified: 2015-08-12 12:04 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cristina Agurida 2015-07-15 12:56:17 UTC
STATUS: FAILED
BUILD: 1.9_M1.rc2: f9ea480e6c26fea46c3011c4e9d0e2de3d5c81b4
ENVIRONMENT: NUC(Next Unit of Computing)
BSP: genericx86-64
IMAGE TYPE: core-image-lsb-sdk
STEPS TO REPRODUCE: 
  
 This test follow the steps of the test case 316 from meta-yocto runtime test plan:

	- https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=316 


EXPECTED OUTCOME: 
  
 The module could be properly loaded.

ACTUAL OUTCOME:
 This error appears on log:

15:18:43 - bitbake-worker - RESULTS - Testcase 316:
Traceback (most recent call last):
  File /work/weekly/runtime/genericx86-64-lsb_nuc/poky/meta/lib/oeqa/utils/decorators.py, line 102, in wrapped_f
    return func(*args)
  File /work/weekly/runtime/genericx86-64-lsb_nuc/poky/meta/lib/oeqa/utils/decorators.py, line 90, in wrapped_f
    return f(*args)
  File /work/weekly/runtime/genericx86-64-lsb_nuc/poky/meta/lib/oeqa/utils/decorators.py, line 90, in wrapped_f
    return f(*args)
  File /work/weekly/runtime/genericx86-64-lsb_nuc/poky/meta/lib/oeqa/runtime/kernelmodule.py, line 31, in test_kernel_module
    self.assertEqual(status, 0, msg=n.join([cmd, output]))
AssertionError: 1 != 0 : cd /usr/src/kernel && make scripts
sh: line 0: cd: /usr/src/kernel: No such file or directory

===========================

Is this normal behavior on LSB images?
Comment 1 Bruce Ashfield 2015-07-15 13:22:48 UTC
It would be normal, since lsb doesn't include kernel-devsrc. You need
that to get /usr/src/kernel.
Comment 3 Cristina Agurida 2015-08-12 12:04:04 UTC
Verified