diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-09 20:43:08 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2009-09-09 20:43:08 +0200 |
commit | 27cfb0e6df5661d2744b67138af69da477ee6c5a (patch) | |
tree | 1a9b2e14da52adadb7f634ae7894a2b2848c44c0 /target/shuttle/Makefile | |
parent | e9b52dbc4bb9e531c15fa442121288de98c0904f (diff) |
add shuttle and tomtom device support
barely tested. TomTom support is for my tomtom rider 2
navigation system and is a new toolchain only target.
I will add some special applications later.
Shuttle is my ADK buildserver. At least I can boot via
PXE and create software raid devices. Still need to figure out
how to manage grub2 and how to integrate a disk installer or something
like that.
Diffstat (limited to 'target/shuttle/Makefile')
-rw-r--r-- | target/shuttle/Makefile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/shuttle/Makefile b/target/shuttle/Makefile new file mode 100644 index 000000000..7e4a1e567 --- /dev/null +++ b/target/shuttle/Makefile @@ -0,0 +1,35 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk +include $(TOPDIR)/mk/kernel.mk +include $(TOPDIR)/mk/modules.mk +include $(TOPDIR)/mk/kernel-build.mk +include $(TOPDIR)/mk/image.mk + +kernel-install: + +createinit: + @-rm $(LINUX_DIR)/usr/initramfs_data.cpio.lzma + $(SED) 's#^CONFIG_INITRAMFS_SOURCE.*#CONFIG_INITRAMFS_SOURCE="${BUILD_DIR}/${INITRAMFS_PIGGYBACK}"#' $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_ROOT_UID=0' >> $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_ROOT_GID=0' >> $(LINUX_DIR)/.config + echo 'CONFIG_INITRAMFS_COMPRESSION_LZMA=y' >> $(LINUX_DIR)/.config + echo N |$(MAKE) -C $(LINUX_DIR) V=0 CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(ARCH) \ + CC="$(TARGET_CC)" oldconfig $(MAKE_TRACE) + $(MAKE) -C $(LINUX_DIR) V=0 CROSS_COMPILE="$(KERNEL_CROSS)" ARCH=$(ARCH) \ + CC="$(TARGET_CC)" $(MAKE_TRACE) + $(CP) $(LINUX_DIR)/arch/x86/boot/bzImage \ + $(BIN_DIR)/${DEVICE}-${ARCH}-kernel + +ifeq ($(FS),archive) +imageinstall: $(BIN_DIR)/$(ROOTFSTARBALL) + cp $(LINUX_DIR)/arch/x86/boot/bzImage $(BIN_DIR)/${DEVICE}-${ARCH}-kernel + @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel' + @echo 'The initramfs image is: ${BIN_DIR}/${ROOTFSTARBALL}' +endif + +ifeq ($(FS),initramfs-piggyback) +imageinstall: ${BUILD_DIR}/${INITRAMFS_PIGGYBACK} createinit + @echo 'The kernel file is: ${BIN_DIR}/${DEVICE}-${ARCH}-kernel' +endif |