summaryrefslogtreecommitdiff
path: root/ANDROID_3.4.5/arch/microblaze/boot
diff options
context:
space:
mode:
authorKevin2014-11-15 09:58:27 +0800
committerKevin2014-11-15 09:58:27 +0800
commit392e8802486cb573b916e746010e141a75f507e6 (patch)
tree50029aca02c81f087b90336e670b44e510782330 /ANDROID_3.4.5/arch/microblaze/boot
downloadFOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.tar.gz
FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.tar.bz2
FOSSEE-netbook-kernel-source-392e8802486cb573b916e746010e141a75f507e6.zip
init android origin source code
Diffstat (limited to 'ANDROID_3.4.5/arch/microblaze/boot')
-rw-r--r--ANDROID_3.4.5/arch/microblaze/boot/Makefile54
l---------ANDROID_3.4.5/arch/microblaze/boot/dts/system.dts1
-rw-r--r--ANDROID_3.4.5/arch/microblaze/boot/linked_dtb.S3
3 files changed, 58 insertions, 0 deletions
diff --git a/ANDROID_3.4.5/arch/microblaze/boot/Makefile b/ANDROID_3.4.5/arch/microblaze/boot/Makefile
new file mode 100644
index 00000000..fa83ea49
--- /dev/null
+++ b/ANDROID_3.4.5/arch/microblaze/boot/Makefile
@@ -0,0 +1,54 @@
+#
+# arch/microblaze/boot/Makefile
+#
+
+obj-y += linked_dtb.o
+
+targets := linux.bin linux.bin.gz simpleImage.%
+
+OBJCOPYFLAGS := -R .note -R .comment -R .note.gnu.build-id -O binary
+
+# Ensure system.dtb exists
+$(obj)/linked_dtb.o: $(obj)/system.dtb
+
+# Generate system.dtb from $(DTB).dtb
+ifneq ($(DTB),system)
+$(obj)/system.dtb: $(obj)/$(DTB).dtb
+ $(call if_changed,cp)
+endif
+
+$(obj)/linux.bin: vmlinux FORCE
+ $(call if_changed,objcopy)
+ $(call if_changed,uimage)
+ @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
+
+$(obj)/linux.bin.gz: $(obj)/linux.bin FORCE
+ $(call if_changed,gzip)
+ @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
+
+quiet_cmd_cp = CP $< $@$2
+ cmd_cp = cat $< >$@$2 || (rm -f $@ && echo false)
+
+quiet_cmd_strip = STRIP $@
+ cmd_strip = $(STRIP) -K microblaze_start -K _end -K __log_buf \
+ -K _fdt_start vmlinux -o $@
+
+UIMAGE_IN = $@
+UIMAGE_OUT = $@.ub
+UIMAGE_LOADADDR = $(CONFIG_KERNEL_BASE_ADDR)
+
+$(obj)/simpleImage.%: vmlinux FORCE
+ $(call if_changed,cp,.unstrip)
+ $(call if_changed,objcopy)
+ $(call if_changed,uimage)
+ $(call if_changed,strip)
+ @echo 'Kernel: $@ is ready' ' (#'`cat .version`')'
+
+
+# Rule to build device tree blobs
+DTC_FLAGS := -p 1024
+
+$(obj)/%.dtb: $(src)/dts/%.dts FORCE
+ $(call if_changed_dep,dtc)
+
+clean-files += *.dtb simpleImage.*.unstrip linux.bin.ub
diff --git a/ANDROID_3.4.5/arch/microblaze/boot/dts/system.dts b/ANDROID_3.4.5/arch/microblaze/boot/dts/system.dts
new file mode 120000
index 00000000..7cb65789
--- /dev/null
+++ b/ANDROID_3.4.5/arch/microblaze/boot/dts/system.dts
@@ -0,0 +1 @@
+../../platform/generic/system.dts \ No newline at end of file
diff --git a/ANDROID_3.4.5/arch/microblaze/boot/linked_dtb.S b/ANDROID_3.4.5/arch/microblaze/boot/linked_dtb.S
new file mode 100644
index 00000000..cb2b537a
--- /dev/null
+++ b/ANDROID_3.4.5/arch/microblaze/boot/linked_dtb.S
@@ -0,0 +1,3 @@
+.section __fdt_blob,"a"
+.incbin "arch/microblaze/boot/system.dtb"
+