Commit Graph

5 Commits

Author SHA1 Message Date
Bruce Levy
836f7ba9cc techpack: Replace xtype with type while searching for sub-dirs
Some build environments do not support -xtype. Therefore
use -type instead.

Change-Id: I459bdd9e16dc31ea0b91d5f0cb86d4dabb1e3352
Signed-off-by: Bruce Levy <blevy@codeaurora.org>
2019-11-19 11:52:49 -08:00
Raghavendra Rao Ananta
b05d9892a4 techpack: Fix uapi headers_install
Since commit <d5470d14431e9d39e> ("kbuild: re-implement
Makefile.headersinst without recursion"), the headers_install
excludes Kbuild from providing information regarding uapi headers.
In fact, it recursively pulls all the headers from a given path,
in this case techpack/*. This isn't correct as techpack/ may have
non-uapi headers as well, which shouldn't be considered. Hence,
strictly look for include/uapi/$dir directory for the uapi headers.

Change-Id: Ic7b3f927bc962729da1b87ed90e5f50a1e4cd5c5
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
2019-10-29 15:31:14 -07:00
Prakruthi Deepak Heragu
b13a4c0cf8 techpack: Kbuild: Fix to compile the techpack completely
Due to path being inaccurate, the techpack folder was not being
compiled completely. Using techpack fixes this issue.

Change-Id: Id06927e5b4bfad0d5c8208b199d9d217abbf6306
Signed-off-by: Prakruthi Deepak Heragu <pheragu@codeaurora.org>
2019-09-13 17:25:11 -07:00
Satya Durga Srinivasu Prabhala
3f7ed16d1c techpack: replace type with xtype while searching for sub-dirs
To make sure sym links (if any) gets detected during search,
switch to xtype.

Change-Id: Idc0584b134f2ca4b395e53696e079337ff377f82
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
2019-09-04 11:09:24 -07:00
Bryan Huntsman
50327f3450 techpack: add tech package support
Enable tech packages to have kernel drivers that are physically
located in the kernel source tree but not present in the kernel
repository. This is done via a manifest line item to fetch a
techpackage-module into $KERNEL/techpack/$techpackage-module.
$KERNEL/techpack/Kbuild will automatically detect any
subdirectories and link them to the kernel's kbuild system.

The resulting layout of techpack within kernel source would be as
follows :-

    kernel/
    └── techpack/
        ├── Kbuild
        ├── stub/
        │    ├── Makefile
        │    ├── include/
        │    │   └── uapi/
        │    │       └── Kbuild
        │    └── stub.c
        └── techpackage-module/
            ├── Makefile
            └── include/
                └── uapi/
                    └── Kbuild

$KERNEL/techpack only contains Kbuild (no Makefile) at the
toplevel and this Kbuild takes care of both compiling the
subdirectories and of exporting the needed header files therein.
The reason for having only Kbuild at the top is that Kbuild
and Makefile cannot exist together in same directory and Makefile
doesn't cater to uapi header installation.

stub is an empty techpackage-module which serves both as a sample
layout and satisfies the requirement of kernel build system, by
providing necessary buit-in.o, when no other techpackage-module has
been pulled under techpack/.

$KERNEL/techpack/techpackage-module should have a Makefile at the
top and Kbuild under $KERNEL/techpack/techpackage-module/include/uapi
directory. The uapi headers pertaining to a techpackage-module
should reside under $KERNEL/techpack/techpackage-module/include/uapi
and associated Kbuild should have necessary rules to export it.

Change-Id: I0d0ced38566907d2074831edde0934833f666eff
Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
2019-06-18 15:04:24 -07:00