summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mk/kernel-vars.mk2
-rw-r--r--package/libgcc/Makefile2
-rw-r--r--target/tools/uboot-mkimage/Makefile4
-rw-r--r--toolchain/binutils/Makefile2
-rw-r--r--toolchain/eglibc/Makefile1
-rw-r--r--tools/Makefile2
-rw-r--r--tools/mkimage/Makefile11
-rw-r--r--tools/mkimage/crc32.c (renamed from target/tools/uboot-mkimage/crc32.c)0
-rw-r--r--tools/mkimage/image.h (renamed from target/tools/uboot-mkimage/image.h)0
-rwxr-xr-xtools/mkimage/mkimage (renamed from target/tools/uboot-mkimage/mkimage)bin23424 -> 23424 bytes
-rw-r--r--tools/mkimage/mkimage.c (renamed from target/tools/uboot-mkimage/mkimage.c)0
11 files changed, 15 insertions, 9 deletions
diff --git a/mk/kernel-vars.mk b/mk/kernel-vars.mk
index e726b14da..4d302fc57 100644
--- a/mk/kernel-vars.mk
+++ b/mk/kernel-vars.mk
@@ -18,4 +18,4 @@ ADK_KCPPFLAGS+= -DBCM47XX_OVERRIDE_FLASHSIZE=0x800000 \
-DBCM47XX_OVERRIDE_CFESIZE=0x40000
endif
-KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}'
+KERNEL_MAKE_ENV+= KCPPFLAGS='${ADK_KCPPFLAGS}' PATH="$$PATH:${TOOLS_DIR}"
diff --git a/package/libgcc/Makefile b/package/libgcc/Makefile
index 353c5cc32..6f5208c9f 100644
--- a/package/libgcc/Makefile
+++ b/package/libgcc/Makefile
@@ -11,7 +11,7 @@ PKG_DFLT_LIBGCC:= y if !ADK_TOOLCHAIN_ONLY
NO_DISTFILES:= 1
-PKG_ARCH_DEPENDS:= !sh
+PKG_ARCH_DEPENDS:= !sh !avr32
include ${TOPDIR}/mk/package.mk
diff --git a/target/tools/uboot-mkimage/Makefile b/target/tools/uboot-mkimage/Makefile
deleted file mode 100644
index e93964ff2..000000000
--- a/target/tools/uboot-mkimage/Makefile
+++ /dev/null
@@ -1,4 +0,0 @@
-include $(TOPDIR)/rules.mk
-
-all: mkimage.c crc32.c
- $(CC_FOR_BUILD) ${FLAGS_FOR_BUILD} -o ${STAGING_HOST_DIR}/bin/mkimage mkimage.c crc32.c
diff --git a/toolchain/binutils/Makefile b/toolchain/binutils/Makefile
index cc8c1b26a..ba67263ef 100644
--- a/toolchain/binutils/Makefile
+++ b/toolchain/binutils/Makefile
@@ -25,8 +25,6 @@ $(WRKBUILD)/.configured:
(cd $(WRKBUILD); \
$(WRKBUILD)/configure \
--prefix=$(STAGING_HOST_DIR) \
- --build=$(GNU_HOST_NAME) \
- --host=$(GNU_HOST_NAME) \
--target=$(REAL_GNU_TARGET_NAME) \
--with-sysroot=$(STAGING_TARGET_DIR) \
--disable-multilib \
diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile
index fe6f40275..40563bcfb 100644
--- a/toolchain/eglibc/Makefile
+++ b/toolchain/eglibc/Makefile
@@ -64,6 +64,7 @@ $(WRKBUILD)/.headers: $(WRKBUILD)/.headers_configure
$(MAKE) install-headers install-bootstrap-headers=yes \
);
touch $(STAGING_TARGET_DIR)/usr/include/gnu/stubs.h
+ touch $(STAGING_TARGET_DIR)/usr/include/gnu/stubs-64.h
touch $@
ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
diff --git a/tools/Makefile b/tools/Makefile
index 8bf118641..e4e0b249b 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -3,7 +3,7 @@
include $(TOPDIR)/rules.mk
-TARGETS:=adk mkcrypt cpio
+TARGETS:=adk mkcrypt cpio mkimage
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
diff --git a/tools/mkimage/Makefile b/tools/mkimage/Makefile
new file mode 100644
index 000000000..426b18b88
--- /dev/null
+++ b/tools/mkimage/Makefile
@@ -0,0 +1,11 @@
+# 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
+
+install: ${TOOLS_DIR}/mkimage
+
+${TOOLS_DIR}/mkimage: mkimage.c crc32.c
+ $(CC_FOR_BUILD) ${FLAGS_FOR_BUILD} -o $@ mkimage.c crc32.c
+
+include $(TOPDIR)/mk/tools.mk
diff --git a/target/tools/uboot-mkimage/crc32.c b/tools/mkimage/crc32.c
index 067b3106c..067b3106c 100644
--- a/target/tools/uboot-mkimage/crc32.c
+++ b/tools/mkimage/crc32.c
diff --git a/target/tools/uboot-mkimage/image.h b/tools/mkimage/image.h
index cb62cde5b..cb62cde5b 100644
--- a/target/tools/uboot-mkimage/image.h
+++ b/tools/mkimage/image.h
diff --git a/target/tools/uboot-mkimage/mkimage b/tools/mkimage/mkimage
index 87ed9a473..87ed9a473 100755
--- a/target/tools/uboot-mkimage/mkimage
+++ b/tools/mkimage/mkimage
Binary files differ
diff --git a/target/tools/uboot-mkimage/mkimage.c b/tools/mkimage/mkimage.c
index 7c0432bad..7c0432bad 100644
--- a/target/tools/uboot-mkimage/mkimage.c
+++ b/tools/mkimage/mkimage.c