cryptodev kernel module recipe
From: Yashpal Dutta <[email protected]>
This is a /dev/crypto device driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a cipher.
--- recipes-kernel/cryptodev/cryptodev_1.5.bb | 17 +++++++++++++ .../cryptodev/files/makefile_fixup.patch | 26 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-kernel/cryptodev/cryptodev_1.5.bb create mode 100644 recipes-kernel/cryptodev/files/makefile_fixup.patch
recipes-kernel/cryptodev/cryptodev_1.5.bb new file +17 -0
@@ -0,0 +1,17 @@ +SECTION = "devel" +SUMMARY = "Linux Cryptodev KERNEL MODULE" +DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +RCONFLICTS_${PN} = "ocf-linux" + +inherit module + +SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" + +SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ + file://makefile_fixup.patch" + +EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' + +S = "${WORKDIR}/git"
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +26 -0
@@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index 2be8825..b36d68c 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,7 @@ + KBUILD_CFLAGS += -I$(src) + KERNEL_DIR = /lib/modules/$(shell uname -r)/build + VERSION = 1.5 ++PREFIX = + + cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o + +@@ -12,10 +13,10 @@ build: version.h + version.h: Makefile + @echo "#define VERSION \"$(VERSION)\"" > version.h + +-install: ++modules_install: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install +- @echo "Installing cryptodev.h in /usr/include/crypto ..." +- @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h ++ @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..." ++ @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.h + + clean: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
Signature · 1 line
1.7.9.5
Quoted 8 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a cipher.Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>
Should this work on master and danny as well?
-M
I don't think it is urgent to apply it in danny and master now.
I'd like to see what will happen on acceptance of this patch by upstream oe-core/meta-oe.
Best Regards,
Zhenhua
Quoted 25 lines
-----Original Message-----
From: McClintock Matthew-B29882
Sent: Wednesday, November 28, 2012 12:54 PM
To: Luo Zhenhua-B19537
Cc: [email protected]; McClintock Matthew-B29882; Dutta Yashpal-B05456
Subject: Re: [meta-freescale] [meta-fsl-ppc denzil] cryptodev kernel module recipeQuoted 3 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD orFreeBSD.
Quoted 2 lines
The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a
cipher.
Quoted 3 lines
Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>Should this work on master and danny as well?
-M
Hi Zhenhua,
I don't understand your statement on urgency. Cryptodev must be part of SDK-1.3.1 release. So, Keeping it in meta-fsl-ppc is required till upstream completes.
Regards
Yashpal
Quoted 44 lines
-----Original Message-----
From: Luo Zhenhua-B19537
Sent: Wednesday, November 28, 2012 10:30 AM
To: McClintock Matthew-B29882
Cc: [email protected]; Dutta Yashpal-B05456
Subject: RE: [meta-freescale] [meta-fsl-ppc denzil] cryptodev kernel module recipeI don't think it is urgent to apply it in danny and master now.
I'd like to see what will happen on acceptance of this patch by upstream oe-core/meta-oe.
Best Regards,
Zhenhua
Quoted 26 lines
-----Original Message-----
From: McClintock Matthew-B29882
Sent: Wednesday, November 28, 2012 12:54 PM
To: Luo Zhenhua-B19537
Cc: [email protected]; McClintock Matthew-B29882; Dutta Yashpal-B05456
Subject: Re: [meta-freescale] [meta-fsl-ppc denzil] cryptodev kernel module recipeQuoted 4 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD orFreeBSD.
Quoted 2 lines
The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a
cipher.
Quoted 3 lines
Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>Should this work on master and danny as well?
-M
Quoted 4 lines · On Tue, Nov 27, 2012 at 11:02 PM, Dutta Yashpal-B05456 <[email protected]>…
Hi Zhenhua,
I don't understand your statement on urgency. Cryptodev must be part of SDK-1.3.1 release. So, Keeping it in meta-fsl-ppc is required till upstream completes.
Yashpal,
You are posting to an upstream list. This patch is already in the SDK.
-M
I mean we need to put this package into upstream oe-core or meta-oe, this shouldn't be FSL PPC specific package.
Best Regards,
Zhenhua
Quoted 63 lines
-----Original Message-----
From: Dutta Yashpal-B05456
Sent: Wednesday, November 28, 2012 1:03 PM
To: Luo Zhenhua-B19537; McClintock Matthew-B29882
Cc: [email protected]
Subject: RE: [meta-freescale] [meta-fsl-ppc denzil] cryptodev kernel module recipeHi Zhenhua,
I don't understand your statement on urgency. Cryptodev must be part of SDK-1.3.1 release. So, Keeping it in meta-fsl-ppc is required till upstream completes.
Regards
YashpalQuoted 46 lines
-----Original Message-----
From: Luo Zhenhua-B19537
Sent: Wednesday, November 28, 2012 10:30 AM
To: McClintock Matthew-B29882
Cc: [email protected]; Dutta Yashpal-B05456
Subject: RE: [meta-freescale] [meta-fsl-ppc denzil] cryptodev kernel module recipeI don't think it is urgent to apply it in danny and master now.
I'd like to see what will happen on acceptance of this patch by upstream oe-core/meta-oe.
Best Regards,
Zhenhua
Quoted 28 lines
-----Original Message-----
From: McClintock Matthew-B29882
Sent: Wednesday, November 28, 2012 12:54 PM
To: Luo Zhenhua-B19537
Cc: [email protected]; McClintock Matthew-B29882; Dutta
Yashpal-B05456
Subject: Re: [meta-freescale] [meta-fsl-ppc denzil] cryptodev kernel module recipeQuoted 4 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD orFreeBSD.
Quoted 3 lines
The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a
cipher.
Quoted 3 lines
Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>Should this work on master and danny as well?
-M
Quoted 1 line · On 11/28/2012 12:00 AM, Luo Zhenhua-B19537 wrote:
I don't think it is urgent to apply it in danny and master now.
If it does go into meta-fsl-ppc, I hope you'll also include it in the master branch. This way, people working with master can test it.
Thanks
Quoted 8 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a cipher.Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>
I think this should be send to meta-oe as it is not SoC specific, however I have some comments in the recipe so you can fix them before it...
Quoted 36 lines
--- recipes-kernel/cryptodev/cryptodev_1.5.bb | 17 +++++++++++++ .../cryptodev/files/makefile_fixup.patch | 26 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-kernel/cryptodev/cryptodev_1.5.bb create mode 100644 recipes-kernel/cryptodev/files/makefile_fixup.patchrecipes-kernel/cryptodev/cryptodev_1.5.bb new file +16
-0@@ -0,0 +1,17 @@ +SECTION = "devel" +SUMMARY = "Linux Cryptodev KERNEL MODULE" +DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +RCONFLICTS_${PN} = "ocf-linux" + +inherit module + +SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" + +SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ + file://makefile_fixup.patch" + +EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' +S = "${WORKDIR}/git"recipes-kernel/cryptodev/files/makefile_fixup.patch new file +0
-0
recipes-kernel/cryptodev/files/makefile_fixup.patch line 7
Quoted 7 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +7
-0@@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index 2be8825..b36d68c 100644 +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,7 @@ + KBUILD_CFLAGS += -I$(src) + KERNEL_DIR = /lib/modules/$(shell uname -r)/build
Please rename the KERNEL_DIR variable to KERNEL_SRC so it follow the standard variables used by modules in general and you can avoid setting it in the bb file.
recipes-kernel/cryptodev/files/makefile_fixup.patch line 9
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ VERSION = 1.5 ++PREFIX =
The expected variable is DESTDIR. In fact you should have both, read bellow...
recipes-kernel/cryptodev/files/makefile_fixup.patch line 23
Quoted 13 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +13
-0+ cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o + +@@ -12,10 +13,10 @@ build: version.h + version.h: Makefile + @echo "#define VERSION \"$(VERSION)\"" > version.h + +-install: ++modules_install: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install +- @echo "Installing cryptodev.h in /usr/include/crypto ..." +- @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h ++ @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..." ++ @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.h
Use $(DESTDIR)$(PREFIX)/include/...
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ clean: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 53 lines · Otavio Salvador
Quoted 8 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a cipher.Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>I think this should be send to meta-oe as it is not SoC specific, however I have some comments in the recipe so you can fix them before it...
Quoted 39 lines
--- recipes-kernel/cryptodev/cryptodev_1.5.bb | 17 +++++++++++++ .../cryptodev/files/makefile_fixup.patch | 26 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-kernel/cryptodev/cryptodev_1.5.bb create mode 100644 recipes-kernel/cryptodev/files/makefile_fixup.patchrecipes-kernel/cryptodev/cryptodev_1.5.bb new file +16
-0@@ -0,0 +1,17 @@ +SECTION = "devel" +SUMMARY = "Linux Cryptodev KERNEL MODULE" +DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +RCONFLICTS_${PN} = "ocf-linux" + +inherit module + +SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" + +SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ + file://makefile_fixup.patch" + +EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' +S = "${WORKDIR}/git"recipes-kernel/cryptodev/files/makefile_fixup.patch new file +3
-0@@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index 2be8825..b36d68c 100644 +--- a/Makefile
Quoted 8 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch line 7
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +4
-0++++ b/Makefile +@@ -1,6 +1,7 @@ + KBUILD_CFLAGS += -I$(src) + KERNEL_DIR = /lib/modules/$(shell uname -r)/buildPlease rename the
KERNEL_DIRvariable toKERNEL_SRCso it follow the standard variables used by modules in general and you can avoid setting it in the bb file.
You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects Makefile that we don't control. We are just patching up the Makefile a bit so it works properly and don't want to redefine variables this project has been using.
OTOH this patch needs an upstream-status and also needs to be sent upstream.
Quoted 5 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch line 9
Quoted 3 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ VERSION = 1.5 ++PREFIX =The expected variable is DESTDIR. In fact you should have both, read bellow...
You are right here... it should be ${DESTDIR)$(PREFIX)
-M
Quoted 30 lines
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +3
-0+ cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o + +@@ -12,10 +13,10 @@ build: version.hrecipes-kernel/cryptodev/files/makefile_fixup.patch line 23
Quoted 10 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +10
-0+ version.h: Makefile + @echo "#define VERSION \"$(VERSION)\"" > version.h + +-install: ++modules_install: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install +- @echo "Installing cryptodev.h in /usr/include/crypto ..." +- @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h ++ @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..." ++ @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.hUse $(DESTDIR)$(PREFIX)/include/...
recipes-kernel/cryptodev/files/makefile_fixup.patch line 26
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ clean: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
_______________________________________________
meta-freescale mailing list [email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Quoted 64 lines · On Wed, Nov 28, 2012 at 2:50 PM, McClintock Matthew-B29882…
Quoted 53 lines · Otavio Salvador
Quoted 8 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a cipher.Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>I think this should be send to meta-oe as it is not SoC specific, however I have some comments in the recipe so you can fix them before it...
Quoted 39 lines
--- recipes-kernel/cryptodev/cryptodev_1.5.bb | 17 +++++++++++++ .../cryptodev/files/makefile_fixup.patch | 26 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-kernel/cryptodev/cryptodev_1.5.bb create mode 100644 recipes-kernel/cryptodev/files/makefile_fixup.patchrecipes-kernel/cryptodev/cryptodev_1.5.bb new file +16
-0@@ -0,0 +1,17 @@ +SECTION = "devel" +SUMMARY = "Linux Cryptodev KERNEL MODULE" +DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +RCONFLICTS_${PN} = "ocf-linux" + +inherit module + +SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" + +SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ + file://makefile_fixup.patch" + +EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' +S = "${WORKDIR}/git"recipes-kernel/cryptodev/files/makefile_fixup.patch new file +3
-0@@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index 2be8825..b36d68c 100644 +--- a/MakefileQuoted 8 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch line 7
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +4
-0++++ b/Makefile +@@ -1,6 +1,7 @@ + KBUILD_CFLAGS += -I$(src) + KERNEL_DIR = /lib/modules/$(shell uname -r)/buildPlease rename the
KERNEL_DIRvariable toKERNEL_SRCso it follow the standard variables used by modules in general and you can avoid setting it in the bb file.
Quoted 6 lines
You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects
Makefilethat we don't control. We are just patching up theMakefilea bit so it works properly and don't want to redefine variables this project has been using.OTOH this patch needs an upstream-status and also needs to be sent upstream.
Yes I know it is inside of the project Makefile however you're patching it anyway so better to make it us the standards and send upstream.
Quoted 39 lines
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch line 9
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ VERSION = 1.5 ++PREFIX =The expected variable is DESTDIR. In fact you should have both, read bellow...
You are right here... it should be ${DESTDIR)$(PREFIX)
-M
Quoted 30 lines
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +3
-0+ cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o + +@@ -12,10 +13,10 @@ build: version.hrecipes-kernel/cryptodev/files/makefile_fixup.patch line 23
Quoted 10 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +10
-0+ version.h: Makefile + @echo "#define VERSION \"$(VERSION)\"" > version.h + +-install: ++modules_install: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install +- @echo "Installing cryptodev.h in /usr/include/crypto ..." +- @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h ++ @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..." ++ @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.hUse $(DESTDIR)$(PREFIX)/include/...
recipes-kernel/cryptodev/files/makefile_fixup.patch line 26
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ clean: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
_______________________________________________
meta-freescale mailing list [email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 71 lines · Otavio Salvador
Quoted 69 lines · On Wed, Nov 28, 2012 at 2:50 PM, McClintock Matthew-B29882…
Quoted 53 lines · Otavio Salvador
Quoted 8 lines · Zhenhua Luo
From: Yashpal Dutta <[email protected]>
This is a
/dev/cryptodevice driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access of existing ciphers in kernel space from userspace, thus enabling re-use of a hardware implementation of a cipher.Signed-off-by Yashpal Dutta <[email protected]>Signed-off-by Zhenhua Luo <[email protected]>I think this should be send to meta-oe as it is not SoC specific, however I have some comments in the recipe so you can fix them before it...
Quoted 39 lines
--- recipes-kernel/cryptodev/cryptodev_1.5.bb | 17 +++++++++++++ .../cryptodev/files/makefile_fixup.patch | 26 ++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 recipes-kernel/cryptodev/cryptodev_1.5.bb create mode 100644 recipes-kernel/cryptodev/files/makefile_fixup.patchrecipes-kernel/cryptodev/cryptodev_1.5.bb new file +16
-0@@ -0,0 +1,17 @@ +SECTION = "devel" +SUMMARY = "Linux Cryptodev KERNEL MODULE" +DESCRIPTION = "The Cryptodev package contains the kernel /dev/crypto module" +LICENSE = "GPLv2" +LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263" +RCONFLICTS_${PN} = "ocf-linux" + +inherit module + +SRCREV = "1c24a0aa996630518d47826a2e3fea129ea094c7" + +SRC_URI = "git://repo.or.cz/cryptodev-linux.git;protocol=git \ + file://makefile_fixup.patch" + +EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' +S = "${WORKDIR}/git"recipes-kernel/cryptodev/files/makefile_fixup.patch new file +3
-0@@ -0,0 +1,26 @@ +diff --git a/Makefile b/Makefile +index 2be8825..b36d68c 100644 +--- a/MakefileQuoted 8 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch line 7
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +4
-0++++ b/Makefile +@@ -1,6 +1,7 @@ + KBUILD_CFLAGS += -I$(src) + KERNEL_DIR = /lib/modules/$(shell uname -r)/buildPlease rename the
KERNEL_DIRvariable toKERNEL_SRCso it follow the standard variables used by modules in general and you can avoid setting it in the bb file.You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects
Makefilethat we don't control. We are just patching up theMakefilea bit so it works properly and don't want to redefine variables this project has been using.
Quoted 5 lines
Quoted 1 line
OTOH this patch needs an upstream-status and also needs to be sent upstream.
Yes I know it is inside of the project
Makefilehowever you're patching it anyway so better to make it us the standards and send upstream.
That's fine, but I would not let that hold up this patch if the author did not want to pursue getting upstream to change such things. ;)
-M
Quoted 50 lines
Quoted 39 lines
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch line 9
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ VERSION = 1.5 ++PREFIX =The expected variable is DESTDIR. In fact you should have both, read bellow...
You are right here... it should be ${DESTDIR)$(PREFIX)
-M
Quoted 30 lines
Quoted 4 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +3
-0+ cryptodev-objs = ioctl.o main.o cryptlib.o authenc.o zc.o util.o + +@@ -12,10 +13,10 @@ build: version.hrecipes-kernel/cryptodev/files/makefile_fixup.patch line 23
Quoted 10 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +10
-0+ version.h: Makefile + @echo "#define VERSION \"$(VERSION)\"" > version.h + +-install: ++modules_install: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` modules_install +- @echo "Installing cryptodev.h in /usr/include/crypto ..." +- @install -D crypto/cryptodev.h /usr/include/crypto/cryptodev.h ++ @echo "Installing cryptodev.h in $(PREFIX)/usr/include/crypto ..." ++ @install -D crypto/cryptodev.h $(PREFIX)/usr/include/crypto/cryptodev.hUse $(DESTDIR)$(PREFIX)/include/...
recipes-kernel/cryptodev/files/makefile_fixup.patch line 26
Quoted 2 lines
recipes-kernel/cryptodev/files/makefile_fixup.patch new file +2
-0+ clean: + make -C $(KERNEL_DIR) SUBDIRS=`pwd` clean--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
_______________________________________________
meta-freescale mailing list [email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale--
Otavio SalvadorO.S. Systems
E-mail: [email protected] http://www.ossystems.com.br
Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
_______________________________________________
meta-freescale mailing list [email protected]
https://lists.yoctoproject.org/listinfo/meta-freescale
Quoted 5 lines · On Wed, Nov 28, 2012 at 4:00 PM, McClintock Matthew-B29882…
Quoted 5 lines
Quoted 5 lines
You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects
Makefilethat we don't control. We are just patching up theMakefilea bit so it works properly and don't want to redefine variables this project has been using.
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
OTOH this patch needs an upstream-status and also needs to be sent upstream.
Yes I know it is inside of the project
Makefilehowever you're patching it anyway so better to make it us the standards and send upstream.That's fine, but I would not let that hold up this patch if the author did not want to pursue getting upstream to change such things. ;)
This recipe is not target to meta-fsl-ppc, is it? It seems to fit meta-openembedded.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 13 lines · Otavio Salvador
Quoted 11 lines · On Wed, Nov 28, 2012 at 4:00 PM, McClintock Matthew-B29882…
Quoted 10 lines
Quoted 6 lines
You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects
Makefilethat we don't control. We are just patching up theMakefilea bit so it works properly and don't want to redefine variables this project has been using.OTOH this patch needs an upstream-status and also needs to be sent upstream.
Yes I know it is inside of the project
Makefilehowever you're patching it anyway so better to make it us the standards and send upstream.
Quoted 5 lines
Quoted 2 lines
That's fine, but I would not let that hold up this patch if the author did not want to pursue getting upstream to change such things. ;)
This recipe is not target to meta-fsl-ppc, is it? It seems to fit meta-openembedded.
Well, the maintainer there would have the final say, but I think changing an upstream projects stuff should not effect it's acceptance (into meta-oe or meta-fsl-ppc)
-M
Quoted 18 lines · On Wed, Nov 28, 2012 at 5:33 PM, McClintock Matthew-B29882…
Quoted 16 lines · Otavio Salvador
Quoted 13 lines · On Wed, Nov 28, 2012 at 4:00 PM, McClintock Matthew-B29882…
Quoted 10 lines
Quoted 6 lines
You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects
Makefilethat we don't control. We are just patching up theMakefilea bit so it works properly and don't want to redefine variables this project has been using.OTOH this patch needs an upstream-status and also needs to be sent upstream.
Yes I know it is inside of the project
Makefilehowever you're patching it anyway so better to make it us the standards and send upstream.That's fine, but I would not let that hold up this patch if the author did not want to pursue getting upstream to change such things. ;)
Quoted 6 lines
Quoted 2 lines
This recipe is not target to meta-fsl-ppc, is it? It seems to fit meta-openembedded.
Well, the maintainer there would have the final say, but I think changing an upstream projects stuff should not effect it's acceptance (into meta-oe or meta-fsl-ppc)
I am not in position to nack something for meta-fsl-ppc. In meta-oe I am in some areas but not in crypto packages; however meta-oe discussion is off-topic here.
My intention to comment on the recipe was to help. I noticed something that had an alternative solution and seemed easy to improve it as it was going to add a patch for Makefile so change one or two lines wouldn't be a big deal ...
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: [email protected] http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
Quoted 27 lines · Otavio Salvador
Quoted 18 lines · On Wed, Nov 28, 2012 at 5:33 PM, McClintock Matthew-B29882…
Quoted 16 lines · Otavio Salvador
Quoted 13 lines · On Wed, Nov 28, 2012 at 4:00 PM, McClintock Matthew-B29882…
Quoted 10 lines
Quoted 6 lines
You made the same mistake reveiwing this Darren did... these are NOT in our recipe they are in the projects
Makefilethat we don't control. We are just patching up theMakefilea bit so it works properly and don't want to redefine variables this project has been using.OTOH this patch needs an upstream-status and also needs to be sent upstream.
Yes I know it is inside of the project
Makefilehowever you're patching it anyway so better to make it us the standards and send upstream.That's fine, but I would not let that hold up this patch if the author did not want to pursue getting upstream to change such things. ;)
Quoted 6 lines
Quoted 2 lines
This recipe is not target to meta-fsl-ppc, is it? It seems to fit meta-openembedded.
Well, the maintainer there would have the final say, but I think changing an upstream projects stuff should not effect it's acceptance (into meta-oe or meta-fsl-ppc)
Quoted 8 lines
I am not in position to nack something for meta-fsl-ppc. In meta-oe I am in some areas but not in crypto packages; however meta-oe discussion is off-topic here.
My intention to comment on the recipe was to help. I noticed something that had an alternative solution and seemed easy to improve it as it was going to add a patch for
Makefileso change one or two lines wouldn't be a big deal ...
I'm just saying that the change you requested requires convincing upstream to accept a change and might require lots of other bits to be changed not limited to other build systems and/or documentation.
I don't think that onus should be placed on a recipe author. That being said, I think what you suggested is probably the right thing to do but sometimes other priorities will come first ;)
-M