diff options
author | Alistair Strachan | 2018-10-25 13:11:35 -0500 |
---|---|---|
committer | android-build-merger | 2018-10-25 13:11:35 -0500 |
commit | a34b4b1370cb68e884ef788fad4caa503e41b9f7 (patch) | |
tree | 1cbf7c027d75626768954d55f8079ab41d2697d0 | |
parent | 3b80ba622ad2d2130b74fd73b2dad38e6c96996a (diff) | |
parent | 21a7f6129569d77cf703e9cf0d3214839205ad34 (diff) | |
download | device-ti-beagle-x15-a34b4b1370cb68e884ef788fad4caa503e41b9f7.tar.gz device-ti-beagle-x15-a34b4b1370cb68e884ef788fad4caa503e41b9f7.tar.xz device-ti-beagle-x15-a34b4b1370cb68e884ef788fad4caa503e41b9f7.zip |
Build the x15 U-Boot binaries from source. am: 848da4f131 am: 1adf4ca181
am: 21a7f61295
Change-Id: Ie65c21f66a78a412f4d1495f3dc3f753039a7e2d
-rw-r--r-- | AndroidBoard.mk | 17 | ||||
-rw-r--r-- | BoardConfig.mk | 8 | ||||
-rw-r--r-- | beagle_x15_uboot.conf | 21 | ||||
l--------- | hostcc/ar | 1 | ||||
l--------- | hostcc/bison | 1 | ||||
l--------- | hostcc/cc | 1 | ||||
l--------- | hostcc/flex | 1 | ||||
l--------- | hostcc/g++ | 1 | ||||
l--------- | hostcc/gcc | 1 | ||||
l--------- | hostcc/ld | 1 | ||||
l--------- | hostcc/ld.bfd | 1 | ||||
l--------- | hostcc/strings | 1 | ||||
-rwxr-xr-x | mergeconfig.sh | 47 | ||||
-rw-r--r-- | uboot.mk | 176 | ||||
-rw-r--r-- | uboot_config/common.config | 38 | ||||
-rw-r--r-- | uboot_config/recommended.config | 24 |
16 files changed, 340 insertions, 0 deletions
diff --git a/AndroidBoard.mk b/AndroidBoard.mk new file mode 100644 index 0000000..03d3c7a --- /dev/null +++ b/AndroidBoard.mk | |||
@@ -0,0 +1,17 @@ | |||
1 | # | ||
2 | # Copyright 2018 The Android Open Source Project | ||
3 | # | ||
4 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | # you may not use this file except in compliance with the License. | ||
6 | # You may obtain a copy of the License at | ||
7 | # | ||
8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | # | ||
10 | # Unless required by applicable law or agreed to in writing, software | ||
11 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | # See the License for the specific language governing permissions and | ||
14 | # limitations under the License. | ||
15 | # | ||
16 | |||
17 | include device/ti/beagle_x15/uboot.mk | ||
diff --git a/BoardConfig.mk b/BoardConfig.mk index 3b78403..d07a534 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk | |||
@@ -59,3 +59,11 @@ BOARD_SEPOLICY_DIRS += \ | |||
59 | device/ti/beagle_x15/sepolicy | 59 | device/ti/beagle_x15/sepolicy |
60 | 60 | ||
61 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true | 61 | BOARD_PROPERTY_OVERRIDES_SPLIT_ENABLED := true |
62 | |||
63 | # U-Boot configuration. | ||
64 | TARGET_UBOOT_ARCH := $(TARGET_ARCH) | ||
65 | TARGET_UBOOT_SRC := external/u-boot | ||
66 | TARGET_UBOOT_DEFCONFIG := am57xx_evm_defconfig | ||
67 | TARGET_UBOOT_CONFIGS += device/ti/beagle_x15/beagle_x15_uboot.conf | ||
68 | TARGET_UBOOT_MAKE_TARGET := u-boot-img.bin | ||
69 | TARGET_UBOOT_COPY_TARGETS := u-boot.img MLO | ||
diff --git a/beagle_x15_uboot.conf b/beagle_x15_uboot.conf new file mode 100644 index 0000000..29138b1 --- /dev/null +++ b/beagle_x15_uboot.conf | |||
@@ -0,0 +1,21 @@ | |||
1 | # | ||
2 | # Copyright (C) 2016 The Android Open-Source Project | ||
3 | # | ||
4 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | # you may not use this file except in compliance with the License. | ||
6 | # You may obtain a copy of the License at | ||
7 | # | ||
8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | # | ||
10 | # Unless required by applicable law or agreed to in writing, software | ||
11 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | # See the License for the specific language governing permissions and | ||
14 | # limitations under the License. | ||
15 | # | ||
16 | |||
17 | # Put options here which are needed for a particular configuration of | ||
18 | # Android but which might not be suitable to upstream | ||
19 | |||
20 | # Override the 'recommended.config' back, otherwise U-Boot fails to link | ||
21 | CONFIG_NET=y | ||
diff --git a/hostcc/ar b/hostcc/ar new file mode 120000 index 0000000..9ba504b --- /dev/null +++ b/hostcc/ar | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-ar \ No newline at end of file | |||
diff --git a/hostcc/bison b/hostcc/bison new file mode 120000 index 0000000..08c2205 --- /dev/null +++ b/hostcc/bison | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/build-tools/linux-x86/bin/bison \ No newline at end of file | |||
diff --git a/hostcc/cc b/hostcc/cc new file mode 120000 index 0000000..f026ff7 --- /dev/null +++ b/hostcc/cc | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-gcc \ No newline at end of file | |||
diff --git a/hostcc/flex b/hostcc/flex new file mode 120000 index 0000000..7c4992c --- /dev/null +++ b/hostcc/flex | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/build-tools/linux-x86/bin/flex \ No newline at end of file | |||
diff --git a/hostcc/g++ b/hostcc/g++ new file mode 120000 index 0000000..c9f9c01 --- /dev/null +++ b/hostcc/g++ | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-g++ \ No newline at end of file | |||
diff --git a/hostcc/gcc b/hostcc/gcc new file mode 120000 index 0000000..f026ff7 --- /dev/null +++ b/hostcc/gcc | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-gcc \ No newline at end of file | |||
diff --git a/hostcc/ld b/hostcc/ld new file mode 120000 index 0000000..c3ae707 --- /dev/null +++ b/hostcc/ld | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-ld \ No newline at end of file | |||
diff --git a/hostcc/ld.bfd b/hostcc/ld.bfd new file mode 120000 index 0000000..c90dfd6 --- /dev/null +++ b/hostcc/ld.bfd | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-ld.bfd \ No newline at end of file | |||
diff --git a/hostcc/strings b/hostcc/strings new file mode 120000 index 0000000..1e62227 --- /dev/null +++ b/hostcc/strings | |||
@@ -0,0 +1 @@ | |||
../../../../prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/bin/x86_64-linux-strings \ No newline at end of file | |||
diff --git a/mergeconfig.sh b/mergeconfig.sh new file mode 100755 index 0000000..70f0d1f --- /dev/null +++ b/mergeconfig.sh | |||
@@ -0,0 +1,47 @@ | |||
1 | #!/bin/bash | ||
2 | |||
3 | # | ||
4 | # Copyright 2015 The Android Open Source Project | ||
5 | # | ||
6 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
7 | # you may not use this file except in compliance with the License. | ||
8 | # You may obtain a copy of the License at | ||
9 | # | ||
10 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
11 | # | ||
12 | # Unless required by applicable law or agreed to in writing, software | ||
13 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
14 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
15 | # See the License for the specific language governing permissions and | ||
16 | # limitations under the License. | ||
17 | |||
18 | args=( "$@" ) | ||
19 | confs=( ) | ||
20 | |||
21 | KERNEL_PATH=${args[0]} | ||
22 | OUTPUT=${args[1]} | ||
23 | TARGET_ARCH=${args[2]} | ||
24 | TARGET_CROSS_COMPILE=${args[3]} | ||
25 | |||
26 | unset "args[0]" | ||
27 | unset "args[1]" | ||
28 | unset "args[2]" | ||
29 | unset "args[3]" | ||
30 | |||
31 | curdir=$(pwd) | ||
32 | |||
33 | # Explicitly record the list of config files used to build .config, and | ||
34 | # canonicalize the path since we have to have our current directory in | ||
35 | # the kernel source tree. | ||
36 | for conf in ${args[*]} ; do | ||
37 | fullpath=$conf | ||
38 | if [ ${fullpath:0:1} != "/" ] ; then | ||
39 | fullpath=$curdir/$fullpath | ||
40 | fi | ||
41 | confs+=($fullpath) | ||
42 | echo $conf | ||
43 | done > $OUTPUT/config.list | ||
44 | |||
45 | cd $KERNEL_PATH | ||
46 | |||
47 | ARCH=$TARGET_ARCH CROSS_COMPILE=$TARGET_CROSS_COMPILE ./scripts/kconfig/merge_config.sh -O $OUTPUT ${confs[*]} > $OUTPUT/merge_config.log | ||
diff --git a/uboot.mk b/uboot.mk new file mode 100644 index 0000000..d43cc60 --- /dev/null +++ b/uboot.mk | |||
@@ -0,0 +1,176 @@ | |||
1 | # | ||
2 | # Copyright 2015 The Android Open Source Project | ||
3 | # | ||
4 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | # you may not use this file except in compliance with the License. | ||
6 | # You may obtain a copy of the License at | ||
7 | # | ||
8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | # | ||
10 | # Unless required by applicable law or agreed to in writing, software | ||
11 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | # See the License for the specific language governing permissions and | ||
14 | # limitations under the License. | ||
15 | # | ||
16 | |||
17 | # Targets for building U-Boot | ||
18 | # | ||
19 | # The following must be set before including this file: | ||
20 | # TARGET_UBOOT_SRC must be set the base of a U-Boot tree. | ||
21 | # TARGET_UBOOT_DEFCONFIG must name a base U-Boot config. | ||
22 | # TARGET_UBOOT_ARCH must be set to match U-Boot arch. | ||
23 | # | ||
24 | # The following may be set: | ||
25 | # TARGET_UBOOT_CROSS_COMPILE_PREFIX to override toolchain. | ||
26 | # TARGET_UBOOT_CONFIGS to specify a set of additional U-Boot config files. | ||
27 | # TARGET_UBOOT_ENV to specify an environment to be compiled into uboot.env. | ||
28 | # TARGET_UBOOT_ENV_SIZE to specify the size reserved in U-Boot for the env. | ||
29 | |||
30 | ifeq ($(TARGET_UBOOT_SRC),) | ||
31 | $(error TARGET_UBOOT_SRC not defined but uboot.mk included) | ||
32 | endif | ||
33 | |||
34 | ifeq ($(TARGET_UBOOT_DEFCONFIG),) | ||
35 | $(error TARGET_UBOOT_DEFCONFIG not defined) | ||
36 | endif | ||
37 | |||
38 | ifeq ($(TARGET_UBOOT_ARCH),) | ||
39 | $(error TARGET_UBOOT_ARCH not defined) | ||
40 | endif | ||
41 | |||
42 | ifeq ($(TARGET_UBOOT_ENV_SIZE),) | ||
43 | ifneq ($(TARGET_UBOOT_ENV),) | ||
44 | $(error If TARGET_UBOOT_ENV is set TARGET_UBOOT_ENV_SIZE must also be set. See\ | ||
45 | CONFIG_ENV_SIZE in the selected U-Boot board config file.) | ||
46 | endif | ||
47 | endif | ||
48 | |||
49 | # These may be assigned in target BoardConfig.mk. | ||
50 | TARGET_UBOOT_MAKE_TARGET ?= u-boot.bin | ||
51 | TARGET_UBOOT_COPY_TARGETS ?= $(TARGET_UBOOT_MAKE_TARGET) | ||
52 | |||
53 | # Check target arch. | ||
54 | TARGET_UBOOT_ARCH := $(strip $(TARGET_UBOOT_ARCH)) | ||
55 | UBOOT_ARCH := $(TARGET_UBOOT_ARCH) | ||
56 | UBOOT_CC_WRAPPER := $(CC_WRAPPER) | ||
57 | UBOOT_AFLAGS := | ||
58 | UBOOT_DTC := $(HOST_OUT_EXECUTABLES)/dtc | ||
59 | UBOOT_DTC_ABS := $(abspath $(UBOOT_DTC)) | ||
60 | |||
61 | ifeq ($(TARGET_UBOOT_ARCH), arm) | ||
62 | UBOOT_TOOLCHAIN_ABS := $(realpath prebuilts/gcc/$(HOST_PREBUILT_TAG)/arm/arm-linux-androideabi-4.9/bin) | ||
63 | UBOOT_CROSS_COMPILE := $(UBOOT_TOOLCHAIN_ABS)/arm-linux-androidkernel- | ||
64 | UBOOT_SRC_ARCH := arm | ||
65 | UBOOT_CFLAGS := | ||
66 | else ifeq ($(TARGET_UBOOT_ARCH), arm64) | ||
67 | UBOOT_TOOLCHAIN_ABS := $(realpath prebuilts/gcc/$(HOST_PREBUILT_TAG)/aarch64/aarch64-linux-android-4.9/bin) | ||
68 | UBOOT_CROSS_COMPILE := $(UBOOT_TOOLCHAIN_ABS)/aarch64-linux-androidkernel- | ||
69 | UBOOT_SRC_ARCH := arm64 | ||
70 | UBOOT_CFLAGS := | ||
71 | else ifeq ($(TARGET_UBOOT_ARCH), i386) | ||
72 | UBOOT_TOOLCHAIN_ABS := $(realpath prebuilts/gcc/$(HOST_PREBUILT_TAG)/x86/x86_64-linux-android-4.9/bin) | ||
73 | UBOOT_CROSS_COMPILE := $(UBOOT_TOOLCHAIN_ABS)/x86_64-linux-androidkernel- | ||
74 | UBOOT_SRC_ARCH := x86 | ||
75 | UBOOT_CFLAGS := -mstack-protector-guard=tls | ||
76 | else ifeq ($(TARGET_UBOOT_ARCH), x86_64) | ||
77 | UBOOT_TOOLCHAIN_ABS := $(realpath prebuilts/gcc/$(HOST_PREBUILT_TAG)/x86/x86_64-linux-android-4.9/bin) | ||
78 | UBOOT_CROSS_COMPILE := $(UBOOT_TOOLCHAIN_ABS)/x86_64-linux-androidkernel- | ||
79 | UBOOT_SRC_ARCH := x86 | ||
80 | UBOOT_CFLAGS := -mstack-protector-guard=tls | ||
81 | else ifeq ($(TARGET_UBOOT_ARCH), mips) | ||
82 | UBOOT_TOOLCHAIN_ABS := $(realpath prebuilts/gcc/$(HOST_PREBUILT_TAG)/mips/mips64el-linux-android-4.9/bin) | ||
83 | UBOOT_CROSS_COMPILE := $(UBOOT_TOOLCHAIN_ABS)/mips64el-linux-androidkernel- | ||
84 | UBOOT_SRC_ARCH := mips | ||
85 | UBOOT_CFLAGS := | ||
86 | else | ||
87 | $(error U-Boot arch not supported at present) | ||
88 | endif | ||
89 | |||
90 | # Allow caller to override toolchain. | ||
91 | TARGET_UBOOT_CROSS_COMPILE_PREFIX := $(strip $(TARGET_UBOOT_CROSS_COMPILE_PREFIX)) | ||
92 | ifneq ($(TARGET_UBOOT_CROSS_COMPILE_PREFIX),) | ||
93 | UBOOT_CROSS_COMPILE := $(TARGET_UBOOT_CROSS_COMPILE_PREFIX) | ||
94 | endif | ||
95 | |||
96 | # Use ccache if requested by USE_CCACHE variable | ||
97 | UBOOT_CROSS_COMPILE_WRAPPER := $(realpath $(UBOOT_CC_WRAPPER)) $(UBOOT_CROSS_COMPILE) | ||
98 | |||
99 | UBOOT_GCC_NOANDROID_CHK := $(shell (echo "int main() {return 0;}" | $(UBOOT_CROSS_COMPILE)gcc -E -mno-android - > /dev/null 2>&1 ; echo $$?)) | ||
100 | ifeq ($(strip $(UBOOT_GCC_NOANDROID_CHK)),0) | ||
101 | UBOOT_CFLAGS += -mno-android | ||
102 | UBOOT_AFLAGS += -mno-android | ||
103 | endif | ||
104 | |||
105 | # Set the output for the U-Boot build products. | ||
106 | UBOOT_OUT := $(TARGET_OUT_INTERMEDIATES)/UBOOT_OBJ | ||
107 | UBOOT_ENV_OUT := $(PRODUCT_OUT)/uboot.env | ||
108 | |||
109 | # Merge all U-Boot config file sources. | ||
110 | UBOOT_CONFIG_DIR := device/ti/beagle_x15/uboot_config | ||
111 | UBOOT_CONFIG_DEFAULT := $(TARGET_UBOOT_SRC)/configs/$(TARGET_UBOOT_DEFCONFIG) | ||
112 | UBOOT_CONFIG_RECOMMENDED := $(UBOOT_CONFIG_DIR)/recommended.config | ||
113 | UBOOT_CONFIG_REQUIRED_SRC := $(UBOOT_CONFIG_DIR)/common.config | ||
114 | UBOOT_CONFIG_REQUIRED := $(UBOOT_OUT)/.config.required | ||
115 | UBOOT_CONFIG_SRC := $(UBOOT_CONFIG_DEFAULT) \ | ||
116 | $(UBOOT_CONFIG_RECOMMENDED) \ | ||
117 | $(TARGET_UBOOT_CONFIGS) \ | ||
118 | $(UBOOT_CONFIG_REQUIRED) | ||
119 | UBOOT_CONFIG := $(UBOOT_OUT)/.config | ||
120 | UBOOT_MERGE_CONFIG := device/ti/beagle_x15/mergeconfig.sh | ||
121 | # List of all the Kconfig files from the source code. Changing the Kconfig files | ||
122 | # requires to reassemble the .config, so we add them as dependencies. | ||
123 | UBOOT_SRC_KCONFIGS := \ | ||
124 | $(call find-files-in-subdirs,.,Kconfig,$(TARGET_UBOOT_SRC)) | ||
125 | |||
126 | $(UBOOT_OUT): | ||
127 | mkdir -p $@ | ||
128 | |||
129 | define build_uboot | ||
130 | # We don't support bundling a device tree with U-Boot yet. | ||
131 | CCACHE_NODIRECT="true" PATH=$$(cd device/ti/beagle_x15/hostcc; pwd):$$PATH \ | ||
132 | BISON_PKGDATADIR=$$(cd prebuilts/build-tools/common/bison; pwd) \ | ||
133 | $(MAKE) -C $(TARGET_UBOOT_SRC) \ | ||
134 | O=$(realpath $(UBOOT_OUT)) \ | ||
135 | CROSS_COMPILE="$(UBOOT_CROSS_COMPILE_WRAPPER)" \ | ||
136 | DTC="$(UBOOT_DTC_ABS)" \ | ||
137 | KCFLAGS="$(UBOOT_CFLAGS)" \ | ||
138 | KAFLAGS="$(UBOOT_AFLAGS)" \ | ||
139 | SOURCE_DATE_EPOCH="$(BUILD_DATETIME_FROM_FILE)" \ | ||
140 | $(1) | ||
141 | endef | ||
142 | |||
143 | # Merge the required U-Boot config elements into a single file. | ||
144 | $(UBOOT_CONFIG_REQUIRED): $(UBOOT_CONFIG_REQUIRED_SRC) | $(UBOOT_OUT) | ||
145 | $(hide) cat $^ > $@ | ||
146 | |||
147 | # Merge the final target U-Boot config. | ||
148 | $(UBOOT_CONFIG): $(UBOOT_CONFIG_SRC) $(UBOOT_SRC_KCONFIGS) | $(UBOOT_OUT) | ||
149 | $(hide) echo Merging U-Boot config | ||
150 | $(call build_uboot,mrproper) | ||
151 | PATH=$$(cd device/ti/beagle_x15/hostcc; pwd):$$PATH \ | ||
152 | BISON_PKGDATADIR=$$(cd prebuilts/build-tools/common/bison; pwd) \ | ||
153 | $(UBOOT_MERGE_CONFIG) \ | ||
154 | $(TARGET_UBOOT_SRC) $(realpath $(UBOOT_OUT)) \ | ||
155 | $(UBOOT_ARCH) $(UBOOT_CROSS_COMPILE) \ | ||
156 | $(UBOOT_CONFIG_SRC) | ||
157 | |||
158 | $(UBOOT_OUT)/$(TARGET_UBOOT_MAKE_TARGET): $(UBOOT_CONFIG) | $(UBOOT_OUT) $(UBOOT_DTC) | ||
159 | $(hide) echo "Building $(UBOOT_ARCH) U-Boot ..." | ||
160 | $(call build_uboot,$(TARGET_UBOOT_MAKE_TARGET)) | ||
161 | |||
162 | $(addprefix $(UBOOT_OUT)/,$(TARGET_UBOOT_COPY_TARGETS)): $(UBOOT_OUT)/$(TARGET_UBOOT_MAKE_TARGET) | ||
163 | |||
164 | ifneq ($(TARGET_UBOOT_ENV),) | ||
165 | $(UBOOT_ENV_OUT): $(TARGET_UBOOT_ENV) | $(addprefix $(UBOOT_OUT)/,$(TARGET_UBOOT_COPY_TARGETS)) | ||
166 | $(UBOOT_OUT)/tools/mkenvimage -s $(TARGET_UBOOT_ENV_SIZE) -o $@ $< | ||
167 | endif | ||
168 | |||
169 | ALL_DEFAULT_INSTALLED_MODULES += $(addprefix $(PRODUCT_OUT)/,$(TARGET_UBOOT_COPY_TARGETS)) | ||
170 | |||
171 | # Produces the actual U-Boot image! | ||
172 | define copy_uboot | ||
173 | $$(PRODUCT_OUT)/$(1): $$(UBOOT_OUT)/$(1) | $$(ACP) | ||
174 | $$(ACP) -fp $$< $$@ | ||
175 | endef | ||
176 | $(foreach _t,$(TARGET_UBOOT_COPY_TARGETS),$(eval $(call copy_uboot,$(_t)))) | ||
diff --git a/uboot_config/common.config b/uboot_config/common.config new file mode 100644 index 0000000..60a2626 --- /dev/null +++ b/uboot_config/common.config | |||
@@ -0,0 +1,38 @@ | |||
1 | # | ||
2 | # Copyright (C) 2016 The Android Open-Source Project | ||
3 | # | ||
4 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | # you may not use this file except in compliance with the License. | ||
6 | # You may obtain a copy of the License at | ||
7 | # | ||
8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | # | ||
10 | # Unless required by applicable law or agreed to in writing, software | ||
11 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | # See the License for the specific language governing permissions and | ||
14 | # limitations under the License. | ||
15 | # | ||
16 | |||
17 | # | ||
18 | # The following are the U-Boot configurations that are required for all builds. | ||
19 | # These cannot be overridden in the board. | ||
20 | # | ||
21 | |||
22 | CONFIG_AUTOBOOT=y | ||
23 | |||
24 | # Add support for Android Images. | ||
25 | CONFIG_ANDROID_BOOT_IMAGE=y | ||
26 | CONFIG_CMD_LOAD_ANDROID=y | ||
27 | |||
28 | # Support for Android Bootloader is required. | ||
29 | CONFIG_ANDROID_BOOTLOADER=y | ||
30 | CONFIG_CMD_BOOT_ANDROID=y | ||
31 | |||
32 | # Support for selecting the A/B slot. | ||
33 | CONFIG_ANDROID_AB=y | ||
34 | CONFIG_CMD_ANDROID_AB_SELECT=y | ||
35 | |||
36 | # Fastboot and Android image support should be enabled. | ||
37 | CONFIG_FASTBOOT=y | ||
38 | CONFIG_CMD_FASTBOOT=y | ||
diff --git a/uboot_config/recommended.config b/uboot_config/recommended.config new file mode 100644 index 0000000..e5626bc --- /dev/null +++ b/uboot_config/recommended.config | |||
@@ -0,0 +1,24 @@ | |||
1 | # | ||
2 | # Copyright (C) 2016 The Android Open-Source Project | ||
3 | # | ||
4 | # Licensed under the Apache License, Version 2.0 (the "License"); | ||
5 | # you may not use this file except in compliance with the License. | ||
6 | # You may obtain a copy of the License at | ||
7 | # | ||
8 | # http://www.apache.org/licenses/LICENSE-2.0 | ||
9 | # | ||
10 | # Unless required by applicable law or agreed to in writing, software | ||
11 | # distributed under the License is distributed on an "AS IS" BASIS, | ||
12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
13 | # See the License for the specific language governing permissions and | ||
14 | # limitations under the License. | ||
15 | # | ||
16 | |||
17 | # | ||
18 | # The following are the U-Boot configurations that are recommended (though not | ||
19 | # strictly required) for all builds. These can be overridden by setting | ||
20 | # TARGET_UBOOT_CONFIGS. | ||
21 | # | ||
22 | |||
23 | # Disable most other ways of booting by default. | ||
24 | # CONFIG_NET is not set | ||