Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- build/core/tasks/kernel.mk
- make mrproper
- export ARCH=arm
- export CROSS_COMPILE=~/Desktop/linaro/bin/arm-linux-gnueabihf-
- export CROSS_COMPILE=~/Desktop/gcc_kernel/bin/arm-linux-gnueabihf-
- export CROSS_COMPILE=~/Desktop/COMPILE_KERNEL/arm-eabi-4.7/bin/arm-eabi-
- export CROSS_COMPILE=~/Desktop/COMPILE_KERNEL/arm-eabi-4.7/bin/arm-eabi-
- make cyanogenmod_quincyatt_defconfig
- make cyanogenmod_skyrocket_defconfig
- make gimme_quincyatt_defconfig
- make uber_hercules_defconfig
- sh kernel.sh
- make menuconfig
- make -j8
- make clean
- arm-linux-androideabi-
- export CROSS_COMPILE=~/Desktop/COMPILE_KERNEL/gcc/linux-x86/arm/arm-linux-androideabi-4.9/bin/arm-linux-androideabi-
- prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-/bin/arm-linux-androideabi-
- make -C kernel/samsung/msm8660 O=/home/tony/SlimRoms/out/target/product/quincyatt/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE=" /home/tony/SlimRoms/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8/bin/arm-eabi-" zImage
- # disable aggressive loop optimizations in gcc 4.8
- KBUILD_CFLAGS += $(call cc-option, -fno-aggressive-loop-optimizations)
- vendor/slim/config/common.mk
- PRODUCT_PROPERTY_OVERRIDES += \
- ro.build.selinux=1 <--yes
- PRODUCT_PROPERTY_OVERRIDES += \
- ro.build.selinux=0
- dmesg | grep corrupt
- Build the kernel:
- =================
- set the following environment variables:
- make menuconfig
- make zImage
- export TOP= [where you installed the toolchain or top of android AOSP code base]
- export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin:$PATH (use corresponding arm-eabi bin path)
- export ARCH=arm
- export SUBARCH=arm
- export CROSS_COMPILE=arm-eabi-4.6
- make [the defconfig file for this device above]
- make clean (for subsequent builds)
- make cyanogenmod_quincyatt_defconfig
- Output Binary Files:
- ====================
- After the build process is finished, there should be a file named "zImage" found in arch/arm/boot/
- If you are building a rom with this kernel ZImage, copy it into your build's output folder and rename it to "kernel".
- You will also need the following kernel modules. These will eventually be installed into /system/lib/modules on the device.
- kernel modules:
- ./driver/*.ko
- If you have already built and installed a boot.img with root access you can also install the modules directly into the device using "adb remount" and "apb push [file] system/lib/modules/" for each file listed above. After installing files set permissions with "adb shell chmod 0644 system/lib/modules/*" and "adb reboot"
- For additional information:
- ===========================
- http://htcdev.com
- #Custom Toolchain
- TARGET_KERNEL_CUSTOM_TOOLCHAIN := arm-eabi-4.7
- #Prebuilt Kernel
- TARGET_PREBUILT_KERNEL := device/samsung/skyrocket/kernel
- TARGET_KERNEL_CUSTOM_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin
- KERNEL_TOOLCHAIN := $(ANDROID_BUILD_TOP)/prebuilts/gcc/linux-x86/arm/arm-eabi-4.7/bin
- KERNEL_TOOLCHAIN := arm-eabi-4.7 <this is in stock cm source>
- BoardConfig.mk<t6spr>
- # Kernel
- TARGET_PREBUILT_KERNEL := device/htc/t6spr/kernel
- TARGET_KERNEL_CONFIG := cyanogenmod_t6_defconfig
- TARGET_KERNEL_SOURCE := kernel/htc/msm8960
- #Prebuilt Recovery
- TARGET_PREBUILT_RECOVERY := device/htc/t6spr/recovery.img
- full_t6spr.mk
- LOCAL_PATH := device/htc/t6spr
- ifeq ($(TARGET_PREBUILT_KERNEL),)
- LOCAL_KERNEL := $(LOCAL_PATH)/kernel
- else
- LOCAL_KERNEL := $(TARGET_PREBUILT_KERNEL)
- endif
- PRODUCT_COPY_FILES += \
- $(LOCAL_KERNEL):kernel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement