You are not logged in.

#1 2017-02-14 13:02:23

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

[SOLVED] Compile linux-mainline on a different pc

Hi Guys,

I'm trying to upgrade the kernel to 4.10rc8 in order to get my function keys and brightness working properly on zenbook. i'm wondering if i can compile the package on one pc (more powerful one) and then move it to the zenbook for install? or is there anywhere i can get a compile version for x64?

Thanks

Last edited by comnbatrock (2017-02-16 11:01:50)

Offline

#2 2017-02-14 13:42:29

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Compile linux-mainline on a different pc

Sure you can compile it on another PC. This applies to (most) any package Just as long as your CFLAGS or in this case .config don't include any cpu-specific options. The default CFLAGS in /etc/makepkg.conf target generic x86_64, as does the kernel .config so you should be all right; the usual exception is when users change their makepkg.conf to use e.g. -march=native (or when badly-written software overrides that).


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#3 2017-02-14 14:00:09

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

Re: [SOLVED] Compile linux-mainline on a different pc

Thanks. could you tell me how best to do this? I haven't done it before.

Offline

#4 2017-02-14 14:04:37

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Compile linux-mainline on a different pc

Generally, you shouldn't need to change anything, it all works by default. Have you changed your makepkg.conf?


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#5 2017-02-14 14:36:27

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

Re: [SOLVED] Compile linux-mainline on a different pc

no. If i download the package from the aur and then compile it - how do i then copy it form there to the other pc? do i just copy the relevant dirs?

Offline

#6 2017-02-14 14:40:09

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [SOLVED] Compile linux-mainline on a different pc

No, after you compile it simply copy the built *.pkg.tar.xz file.

Last edited by eschwartz (2017-02-14 14:44:00)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2017-02-14 14:42:35

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

Re: [SOLVED] Compile linux-mainline on a different pc

ah ok, thanks!

Offline

#8 2017-02-14 14:46:11

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: [SOLVED] Compile linux-mainline on a different pc

comnbatrock wrote:

...or is there anywhere i can get a compile version for x64?

There are a few unofficial repos that provide precompiled linux-mainline.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#9 2017-02-14 16:19:25

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

Re: [SOLVED] Compile linux-mainline on a different pc

Great - that makes thing's easier - thanks!

Offline

#10 2017-02-14 16:58:38

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

Re: [SOLVED] Compile linux-mainline on a different pc

just FYI that worked perfectly and the new mainline kernel (4.10 rc8) fixes the well known issue with the function keys on many ultrabooks not changing the brightness properly on older kernel versions. It works on my Asus UX305CA. i still need to get the ambient light sensor to work but i believe there's a driver for that.

Offline

#11 2017-02-14 17:30:39

2ManyDogs
Forum Moderator
Registered: 2012-01-15
Posts: 4,645

Re: [SOLVED] Compile linux-mainline on a different pc

comnbatrock wrote:

just FYI that worked perfectly

What's "that" ? Did you build it yourself or use one of the repos?

After you tell us what you did, please remember to mark your thread [SOLVED] (edit the title of your first post.)

Last edited by 2ManyDogs (2017-02-16 14:08:31)


How to post. A sincere effort to use modest and proper language and grammar is a sign of respect toward the community.

Offline

#12 2017-02-16 11:00:41

comnbatrock
Member
Registered: 2017-02-14
Posts: 17

Re: [SOLVED] Compile linux-mainline on a different pc

Actually i did both. I compiled it myself before i saw the post about the precompiled version on the unofficial repos. Anyway, after getting it working in a test from my own compiled kernel package  i did a fresh install (dual booth with win 10) of arch, installed the newest kernel from the unofficial repo and everything works great. With tlp and some customisations it runs as well as it does in windows 10.

Thanks for the help

Offline

Board footer

Powered by FluxBB