Skip to contentSkip to conversation

Added linux drivers backports project

PATCH New Petr Vorel 2 participants 4 messages Jul 21, 2015 – Jul 22, 2015

lore
Share & tools
lore

Petr Vorel

author
#0 lore raw

PATCH v8 1/1 Added linux drivers backports project

https://backports.wiki.kernel.org

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc "Yann E. MORIN" <[email protected]>

---
TODO: still don't know how to handle dependency on linux .config for target linux-backports-menuconfig.
TODO: use kernel-module? IMHO not suitable for linux-backports.

Changes v7->v8:
* Bump version to latest stable 4.1.1-1 (dropped upsteam patx to fix build error - released in new version).
* s/TARGET_MAKE_ENV/LINUX_MAKE_ENV (suggested by Yann E. MORIN)
* Improve text in menuconfig (suggested by Yann E. MORIN)
* Move fragments list after the base files in menuconfig (suggested by Yann E. MORIN)
* Add comments for nesting ifeq-blocks (suggested by Yann E. MORIN)
* Fix indentation in Config.in

Changes v6->v7:
* Bump version to latest stable 4.0.1-1.
* Update to current version of kconfig-package.
* Add option to specify config fragments.
* Include upstream patch to fix build error.

Changes v5->v6:
Added changes by Arnout Vandecappelle in Mon Apr 20 21:46:34 UTC 2015:
* linux-backports.mk: $(LINUX_BACKPORTS_KCONFIG_FILE): linux
this doesn't help: we'd need to use:
LINUX_BACKPORTS_KCONFIG_FILE := $(LINUX_BACKPORTS_DIR)/defconfigs/$(call qstrip,$(BR2_PACKAGE_LINUX_BACKPORTS_DEFCONFIG)) but then we don't get value for $(LINUX_BACKPORTS_DIR) nor $(@D).
* linux-backports.mk: LINUX_BACKPORTS_PATCH_DEPENDENCIES = linux
This also does not help, it does linux extracting, patching, but we
need also configuring. We'd need something like
LINUX_BACKPORTS_CONFIGURE_DEPENDENCIES to be implemented.
* Config.in: info about support from kernel 3.0.
* Config.in: help text wrapped to 72 columns.

Changes v4->v5:
* Added changes made by Thomas Petazzoni in Sun, 19 Apr 2015 11:03:26 +0200.

Changes v3->v4:
* Define LINUX_BACKPORTS_MAKE_ENV instead of LINUX_BACKPORTS_MAKE_OPTS, remove TARGET_MAKE_ENV from it.
* Add nconfig to LINUX_BACKPORTS_KCONFIG_EDITORS.
* Clean formating of build commands.

---
 package/Config.in                            |  1 +
 package/linux-backports/Config.in            | 46 ++++++++++++++++++++
 package/linux-backports/linux-backports.hash |  2 +
 package/linux-backports/linux-backports.mk   | 63 ++++++++++++++++++++++++++++
 4 files changed, 112 insertions(+)
 create mode 100644 package/linux-backports/Config.in
 create mode 100644 package/linux-backports/linux-backports.hash
 create mode 100644 package/linux-backports/linux-backports.mk
package/Config.in +1 -0
index 9942e3a..db84cd7 100644
@@ -372,6 +372,7 @@ endif
 	source "package/kbd/Config.in"
 	source "package/lcdproc/Config.in"
 	source "package/libump/Config.in"
+	source "package/linux-backports/Config.in"
 	source "package/lirc-tools/Config.in"
 	source "package/lm-sensors/Config.in"
 	source "package/lshw/Config.in"
package/linux-backports/Config.in new file +46 -0

46 lines not on this page · raw message

package/linux-backports/linux-backports.hash new file +2 -0
new file mode 100644
index 0000000..0d41067
@@ -0,0 +1,2 @@
+# From: https://www.kernel.org/pub/linux/kernel/projects/backports/stable/v4.1.1/sha256sums.asc
+sha256 7fca160665b801796ce50def18f2fd6def1c4452290e93ec5332444fb2021bd6  backports-4.1.1-1.tar.xz
package/linux-backports/linux-backports.mk new file +63 -0

63 lines not on this page · raw message

Signature · 1 line
1.8.0
#1 lore raw

PATCH v8 1/1 Added linux drivers backports project

Petr, All,

On 2015-07-22 01:00 +0200, Petr Vorel spake thusly:

Quoted 10 lines

https://backports.wiki.kernel.org

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc "Yann E. MORIN" <[email protected]>

---
TODO: still don't know how to handle dependency on linux .config for target linux-backports-menuconfig.
TODO: use kernel-module? IMHO not suitable for linux-backports.

As I said in my previous mail, I have adopted this patch. It means I did some changes to it locally, notably bump to 4.1.1-1 and solve the configury dependency, see my branch:
http://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/linux-backports

I was about to send it yesterday evening/night, but I was really exhausted after a long working day, so I post-poned the respin to avoid mishaps due to tiredness. ;-) I'll probably send it this evening when I'm back home (UTC+2).

As for the configury stuff, it will need another patch to be applied first, to fix a breakage in the pkg-kconfig infra (my bad!), see:

    https://patchwork.ozlabs.org/patch/498333/
Quoted 9 lines

Changes v7->v8:
* Bump version to latest stable 4.1.1-1 (dropped upsteam patx to fix build error - released in new version).
* s/TARGET_MAKE_ENV/LINUX_MAKE_ENV (suggested by Yann E. MORIN)
* Improve text in menuconfig (suggested by Yann E. MORIN)
* Move fragments list after the base files in menuconfig (suggested by Yann E. MORIN)
* Add comments for nesting ifeq-blocks (suggested by Yann E. MORIN)
* Fix indentation in Config.in

I will see to include those changes from your v8 into my own branch (if I missed anything).

Thanks! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
author
#2 lore raw

PATCH v8 1/1 Added linux drivers backports project

Yann and all,

Quoted 9 lines

As I said in my previous mail, I have adopted this patch. It means I did some changes to it locally, notably bump to 4.1.1-1 and solve the configury dependency, see my branch:
http://git.buildroot.org/~ymorin/git/buildroot/log/?h=yem/linux-backports

I was about to send it yesterday evening/night, but I was really exhausted after a long working day, so I post-poned the respin to avoid mishaps due to tiredness. ;-) I'll probably send it this evening when I'm back home (UTC+2).

Not a problem, the main concern is to get work done :-).
I see it really helped to use kernel-module, I read these patches some time ago and I didn't understand they're suitable for backports.

Quoted 3 lines

As for the configury stuff, it will need another patch to be applied first, to fix a breakage in the pkg-kconfig infra (my bad!), see:

    https://patchwork.ozlabs.org/patch/498333/

Great you solve linux config dependency problem. Btw, there is a typo in " stamp-like file wihch path" => which

Kind regards,
Petr

#3 lore raw

PATCH v8 1/1 Added linux drivers backports project

In reply to Petr Vorel

Petr, All,

On 2015-07-22 01:00 +0200, Petr Vorel spake thusly:

Quoted 10 lines

https://backports.wiki.kernel.org

Cc Arnout Vandecappelle <[email protected]>
Cc Thomas Petazzoni <[email protected]>
Cc "Yann E. MORIN" <[email protected]>

---
TODO: still don't know how to handle dependency on linux .config for target linux-backports-menuconfig.
TODO: use kernel-module? IMHO not suitable for linux-backports.

So I've had a look at this new iteration of yours, and all the changes you did I already had them in my version, plus more.

So I'll be using my version when re-spinning this in a moment.

Thank you for the hard work you've put in packaging this! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'