diff options
author | Jon Ringle <jon@ringle.org> | 2011-05-27 02:41:55 -0400 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2011-05-27 19:57:13 +0200 |
commit | 1c808eeee8177044b5c4468c0b5c4532cc2133f0 (patch) | |
tree | 339021bdf530c8ec064f205252f21f1042f5b7e2 | |
parent | 5ab4c14d56369b04fee1ae375ce0c6435be5c70b (diff) | |
download | ptxdist-1c808eeee8177044b5c4468c0b5c4532cc2133f0.tar.gz ptxdist-1c808eeee8177044b5c4468c0b5c4532cc2133f0.tar.xz |
template-src-linux-driver: Use lndir URL
By using lndir, the .ko files are kept separate from the src directory
and building multiple architectures can be supported
default extract is needed to allow lndir to be created.
Signed-off-by: Jon Ringle <jon@ringle.org>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/templates/template-src-linux-driver-in | 1 | ||||
-rw-r--r-- | rules/templates/template-src-linux-driver-make | 14 |
2 files changed, 2 insertions, 13 deletions
diff --git a/rules/templates/template-src-linux-driver-in b/rules/templates/template-src-linux-driver-in index 7cb61c87c..6edb6bc38 100644 --- a/rules/templates/template-src-linux-driver-in +++ b/rules/templates/template-src-linux-driver-in @@ -3,6 +3,7 @@ config @PACKAGE@ tristate select KERNEL + select HOST_LNDIR prompt "@package@" help FIXME diff --git a/rules/templates/template-src-linux-driver-make b/rules/templates/template-src-linux-driver-make index 6d6b385ee..2d562bc20 100644 --- a/rules/templates/template-src-linux-driver-make +++ b/rules/templates/template-src-linux-driver-make @@ -18,7 +18,7 @@ PACKAGES-$(PTXCONF_@PACKAGE@) += @package@ # @PACKAGE@_VERSION := @VERSION@ @PACKAGE@ := @package@-$(@PACKAGE@_VERSION) -@PACKAGE@_SRCDIR := $(PTXDIST_WORKSPACE)/local_src/$(@PACKAGE@) +@PACKAGE@_URL := lndir://$(PTXDIST_WORKSPACE)/local_src/$(@PACKAGE@) @PACKAGE@_DIR := $(BUILDDIR)/$(@PACKAGE@) @PACKAGE@_LICENSE := unknown @@ -27,14 +27,6 @@ $(STATEDIR)/kernel.targetinstall.post: $(STATEDIR)/@package@.targetinstall endif # ---------------------------------------------------------------------------- -# Extract -# ---------------------------------------------------------------------------- - -$(STATEDIR)/@package@.extract: - @$(call targetinfo) - @$(call touch) - -# ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- @@ -48,10 +40,6 @@ $(STATEDIR)/@package@.prepare: $(STATEDIR)/@package@.compile: @$(call targetinfo) -# # The kernel cannot build an out-of-tree driver out-of-tree :-) -# # So we make a local copy. - rm -fr $(@PACKAGE@_DIR) - cp -a $(@PACKAGE@_SRCDIR) $(@PACKAGE@_DIR) $(KERNEL_PATH) $(KERNEL_ENV) $(MAKE) $(KERNEL_MAKEVARS) \ -C $(KERNEL_DIR) \ M=$(@PACKAGE@_DIR) \ |