diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | README | 6 | ||||
-rw-r--r-- | mk/build.mk | 44 | ||||
-rw-r--r-- | mk/host.mk | 2 | ||||
-rw-r--r-- | mk/image.mk | 12 | ||||
-rw-r--r-- | mk/kernel-vars.mk | 2 | ||||
-rw-r--r-- | mk/kernel-ver.mk | 2 | ||||
-rw-r--r-- | mk/package.mk | 2 | ||||
-rw-r--r-- | mk/pkg-bottom.mk | 6 | ||||
-rw-r--r-- | mk/vars.mk | 45 | ||||
-rw-r--r-- | package/base-files/Makefile | 2 | ||||
-rw-r--r-- | package/gcc/Makefile | 11 | ||||
-rw-r--r-- | package/gcc/patches/4.8.2/musl-cross.patch | 698 | ||||
-rw-r--r-- | package/gcj/Makefile | 8 | ||||
-rw-r--r-- | package/openjdk7/Makefile | 2 | ||||
-rw-r--r-- | package/perl/files/config.sh.mips64.eglibc | 1118 | ||||
-rw-r--r-- | package/perl/files/config.sh.mips64.uclibc | 1118 | ||||
-rw-r--r-- | package/perl/files/config.sh.mipsel.musl | 1118 | ||||
-rw-r--r-- | package/xbmc/Makefile | 2 | ||||
-rw-r--r-- | rules.mk | 1 | ||||
-rwxr-xr-x | scripts/create.sh | 5 | ||||
-rw-r--r-- | scripts/scan-tools.sh | 36 | ||||
-rw-r--r-- | target/arm/sys-available/toolchain-arm | 4 | ||||
-rw-r--r-- | target/arm/sys-available/toolchain-armeb | 11 | ||||
-rw-r--r-- | target/config/Config.in | 23 | ||||
-rw-r--r-- | target/config/Config.in.tools | 40 | ||||
-rw-r--r-- | target/linux/config/Config.in.kernel | 8 | ||||
-rw-r--r-- | target/microblaze/Makefile | 17 | ||||
-rw-r--r-- | target/mips/Makefile | 14 | ||||
-rw-r--r-- | target/ppc/sys-available/toolchain-ppc | 1 | ||||
-rw-r--r-- | target/ppc64/sys-available/toolchain-ppc64 | 1 | ||||
-rw-r--r-- | target/tarch.lst | 1 | ||||
-rw-r--r-- | target/tools/addpattern/Makefile | 4 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/entries | 300 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/LzmaDecode.c.svn-base | 663 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/LzmaDecode.h.svn-base | 100 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/Makefile.svn-base | 77 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/README.svn-base | 55 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/decompress.c.svn-base | 186 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/decompress.lds.in.svn-base | 20 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/head.S.svn-base | 160 | ||||
-rw-r--r-- | target/tools/lzma-loader/.svn/text-base/loader.lds.in.svn-base | 17 | ||||
-rw-r--r-- | target/tools/mkfimage/Makefile | 4 | ||||
-rw-r--r-- | target/tools/rules.mk | 7 | ||||
-rw-r--r-- | target/tools/srec2bin/Makefile | 4 | ||||
-rw-r--r-- | target/tools/trx/Makefile | 4 | ||||
-rw-r--r-- | target/x86/kernel/qemu-i686 | 3 | ||||
-rw-r--r-- | toolchain/eglibc/Makefile | 7 | ||||
-rw-r--r-- | toolchain/gcc/Makefile | 8 | ||||
-rw-r--r-- | toolchain/gcc/Makefile.inc | 7 | ||||
-rw-r--r-- | toolchain/gcc/patches/4.8.2/cflags.patch | 231 | ||||
-rw-r--r-- | toolchain/gcc/patches/4.8.2/musl-stubs.patch | 49 | ||||
-rw-r--r-- | toolchain/glibc/Makefile | 6 | ||||
-rw-r--r-- | toolchain/kernel-headers/Makefile | 2 | ||||
-rw-r--r-- | toolchain/musl/Makefile | 4 | ||||
-rw-r--r-- | toolchain/musl/patches/musl-git-20140301.patch (renamed from toolchain/musl/patches/musl-git-20140225.patch) | 832 | ||||
-rw-r--r-- | toolchain/uClibc/Makefile | 4 | ||||
-rw-r--r-- | tools/Makefile | 30 | ||||
-rw-r--r-- | tools/addpattern/Makefile | 4 | ||||
-rw-r--r-- | tools/addpattern/addpattern.c (renamed from target/tools/addpattern/addpattern.c) | 0 | ||||
-rw-r--r-- | tools/adk/Makefile | 8 | ||||
-rw-r--r-- | tools/bc/Makefile | 6 | ||||
-rw-r--r-- | tools/bzip2/Makefile | 24 | ||||
-rw-r--r-- | tools/cdrtools/Makefile | 6 | ||||
-rw-r--r-- | tools/cpio/Makefile | 4 | ||||
-rw-r--r-- | tools/genext2fs/Makefile | 6 | ||||
-rw-r--r-- | tools/gperf/Makefile | 6 | ||||
-rw-r--r-- | tools/lzma-loader/Makefile (renamed from target/tools/lzma-loader/Makefile) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/LzmaDecode.c (renamed from target/tools/lzma-loader/src/LzmaDecode.c) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/LzmaDecode.h (renamed from target/tools/lzma-loader/src/LzmaDecode.h) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/LzmaDecode.o (renamed from target/tools/lzma-loader/src/LzmaDecode.o) | bin | 6248 -> 6248 bytes | |||
-rw-r--r-- | tools/lzma-loader/src/Makefile (renamed from target/tools/lzma-loader/src/Makefile) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/README (renamed from target/tools/lzma-loader/src/README) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/data.lds (renamed from target/tools/lzma-loader/src/data.lds) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/data.o (renamed from target/tools/lzma-loader/src/data.o) | bin | 3996 -> 3996 bytes | |||
-rwxr-xr-x | tools/lzma-loader/src/decompress (renamed from target/tools/lzma-loader/src/decompress) | bin | 71097 -> 71097 bytes | |||
-rw-r--r-- | tools/lzma-loader/src/decompress.c (renamed from target/tools/lzma-loader/src/decompress.c) | 0 | ||||
-rwxr-xr-x | tools/lzma-loader/src/decompress.image (renamed from target/tools/lzma-loader/src/decompress.image) | bin | 3484 -> 3484 bytes | |||
-rw-r--r-- | tools/lzma-loader/src/decompress.lds (renamed from target/tools/lzma-loader/src/decompress.lds) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/decompress.lds.in (renamed from target/tools/lzma-loader/src/decompress.lds.in) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/decompress.o (renamed from target/tools/lzma-loader/src/decompress.o) | bin | 2680 -> 2680 bytes | |||
-rw-r--r-- | tools/lzma-loader/src/head.S (renamed from target/tools/lzma-loader/src/head.S) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/head.o (renamed from target/tools/lzma-loader/src/head.o) | bin | 1204 -> 1204 bytes | |||
-rwxr-xr-x | tools/lzma-loader/src/loader (renamed from target/tools/lzma-loader/src/loader) | bin | 3804 -> 3804 bytes | |||
-rwxr-xr-x | tools/lzma-loader/src/loader.elf (renamed from target/tools/lzma-loader/src/loader.elf) | bin | 8486 -> 8486 bytes | |||
-rw-r--r-- | tools/lzma-loader/src/loader.gz (renamed from target/tools/lzma-loader/src/loader.gz) | bin | 2374 -> 2374 bytes | |||
-rw-r--r-- | tools/lzma-loader/src/loader.lds (renamed from target/tools/lzma-loader/src/loader.lds) | 0 | ||||
-rw-r--r-- | tools/lzma-loader/src/loader.lds.in (renamed from target/tools/lzma-loader/src/loader.lds.in) | 0 | ||||
-rwxr-xr-x | tools/lzma-loader/src/loader.o (renamed from target/tools/lzma-loader/src/loader.o) | bin | 8486 -> 8486 bytes | |||
-rw-r--r-- | tools/lzma/Makefile (renamed from target/tools/lzma/Makefile) | 7 | ||||
-rw-r--r-- | tools/lzma/patches/001-large_files.patch (renamed from target/tools/lzma/patches/001-large_files.patch) | 0 | ||||
-rw-r--r-- | tools/lzma/patches/002-lzmp.patch (renamed from target/tools/lzma/patches/002-lzmp.patch) | 0 | ||||
-rw-r--r-- | tools/lzma/patches/003-compile_fixes.patch (renamed from target/tools/lzma/patches/003-compile_fixes.patch) | 0 | ||||
-rw-r--r-- | tools/lzma/patches/100-static_library.patch (renamed from target/tools/lzma/patches/100-static_library.patch) | 0 | ||||
-rw-r--r-- | tools/lzo/Makefile | 28 | ||||
-rw-r--r-- | tools/lzop/Makefile | 30 | ||||
-rw-r--r-- | tools/m4/Makefile | 25 | ||||
-rw-r--r-- | tools/mkcrypt/Makefile | 4 | ||||
-rw-r--r-- | tools/mkfimage/Makefile | 4 | ||||
-rw-r--r-- | tools/mkfimage/mkfimage.c (renamed from target/tools/mkfimage/mkfimage.c) | 0 | ||||
-rw-r--r-- | tools/mkimage/Makefile | 4 | ||||
-rw-r--r-- | tools/mtd-utils/Makefile (renamed from target/tools/mtd-utils/Makefile) | 6 | ||||
-rw-r--r-- | tools/mtd-utils/patches/lzo.patch (renamed from target/tools/mtd-utils/patches/lzo.patch) | 0 | ||||
-rw-r--r-- | tools/squashfs/Makefile (renamed from target/tools/squashfs/Makefile) | 8 | ||||
-rw-r--r-- | tools/squashfs/patches/cppflags.patch (renamed from target/tools/squashfs/patches/cppflags.patch) | 0 | ||||
-rw-r--r-- | tools/srec2bin/Makefile | 4 | ||||
-rw-r--r-- | tools/srec2bin/srec2bin.c (renamed from target/tools/srec2bin/srec2bin.c) | 0 | ||||
-rw-r--r-- | tools/syslinux/Makefile | 13 | ||||
-rw-r--r-- | tools/trx/Makefile | 4 | ||||
-rw-r--r-- | tools/trx/trx.c (renamed from target/tools/trx/trx.c) | 0 | ||||
-rw-r--r-- | tools/xz/Makefile (renamed from target/tools/xz/Makefile) | 8 |
111 files changed, 5197 insertions, 2157 deletions
diff --git a/.gitignore b/.gitignore index a4d67734a..fc81d7882 100644 --- a/.gitignore +++ b/.gitignore @@ -30,7 +30,6 @@ /host_*/ /pkg_*/ /root_*/ -/bin/ /firmware/ /build_*/ /config/*.o @@ -8,16 +8,11 @@ Before you can start you need to install some tools: - gcc - binutils - GNU make -- GNU m4 - GNU awk - GNU sed - tar - patch - gzip -- bzip2 -- lzop -- lzma -- xz - wget - libc headers - ncurses5 headers @@ -39,3 +34,4 @@ To switch to another target configuration, simply run "make switch". This will backup your existing configuration and will start with an empty one. Sunshine! + Waldemar Brodkorb <wbx@openadk.org> diff --git a/mk/build.mk b/mk/build.mk index eadccdcb3..90fce65a8 100644 --- a/mk/build.mk +++ b/mk/build.mk @@ -91,7 +91,7 @@ POSTCONFIG= -@\ if [ -f .adkinit ];then rm .adkinit;\ else \ if [ -f .config.old ];then \ - $(TOPDIR)/bin/pkgrebuild;\ + $(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/pkgrebuild;\ rebuild=0; \ if [ "$$(grep ^BUSYBOX .config|md5sum)" != "$$(grep ^BUSYBOX .config.old|md5sum)" ];then \ touch .rebuild.busybox;\ @@ -138,7 +138,7 @@ include $(TOPDIR)/rules.mk all: world ${TOPDIR}/package/Depends.mk: ${TOPDIR}/.config $(wildcard ${TOPDIR}/package/*/Makefile) - $(BIN_DIR)/depmaker > ${TOPDIR}/package/Depends.mk + $(STAGING_HOST_DIR)/usr/bin/depmaker > ${TOPDIR}/package/Depends.mk .NOTPARALLEL: .PHONY: all world clean cleantarget cleandir distclean image_clean @@ -155,12 +155,12 @@ ifeq ($(ADK_NATIVE),y) else ifeq ($(ADK_TOOLCHAIN),y) ifeq ($(ADK_TOOLCHAIN_ONLY),y) - $(MAKE) -f mk/build.mk toolchain/fixup tools/install package/compile + $(MAKE) -f mk/build.mk tools/install toolchain/fixup package/compile else - $(MAKE) -f mk/build.mk toolchain/fixup tools/install package/compile root_clean package/install + $(MAKE) -f mk/build.mk tools/install toolchain/fixup package/compile root_clean package/install endif else - $(MAKE) -f mk/build.mk toolchain/fixup tools/install target/config-prepare target/compile package/compile root_clean package/install target/install package_index + $(MAKE) -f mk/build.mk tools/install toolchain/fixup target/config-prepare target/compile package/compile root_clean package/install target/install package_index endif endif @@ -250,13 +250,13 @@ root_clean: clean: @$(TRACE) clean $(MAKE) -C $(CONFIG) clean - for d in ${STAGING_PKG_DIR}; do \ - for f in $$(ls $$d/[a-z]* 2>/dev/null |grep -v [A-Z] 2>/dev/null); do \ - while read file ; do \ - rm ${STAGING_DIR}/$$file 2>/dev/null;\ - done < $$f ; \ - rm $$f ; \ - done \ + for f in $$(ls ${STAGING_PKG_DIR}/ 2>/dev/null |grep -v [A-Z]|grep -v stamps 2>/dev/null); do \ + while read file ; do \ + echo ${STAGING_DIR}/$$file ;\ + rm ${STAGING_DIR}/$$file 2>/dev/null;\ + done < $$f ; \ + echo ${STAGING_PKG_DIR}/$$f ;\ + rm ${STAGING_PKG_DIR}/$$f ; \ done rm -rf $(BUILD_DIR) $(FW_DIR) $(TARGET_DIR) \ ${TOPDIR}/package/pkglist.d @@ -535,7 +535,7 @@ bulktoolchain: $(GMAKE) prereq && \ $(GMAKE) ARCH=$$tarch SYSTEM=toolchain-$$arch LIBC=$$libc defconfig; \ $(GMAKE) VERBOSE=1 all; if [ $$? -ne 0 ]; then touch .exit;fi; \ - tar -cJf ${TOPDIR}/firmware/toolchain_$${arch}_$${libc}.tar.xz host_$${arch}_*_$${libc} target_$${arch}_*_$${libc}; \ + tar -cvJf ${TOPDIR}/firmware/toolchain_$${arch}_$${libc}.tar.xz host_$${arch}_*_$${libc} target_$${arch}_*_$${libc}; \ rm .config; \ ) 2>&1 | tee $(TOPDIR)/firmware/toolchain_$${arch}_$${libc}/build.log; \ if [ -f .exit ];then break;fi \ @@ -619,24 +619,24 @@ bulkallmod: if [ -f .exit ];then echo "Bulk build failed!"; cat .exit;rm .exit; exit 1;fi \ done -${TOPDIR}/bin/pkgmaker: $(TOPDIR)/tools/adk/pkgmaker.c $(TOPDIR)/tools/adk/sortfile.c $(TOPDIR)/tools/adk/strmap.c - @mkdir -p ${TOPDIR}/bin +$(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/pkgmaker: $(TOPDIR)/tools/adk/pkgmaker.c $(TOPDIR)/tools/adk/sortfile.c $(TOPDIR)/tools/adk/strmap.c + @mkdir -p host_$(GNU_HOST_NAME)/usr/bin @$(CC_FOR_BUILD) -g -o $@ tools/adk/pkgmaker.c tools/adk/sortfile.c tools/adk/strmap.c -${TOPDIR}/bin/pkgrebuild: $(TOPDIR)/tools/adk/pkgrebuild.c $(TOPDIR)/tools/adk/strmap.c +$(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/pkgrebuild: $(TOPDIR)/tools/adk/pkgrebuild.c $(TOPDIR)/tools/adk/strmap.c @$(CC_FOR_BUILD) -g -o $@ tools/adk/pkgrebuild.c tools/adk/strmap.c -package/Config.in.auto menu .menu: $(wildcard ${TOPDIR}/package/*/Makefile) ${TOPDIR}/bin/pkgmaker ${TOPDIR}/bin/pkgrebuild +package/Config.in.auto menu .menu: $(wildcard ${TOPDIR}/package/*/Makefile) $(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/pkgmaker $(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/pkgrebuild @echo "Generating menu structure ..." - @$(TOPDIR)/bin/pkgmaker + @$(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/pkgmaker @:>.menu -${TOPDIR}/bin/depmaker: $(TOPDIR)/tools/adk/depmaker.c - $(CC_FOR_BUILD) -g -o $(TOPDIR)/bin/depmaker $(TOPDIR)/tools/adk/depmaker.c +$(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/depmaker: $(TOPDIR)/tools/adk/depmaker.c + $(CC_FOR_BUILD) -g -o $@ $(TOPDIR)/tools/adk/depmaker.c -dep: $(TOPDIR)/bin/depmaker +dep: $(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/depmaker @echo "Generating dependencies ..." - @$(TOPDIR)/bin/depmaker > ${TOPDIR}/package/Depends.mk + @$(TOPDIR)/host_$(GNU_HOST_NAME)/usr/bin/depmaker > ${TOPDIR}/package/Depends.mk .PHONY: menu dep diff --git a/mk/host.mk b/mk/host.mk index 3fcca0664..aa88bab44 100644 --- a/mk/host.mk +++ b/mk/host.mk @@ -37,7 +37,7 @@ _HOST_PATCH_COOKIE= ${WRKDIST}/.prepared _HOST_CONFIGURE_COOKIE= ${WRKDIR}/.host_configure_done _HOST_BUILD_COOKIE= ${WRKDIR}/.host_build_done _HOST_FAKE_COOKIE= ${HOST_WRKINST}/.host_fake_done -_HOST_COOKIE= ${STAGING_PKG_DIR}/${PKG_NAME}${PKG_VERSION}-${PKG_RELEASE}-host +_HOST_COOKIE= ${STAGING_PKG_DIR}/stamps/${PKG_NAME}${PKG_VERSION}-${PKG_RELEASE}-host hostextract: ${_HOST_EXTRACT_COOKIE} hostpatch: ${_HOST_PATCH_COOKIE} diff --git a/mk/image.mk b/mk/image.mk index 9b60c2400..571752eaf 100644 --- a/mk/image.mk +++ b/mk/image.mk @@ -136,15 +136,15 @@ endif ${FW_DIR}/${ROOTFSTARBALL}: ${TARGET_DIR} kernel-package cd ${TARGET_DIR}; find . | sed -n '/^\.\//s///p' | \ sed "s#\(.*\)#:0:0::::::\1#" | sort | \ - ${BIN_DIR}/cpio -o -Hustar -P | gzip -n9 >$@ + ${STAGING_HOST_DIR}/usr/bin/cpio -o -Hustar -P | gzip -n9 >$@ ${FW_DIR}/${ROOTFSUSERTARBALL}: ${TARGET_DIR} cd ${TARGET_DIR}; find . | grep -v ./boot/ | sed -n '/^\.\//s///p' | \ sed "s#\(.*\)#:0:0::::::\1#" | sort | \ - ${BIN_DIR}/cpio -o -Hustar -P | gzip -n9 >$@ + ${STAGING_HOST_DIR}/usr/bin/cpio -o -Hustar -P | gzip -n9 >$@ ${FW_DIR}/${INITRAMFS}_list: ${TARGET_DIR} - bash ${LINUX_DIR}/scripts/gen_initramfs_list.sh -u squash -g squash \ + $(BASH) ${LINUX_DIR}/scripts/gen_initramfs_list.sh -u squash -g squash \ ${TARGET_DIR}/ >$@ ( \ echo "nod /dev/console 0644 0 0 c 5 1"; \ @@ -162,12 +162,12 @@ ${FW_DIR}/${INITRAMFS}: ${FW_DIR}/${INITRAMFS}_list ${ADK_COMPRESSION_TOOL} -c >$@ ${BUILD_DIR}/root.squashfs: ${TARGET_DIR} - ${STAGING_HOST_DIR}/bin/mksquashfs ${TARGET_DIR} \ + ${STAGING_HOST_DIR}/usr/bin/mksquashfs ${TARGET_DIR} \ ${BUILD_DIR}/root.squashfs -comp xz \ -nopad -noappend -root-owned $(MAKE_TRACE) ${FW_DIR}/${ROOTFSJFFS2}: ${TARGET_DIR} - ${STAGING_HOST_DIR}/bin/mkfs.jffs2 $(ADK_JFFS2_OPTS) -q -r ${TARGET_DIR} \ + ${STAGING_HOST_DIR}/usr/bin/mkfs.jffs2 $(ADK_JFFS2_OPTS) -q -r ${TARGET_DIR} \ --pad=$(ADK_TARGET_MTD_SIZE) -o ${FW_DIR}/${ROOTFSJFFS2} $(MAKE_TRACE) createinitramfs: ${FW_DIR}/${INITRAMFS}_list @@ -242,7 +242,7 @@ ${FW_DIR}/${ROOTFSISO}: ${TARGET_DIR} kernel-package ${TARGET_DIR}/boot/syslinux echo 'DEFAULT /boot/kernel root=/dev/sr0 init=/init' > \ ${TARGET_DIR}/boot/syslinux/isolinux.cfg - ${BIN_DIR}/mkisofs -R -uid 0 -gid 0 -o $@ \ + ${STAGING_HOST_DIR}/usr/bin/mkisofs -R -uid 0 -gid 0 -o $@ \ -b boot/syslinux/isolinux.bin \ -c boot/syslinux/boot.cat -no-emul-boot \ -boot-load-size 4 -boot-info-table ${TARGET_DIR} |