diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-03-11 08:39:11 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2018-03-29 20:40:13 +0100 |
commit | cecc2b2e510d6777cf1c0016937eb4968829ab9a (patch) | |
tree | 1547aabcf6260bf7c0c9c7b4850fc2ae44bbfb6d /target | |
parent | 1faff13ffcefd6b91014611caa974939251c4617 (diff) |
tile: add uclibc-ng support
Diffstat (limited to 'target')
-rw-r--r-- | target/config/Config.in.libc | 1 | ||||
-rw-r--r-- | target/tile/Makefile | 36 |
2 files changed, 37 insertions, 0 deletions
diff --git a/target/config/Config.in.libc b/target/config/Config.in.libc index 95872f930..4e128f5b9 100644 --- a/target/config/Config.in.libc +++ b/target/config/Config.in.libc @@ -35,6 +35,7 @@ config ADK_TARGET_LIB_UCLIBC_NG ADK_TARGET_ARCH_SH || \ ADK_TARGET_ARCH_SPARC || \ ADK_TARGET_ARCH_SPARC64 || \ + ADK_TARGET_ARCH_TILE || \ ADK_TARGET_ARCH_X86 || \ ADK_TARGET_ARCH_X86_64 || \ ADK_TARGET_ARCH_XTENSA) && ADK_TARGET_OS_LINUX || ADK_TARGET_OS_WALDUX diff --git a/target/tile/Makefile b/target/tile/Makefile index 03afae8f0..0589cec43 100644 --- a/target/tile/Makefile +++ b/target/tile/Makefile @@ -5,3 +5,39 @@ include $(ADK_TOPDIR)/rules.mk include $(ADK_TOPDIR)/mk/kernel-build.mk include $(ADK_TOPDIR)/mk/image.mk +KERNEL:=$(LINUX_DIR)/vmlinux +OSTRIP:=-R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id + +# target helper text +ifeq ($(ADK_TARGET_FS),initramfs) +targethelp: + @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' + @echo 'The initramfs image is: ${FW_DIR}/${INITRAMFS}' +endif +ifeq ($(ADK_TARGET_FS),initramfsarchive) +targethelp: + @echo 'The kernel file is: $(FW_DIR)/${TARGET_KERNEL}' + @echo "The RootFS tarball is: $(FW_DIR)/$(ROOTFSUSERTARBALL)" +endif +ifeq ($(ADK_TARGET_FS),initramfspiggyback) +targethelp: + @echo 'The kernel+initramfs file is: $(FW_DIR)/${TARGET_KERNEL}' +endif + +kernel-strip: + $(TARGET_CROSS)objcopy $(OSTRIP) -S $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) + +kernel-install: kernel-strip + @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) + +# filesystem specific targets +ifeq ($(ADK_TARGET_FS),initramfs) +imageinstall: kernel-install $(FW_DIR)/$(INITRAMFS) targethelp +endif +ifeq ($(ADK_TARGET_FS),initramfsarchive) +imageinstall: kernel-install $(FW_DIR)/$(ROOTFSUSERTARBALL) targethelp +endif +ifeq ($(ADK_TARGET_FS),initramfspiggyback) +imageinstall: createinitramfs targethelp +endif + |