Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7047353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:45:40+00:00 2026-05-28T02:45:40+00:00

I am trying to build some kernel modules I added to my Ubuntu source

  • 0

I am trying to build some kernel modules I added to my Ubuntu source code. After many failed attempts to compile I found out that the same error keep happening in different places. The compiler is not able to find a set of headers which sit in an include directory in the folder.

E.X.

Main folder: drivers/scst/

Sub folder: drivers/scst/iscsi-scst/

Include folder: drivers/scst/include

How can I add that include folder to the makefile?

Here is the makefile;

ccflags-y += -Wno-unused-parameter

scst-y        += scst_main.o
scst-y        += scst_pres.o
scst-y        += scst_targ.o
scst-y        += scst_lib.o
scst-y        += scst_sysfs.o
scst-y        += scst_mem.o
scst-y        += scst_tg.o
scst-y        += scst_debug.o

obj-$(CONFIG_SCST)   += scst.o dev_handlers/ iscsi-scst/

I am about 50% sure of how to do it with a “normal” makefile as in one that not work with the kernel source but how can I do it with one like above?

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:45:40+00:00Added an answer on May 28, 2026 at 2:45 am

    Convention for driver code is to insert the include file for specific drivers into the same directory as the driver and include as #include "header.h". But if you want to do it your way use the -I option for gcc, so it might look like -Idrivers/scst/include or something along those lines and it should be added to the ccflags. Note: This path may change depending on where the Makefile you are editing is located.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to build some code on Ubuntu 10.04 LTS that uses OpenSSL 1.0.0.
I'm trying to build an application from source in windows that requires some Unix
I'm trying to build some code. Here is the error I'm getting: main.o: In
I'm trying to build some image algebra code that can work with images (basically
I am trying to build some code that is originally target at OSX/BSD/Linux for
I am trying to build some simulation software using makefile provided by them after
I'm trying to build some code for dynamically sorting a Linq IQueryable<>. The obvious
I am trying to build some code in jquery that won't work without specifying
I am trying to build a buildroot with kernel image, and after doing make
I am trying to build some dynamic code that parses a text file with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.