Jump to content

$KERNELDIR and friends


g40

Recommended Posts

Greetings.

 

Can I make sure I've understood this correctly. I want to ensure kernel sources always come from a local development directory. In my /userpatches I've got a lib.config which has: 

 

KERNELDIR="/home/user/sources/linux-sun8i"

 

with both KERNELSOURCE and KERNELBRANCH commented out. Is this the right thing to do?

 

And just so I can get all my idiot points at once:  Specifying KERNELSOURCE and/or KERNELBRANCH will anchor the source repo and branch to whatever I wish?

 

TAIA

 

Jerry.

 

P.S. Armbian *awesome* for super quick experiments/deployments.  

Link to comment
Share on other sites

Put your kernel tree under sources/LINUX_NEXT.  For example you have  linux-4.13-rc1 directory there. Then I have  in the /lib/config/sources/amlogic-s912.conf file:

next)
    KERNEL_USE_GCC='> 6.2'
    KERNELSOURCE=''
    KERNELBRANCH='branch:linux-4.13-rc1'

    KERNELDIR='LINUX_NEXT'
    SCR_BOOT='boot-amlogics905x_AM.cmd'

 

Then start image making:

./compile.sh BOARD=amlogic-s912 PROGRESS_DISPLAY=plain RELEASE=testing PROGRESS_LOG_TO_FILE=yes KERNEL_ONLY=no BUILD_DESKTOP=yes BRANCH=next CLEAN_LEVEL=debs NO_APT_CACHER=yes

 

 

RELEASE=testing means Debian testing Xfce. I have modified image making scripts for that

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines