summaryrefslogtreecommitdiff
path: root/arm_u8500.mak
blob: ed73e0e8326707d6d1b671b28e3e21c384bf549e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
rootfs		:= $(HOME)/devel/images/initramfs-u8500.cpio
#board		:= ste-snowball
board		:= ste-hrefv60plus-tvk
defconfig	:= u8500
# For uImage
load_addr	:= 0x00008000
entry_add	:= 0x00008000

#For U8500 Android vendor tree build (needs also old gcc)
#defconfig	:= ux500_ux540

include $(HOME)/devel/src/linux-makefiles/common.mak

# For early printk
config-ux500-earlydebug: FORCE
	@echo "enable ux500 early debug"
	$(CURDIR)/scripts/config --file $(config_file) \
	--enable DEBUG_LL \
	--enable EARLY_PRINTK \
	--set-str CMDLINE "root=/dev/ram0 console=ttyAMA2,115200n8 earlyprintk" \
	--set-str UX500_DEBUG_UART 2

config-ux500-features: FORCE
	$(CURDIR)/scripts/config --file $(config_file) \
	--enable HSI \
	--enable HSI_CHAR

config-ux500: config-ux500-features config-ux500-earlydebug FORCE

config: config-common config-partition config-ux500 FORCE
	yes "" | make $(make_options) oldconfig

build: build-zimage-dt FORCE
	  @echo "complete."

modules: build-modules FORCE
	  @echo "complete."

build-test: build-uimage-dt FORCE
	  @echo "complete."

#For U8500 Android vendor tree builds
# export path for mkbootimg, probably need older version?
#export PATH := $(HOME)/devel/boards_src/410c/skales:$(PATH)
# We have a common rule "build-lk-image-dt"

build-vendor-lk-img: FORCE
	@echo "Copy zImage to $(output_dir)/zImage"
	@cp -f $(build_dir)/arch/$(arch)/boot/zImage $(output_dir)/zImage
	mkbootimg \
		--kernel $(output_dir)/zImage \
		--ramdisk $(rootfs) \
		--ramdisk_offset 0x02000000 \
		--output $(output_dir)/zImage.img \
		--base 0 ; \

build-vendor: have-mkbootimg build-zimage build-vendor-lk-img FORCE
	  @echo "complete."