Skip to content

custom build scripts und configs for linux kernel builds

License

Notifications You must be signed in to change notification settings

derco0n/linux-custom-builds

Repository files navigation

This is a bunch of build-scripts for the linux-kernel with some config files optimized for these devices:

	-ASUS EEEPC 1001PG (and may be some others)
		- Optimized for Intel Atom (instead of generic_x86)
		- Removed some uneeded stuff
			- AMD CPU-Features
			- NVIDIA and AMD Graphics support
			- RAID Stuff
			- NVME (This technology did not even exist back then)
			- misc
			- a lot of drivers which arent in the system
		- Changed default CPU governor to "CONSERVATIVE"
		- Optimized CFLAGS to build for Intel Atom CPUs

	- Dell Alienware-17R4 (and may be some similars)
		- Optimized for Intel Core2Duo/Xeon (instead of generic_x86)
		- Removed some uneeded stuff
			- AMD CPU-Features
			- AMD Graphics support
			- Firewire
			- a lot of drivers which arent in the system
		- Changed default CPU governor to "CONSERVATIVE"
		- Optimized CFLAGS to build for Intel Skylake CPUs

	- Odys Winpad 12 (and probably others as this is an Intel Baytrail/Cherrytrail convertible)
		- Optimized for Intel Atom (instead of generic_x86)
		 - Removed some uneeded stuff
                        - AMD CPU-Features
                        - NVIDIA and AMD Graphics support
                        - RAID Stuff
                        - NVME (This technology did not even exist back then)
                        - a lot of drivers which arent in the system
                - Optimized CFLAGS to build for Intel Atom CPUs

	- HP ProBook 650 G3 (and may be some similars)
		- Optimized for Intel Core2Duo/Xeon (instead of generic_x86)
		- Removed some uneeded stuff
			- AMD CPU-Features
			- AMD Graphics support
			- a lot of drivers which arent in the system
		- Optimized CFLAGS to build for Intel Skylake CPUs (its an Kaby-Lake but the CFLAGS are the same as for Skylake)


Building tested under Linux-Mint 19.

Needed:
sudo apt install build-essential kernel-package libncurses5-dev fakeroot wget bzip2 libelf-dev libssl-dev gpgv2 -y

Steps:

Optional - Setup ccache to speedup future builds:

Install ccache:
    apt install ccache -y

Make sure all compiler-symlinks are there (several symlinks e.g. gcc, g++ pointing to ccache) allowing it to work transparently without needing to change any makefile
    ls -l /usr/lib/ccache

setup your ccache config
    nano ~/.ccache/ccache.conf
        max_size=15.0G (or something else)
        cache_dir=/path/to/your/ccache-directory

put ccache to your $PATH-Variable. make sure ist before the other paths, as linux tries the first binary it can find (when firing gcc or g++ or another binary)
    nano ~/.bashrc
        Add the following line:
            export PATH="/usr/lib/ccache:$PATH"

check your configuration with:
    ccache -s
        It should like this:
            cache directory                     /path/to/your/ccache-directory
            primary config                      /root/.ccache/ccache.conf
            secondary config      (readonly)    /etc/ccache.conf
            stats zero time                     Tue Jun  4 16:20:28 2019
            cache hit (direct)                     0
            cache hit (preprocessed)               0
            cache miss                          4531
            cache hit rate                      0.00 %
            called for link                       27
            called for preprocessing             353
            unsupported code directive             4
            no input file                       6050
            cleanups performed                     0
            files in cache                     13585
            cache size                           1.6 GB
            max cache size                      15.0 GB


Then:
=======

1. Download Kernel
download-kernel.sh [longterm|longterm2]

2. CD to kerneldir

3. Make Config
make-config.sh <DEVICETARGET>

4. Compile
build-kernel.sh <DEVICETARGET>

5. Install Kernel
install-kernels.sh <DEVICETARGET>

Possible <DEVICETARGET>'s are:
	- aw17r4	(Dell Alienware 17 R4)
	- eeepc		(Asus EEEPC)
	- winpad12	(Odys Winpad 12")
	- probook650g3	(HP Probook 650 G3)

About

custom build scripts und configs for linux kernel builds

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages