Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 1 | #Android makefile to build kernel as a part of Android Build |
| 2 | PERL = perl |
| 3 | |
| 4 | KERNEL_TARGET := $(strip $(INSTALLED_KERNEL_TARGET)) |
| 5 | ifeq ($(KERNEL_TARGET),) |
| 6 | INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel |
| 7 | endif |
| 8 | |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 9 | INSTALLED_KERNEL_VM_TARGET := $(PRODUCT_OUT)/kernel_vm |
| 10 | |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 11 | TARGET_KERNEL_MAKE_ENV := $(strip $(TARGET_KERNEL_MAKE_ENV)) |
| 12 | ifeq ($(TARGET_KERNEL_MAKE_ENV),) |
| 13 | KERNEL_MAKE_ENV := |
| 14 | else |
| 15 | KERNEL_MAKE_ENV := $(TARGET_KERNEL_MAKE_ENV) |
| 16 | endif |
| 17 | |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 18 | TARGET_KERNEL_ARCH := $(strip $(TARGET_KERNEL_ARCH)) |
| 19 | ifeq ($(TARGET_KERNEL_ARCH),) |
| 20 | KERNEL_ARCH := arm |
| 21 | else |
| 22 | KERNEL_ARCH := $(TARGET_KERNEL_ARCH) |
| 23 | endif |
| 24 | |
| 25 | TARGET_KERNEL_HEADER_ARCH := $(strip $(TARGET_KERNEL_HEADER_ARCH)) |
| 26 | ifeq ($(TARGET_KERNEL_HEADER_ARCH),) |
| 27 | KERNEL_HEADER_ARCH := $(KERNEL_ARCH) |
| 28 | else |
| 29 | $(warning Forcing kernel header generation only for '$(TARGET_KERNEL_HEADER_ARCH)') |
| 30 | KERNEL_HEADER_ARCH := $(TARGET_KERNEL_HEADER_ARCH) |
| 31 | endif |
| 32 | |
| 33 | KERNEL_HEADER_DEFCONFIG := $(strip $(KERNEL_HEADER_DEFCONFIG)) |
| 34 | ifeq ($(KERNEL_HEADER_DEFCONFIG),) |
| 35 | KERNEL_HEADER_DEFCONFIG := $(KERNEL_DEFCONFIG) |
| 36 | endif |
| 37 | |
| 38 | # Force 32-bit binder IPC for 64bit kernel with 32bit userspace |
| 39 | ifeq ($(KERNEL_ARCH),arm64) |
| 40 | ifeq ($(TARGET_ARCH),arm) |
| 41 | KERNEL_CONFIG_OVERRIDE := CONFIG_ANDROID_BINDER_IPC_32BIT=y |
| 42 | endif |
| 43 | endif |
| 44 | |
| 45 | TARGET_KERNEL_CROSS_COMPILE_PREFIX := $(strip $(TARGET_KERNEL_CROSS_COMPILE_PREFIX)) |
| 46 | ifeq ($(TARGET_KERNEL_CROSS_COMPILE_PREFIX),) |
| 47 | KERNEL_CROSS_COMPILE := arm-eabi- |
| 48 | else |
| 49 | KERNEL_CROSS_COMPILE := $(TARGET_KERNEL_CROSS_COMPILE_PREFIX) |
| 50 | endif |
| 51 | |
| 52 | ifeq ($(TARGET_PREBUILT_KERNEL),) |
| 53 | |
| 54 | KERNEL_GCC_NOANDROID_CHK := $(shell (echo "int main() {return 0;}" | $(KERNEL_CROSS_COMPILE)gcc -E -mno-android - > /dev/null 2>&1 ; echo $$?)) |
| 55 | ifeq ($(strip $(KERNEL_GCC_NOANDROID_CHK)),0) |
| 56 | KERNEL_CFLAGS := KCFLAGS=-mno-android |
| 57 | endif |
| 58 | |
| 59 | mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST))) |
| 60 | current_dir := $(notdir $(patsubst %/,%,$(dir $(mkfile_path)))) |
| 61 | TARGET_KERNEL := msm-$(TARGET_KERNEL_VERSION) |
| 62 | ifeq ($(TARGET_KERNEL),$(current_dir)) |
| 63 | # New style, kernel/msm-version |
| 64 | BUILD_ROOT_LOC := ../../ |
| 65 | TARGET_KERNEL_SOURCE := kernel/$(TARGET_KERNEL) |
| 66 | KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/kernel/$(TARGET_KERNEL) |
| 67 | KERNEL_SYMLINK := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ |
| 68 | KERNEL_USR := $(KERNEL_SYMLINK)/usr |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 69 | KERNEL_VM_OUT := $(TARGET_OUT_INTERMEDIATES)/kernel_vm/$(TARGET_KERNEL) |
| 70 | KERNEL_VM_SYMLINK := $(TARGET_OUT_INTERMEDIATES)/KERNEL_VM_OBJ |
| 71 | KERNEL_VM_USR := $(KERNEL_VM_SYMLINK)/usr |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 72 | else |
| 73 | # Legacy style, kernel source directly under kernel |
| 74 | KERNEL_LEGACY_DIR := true |
| 75 | BUILD_ROOT_LOC := ../ |
| 76 | TARGET_KERNEL_SOURCE := kernel |
| 77 | KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 78 | KERNEL_VM_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_VM_OBJ |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 79 | endif |
| 80 | |
| 81 | KERNEL_CONFIG := $(KERNEL_OUT)/.config |
| 82 | |
| 83 | ifeq ($(KERNEL_DEFCONFIG)$(wildcard $(KERNEL_CONFIG)),) |
| 84 | $(error Kernel configuration not defined, cannot build kernel) |
| 85 | else |
| 86 | |
| 87 | ifeq ($(TARGET_USES_UNCOMPRESSED_KERNEL),true) |
| 88 | $(info Using uncompressed kernel) |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 89 | TARGET_PREBUILT_INT_KERNEL_ := arch/$(KERNEL_ARCH)/boot/Image |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 90 | else |
| 91 | ifeq ($(KERNEL_ARCH),arm64) |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 92 | TARGET_PREBUILT_INT_KERNEL_ := arch/$(KERNEL_ARCH)/boot/Image.gz |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 93 | else |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 94 | TARGET_PREBUILT_INT_KERNEL_ := arch/$(KERNEL_ARCH)/boot/zImage |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 95 | endif |
| 96 | endif |
| 97 | |
| 98 | ifeq ($(TARGET_KERNEL_APPEND_DTB), true) |
| 99 | $(info Using appended DTB) |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 100 | TARGET_PREBUILT_INT_KERNEL_ := $(TARGET_PREBUILT_INT_KERNEL_)-dtb |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 101 | endif |
| 102 | |
| 103 | KERNEL_HEADERS_INSTALL := $(KERNEL_OUT)/usr |
Puja Gupta | 4544540 | 2017-03-24 12:56:52 -0700 | [diff] [blame] | 104 | KERNEL_MODULES_INSTALL ?= system |
| 105 | KERNEL_MODULES_OUT ?= $(PRODUCT_OUT)/$(KERNEL_MODULES_INSTALL)/lib/modules |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 106 | |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 107 | TARGET_PREBUILT_INT_KERNEL := $(KERNEL_OUT)/$(TARGET_PREBUILT_INT_KERNEL_) |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 108 | TARGET_PREBUILT_KERNEL := $(TARGET_PREBUILT_INT_KERNEL) |
| 109 | |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 110 | KERNEL_VM_CONFIG := $(KERNEL_VM_OUT)/.config |
| 111 | KERNEL_VM_HEADERS_INSTALL := $(KERNEL_VM_OUT)/usr |
| 112 | TARGET_PREBUILT_INT_KERNEL_VM := $(KERNEL_VM_OUT)/$(TARGET_PREBUILT_INT_KERNEL_) |
| 113 | TARGET_PREBUILT_KERNEL_VM := $(TARGET_PREBUILT_INT_KERNEL_VM) |
| 114 | |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 115 | define mv-modules |
| 116 | mdpath=`find $(KERNEL_MODULES_OUT) -type f -name modules.dep`;\ |
| 117 | if [ "$$mdpath" != "" ];then\ |
| 118 | mpath=`dirname $$mdpath`;\ |
| 119 | ko=`find $$mpath/kernel -type f -name *.ko`;\ |
| 120 | for i in $$ko; do mv $$i $(KERNEL_MODULES_OUT)/; done;\ |
| 121 | fi |
| 122 | endef |
| 123 | |
| 124 | define clean-module-folder |
| 125 | mdpath=`find $(KERNEL_MODULES_OUT) -type f -name modules.dep`;\ |
| 126 | if [ "$$mdpath" != "" ];then\ |
| 127 | mpath=`dirname $$mdpath`; rm -rf $$mpath;\ |
| 128 | fi |
| 129 | endef |
| 130 | |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 131 | $(TARGET_PREBUILT_INT_KERNEL_VM): ; |
| 132 | |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 133 | ifneq ($(KERNEL_LEGACY_DIR),true) |
| 134 | $(KERNEL_USR): $(KERNEL_HEADERS_INSTALL) |
| 135 | rm -rf $(KERNEL_SYMLINK) |
| 136 | ln -s kernel/$(TARGET_KERNEL) $(KERNEL_SYMLINK) |
| 137 | |
| 138 | $(TARGET_PREBUILT_INT_KERNEL): $(KERNEL_USR) |
Neeraj Upadhyay | 368def7 | 2018-06-04 13:56:28 +0530 | [diff] [blame] | 139 | |
| 140 | ifneq ($(KERNEL_VM_DEFCONFIG),) |
| 141 | $(KERNEL_VM_USR): $(KERNEL_VM_HEADERS_INSTALL) |
| 142 | rm -rf $(KERNEL_VM_SYMLINK); |
| 143 | ln -s kernel_vm/$(TARGET_KERNEL) $(KERNEL_VM_SYMLINK); |
| 144 | |
| 145 | $(TARGET_PREBUILT_INT_KERNEL_VM): $(KERNEL_VM_USR) |
| 146 | endif |
| 147 | endif |
| 148 | |
| 149 | ifneq ($(KERNEL_VM_DEFCONFIG),) |
| 150 | $(KERNEL_VM_OUT): |
| 151 | mkdir -p $(KERNEL_VM_OUT); |
| 152 | |
| 153 | $(KERNEL_VM_CONFIG): $(KERNEL_VM_OUT) |
| 154 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_VM_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_VM_DEFCONFIG); |
| 155 | if [ ! -z "$(KERNEL_CONFIG_OVERRIDE)" ]; then \ |
| 156 | echo "Overriding kernel config with '$(KERNEL_CONFIG_OVERRIDE)'"; \ |
| 157 | echo $(KERNEL_CONFIG_OVERRIDE) >> $(KERNEL_VM_OUT)/.config; \ |
| 158 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_VM_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) oldconfig; fi; |
| 159 | |
| 160 | $(TARGET_PREBUILT_INT_KERNEL_VM): $(KERNEL_VM_OUT) $(KERNEL_VM_HEADERS_INSTALL) |
| 161 | echo "Building vm kernel..."; |
| 162 | rm -rf $(KERNEL_VM_OUT)/arch/$(KERNEL_ARCH)/boot/dts; |
| 163 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_VM_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_CFLAGS); |
| 164 | |
| 165 | $(KERNEL_VM_HEADERS_INSTALL): $(KERNEL_VM_OUT) |
| 166 | rm -f $(BUILD_ROOT_LOC)$(KERNEL_VM_CONFIG); |
| 167 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_VM_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_HEADER_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_VM_DEFCONFIG); |
| 168 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_VM_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_HEADER_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) headers_install; |
| 169 | if [ -d "$(KERNEL_VM_HEADERS_INSTALL)/include/bringup_headers" ]; then \ |
| 170 | cp -Rf $(KERNEL_VM_HEADERS_INSTALL)/include/bringup_headers/* $(KERNEL_VM_HEADERS_INSTALL)/include/ ; fi ; |
| 171 | if [ ! -z "$(KERNEL_CONFIG_OVERRIDE)" ]; then \ |
| 172 | echo $(KERNEL_CONFIG_OVERRIDE) >> $(KERNEL_VM_OUT)/.config; \ |
| 173 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_VM_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) oldconfig; fi; |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 174 | endif |
| 175 | |
| 176 | $(KERNEL_OUT): |
| 177 | mkdir -p $(KERNEL_OUT) |
| 178 | |
| 179 | $(KERNEL_CONFIG): $(KERNEL_OUT) |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 180 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_DEFCONFIG) |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 181 | $(hide) if [ ! -z "$(KERNEL_CONFIG_OVERRIDE)" ]; then \ |
| 182 | echo "Overriding kernel config with '$(KERNEL_CONFIG_OVERRIDE)'"; \ |
| 183 | echo $(KERNEL_CONFIG_OVERRIDE) >> $(KERNEL_OUT)/.config; \ |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 184 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) oldconfig; fi |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 185 | |
| 186 | $(TARGET_PREBUILT_INT_KERNEL): $(KERNEL_OUT) $(KERNEL_HEADERS_INSTALL) |
| 187 | $(hide) echo "Building kernel..." |
| 188 | $(hide) rm -rf $(KERNEL_OUT)/arch/$(KERNEL_ARCH)/boot/dts |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 189 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_CFLAGS) |
| 190 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_CFLAGS) modules |
| 191 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) INSTALL_MOD_PATH=$(BUILD_ROOT_LOC)../$(KERNEL_MODULES_INSTALL) INSTALL_MOD_STRIP=1 $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) modules_install |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 192 | $(mv-modules) |
| 193 | $(clean-module-folder) |
| 194 | |
| 195 | $(KERNEL_HEADERS_INSTALL): $(KERNEL_OUT) |
| 196 | $(hide) if [ ! -z "$(KERNEL_HEADER_DEFCONFIG)" ]; then \ |
| 197 | rm -f $(BUILD_ROOT_LOC)$(KERNEL_CONFIG); \ |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 198 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_HEADER_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_HEADER_DEFCONFIG); \ |
| 199 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_HEADER_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) headers_install;\ |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 200 | if [ -d "$(KERNEL_HEADERS_INSTALL)/include/bringup_headers" ]; then \ |
| 201 | cp -Rf $(KERNEL_HEADERS_INSTALL)/include/bringup_headers/* $(KERNEL_HEADERS_INSTALL)/include/ ;\ |
| 202 | fi ;\ |
| 203 | fi |
| 204 | $(hide) if [ "$(KERNEL_HEADER_DEFCONFIG)" != "$(KERNEL_DEFCONFIG)" ]; then \ |
| 205 | echo "Used a different defconfig for header generation"; \ |
| 206 | rm -f $(BUILD_ROOT_LOC)$(KERNEL_CONFIG); \ |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 207 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) $(KERNEL_DEFCONFIG); fi |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 208 | $(hide) if [ ! -z "$(KERNEL_CONFIG_OVERRIDE)" ]; then \ |
| 209 | echo "Overriding kernel config with '$(KERNEL_CONFIG_OVERRIDE)'"; \ |
| 210 | echo $(KERNEL_CONFIG_OVERRIDE) >> $(KERNEL_OUT)/.config; \ |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 211 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) oldconfig; fi |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 212 | |
| 213 | kerneltags: $(KERNEL_OUT) $(KERNEL_CONFIG) |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 214 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) tags |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 215 | |
| 216 | kernelconfig: $(KERNEL_OUT) $(KERNEL_CONFIG) |
| 217 | env KCONFIG_NOTIMESTAMP=true \ |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 218 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) menuconfig |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 219 | env KCONFIG_NOTIMESTAMP=true \ |
Puja Gupta | e5df4f3 | 2017-02-24 14:21:40 -0800 | [diff] [blame] | 220 | $(MAKE) -C $(TARGET_KERNEL_SOURCE) O=$(BUILD_ROOT_LOC)$(KERNEL_OUT) $(KERNEL_MAKE_ENV) ARCH=$(KERNEL_ARCH) CROSS_COMPILE=$(KERNEL_CROSS_COMPILE) savedefconfig |
Ameya Thakur | 300fae9 | 2016-08-10 11:33:55 -0700 | [diff] [blame] | 221 | cp $(KERNEL_OUT)/defconfig $(TARGET_KERNEL_SOURCE)/arch/$(KERNEL_ARCH)/configs/$(KERNEL_DEFCONFIG) |
| 222 | |
| 223 | endif |
| 224 | endif |