├── .gitignore ├── README.md ├── conf ├── arch │ ├── armv4.sh │ ├── armv4t.sh │ ├── armv5.sh │ ├── ax0.sh │ ├── mxs.sh │ ├── omap.sh │ └── zynq.sh ├── board │ ├── atom │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── config_wpa-supplicant.conf │ │ ├── gdk-pixbuf.loaders │ │ ├── gst-plugins-base │ │ │ └── examples.patch │ │ ├── launch-qemu.sh │ │ ├── libmesa.old │ │ │ └── 0001-imports-Fixes-an-issue-with-uclibc.patch │ │ ├── libxslt │ │ │ └── configure.patch │ │ ├── linux-2.6.38.7 │ │ │ └── bootsplash-2.6.38.patch │ │ ├── linux-3.0.9 │ │ │ ├── bootsplash-3.0.patch │ │ │ └── bootsplash_notes.txt │ │ ├── minifs-script.sh │ │ └── rootfs │ │ │ ├── etc │ │ │ ├── X11 │ │ │ │ └── xorg.conf │ │ │ ├── asound.conf │ │ │ ├── init.d │ │ │ │ └── rcS │ │ │ ├── pango │ │ │ │ └── pango.modules │ │ │ └── ssl │ │ │ │ └── certs │ │ │ │ └── ca-certificates.crt │ │ │ └── var │ │ │ └── cache │ │ │ └── fontconfig │ │ │ ├── 17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3 │ │ │ ├── 3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-gnu.cache-3 │ │ │ ├── 3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3 │ │ │ ├── c855463f699352c367813e37f3f70ea7-i586-atom-linux-gnu.cache-3 │ │ │ ├── c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3 │ │ │ ├── df311e82a1a24c41a75c2c930223552e-i586-atom-linux-gnu.cache-3 │ │ │ ├── eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3 │ │ │ ├── fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-gnu.cache-3 │ │ │ └── fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3 │ ├── beagle │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── gst-plugins-base │ │ │ └── examples.patch │ │ ├── launch-qemu.sh │ │ ├── libxslt │ │ │ └── configure.patch │ │ ├── minifs-script.sh │ │ └── rootfs │ │ │ ├── etc │ │ │ ├── pango │ │ │ │ └── pango.modules │ │ │ ├── ssl │ │ │ │ └── certs │ │ │ │ │ └── ca-certificates │ │ │ └── xserver-start.sh │ │ │ └── var │ │ │ └── cache │ │ │ └── fontconfig │ │ │ ├── 17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3 │ │ │ ├── 3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3 │ │ │ ├── c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3 │ │ │ ├── eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3 │ │ │ └── fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3 │ ├── beaglebone │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ └── minifs-script-bb.sh │ ├── biff │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── linux-2.6.30.5 │ │ │ └── 2.6.30.5.patch │ │ ├── linux │ │ │ ├── 0001-block-device-precedence.patch │ │ │ ├── 0002-single-NIC.patch │ │ │ ├── 0003-kexec-fix.patch │ │ │ ├── 0004-missing-cpuid-instruction.patch │ │ │ ├── 0005-boot-without-FPU.patch │ │ │ ├── 0006-RDC-cpu-detect.patch │ │ │ ├── 0007-configfs-flash-interface.patch │ │ │ ├── 0008-sysfs-gpio-interface.patch │ │ │ ├── 0009-fixed-watchdog.patch │ │ │ ├── 0010-custom-w1-over-gpio.patch │ │ │ ├── 0011-custom-i2c-over-gpio.patch │ │ │ ├── 0012-mmc-over-gpio.patch │ │ │ ├── 0013-bifferboard-flash-map.patch │ │ │ ├── 0014-pit-tick-rate.patch │ │ │ └── extra │ │ │ │ └── 0014-diagnostic-LED-flipper.patch │ │ └── minifs-script.sh │ ├── df3120 │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── fbvncslave.c │ │ ├── linux │ │ │ └── linux-2.6.36.3-df3120.patch │ │ ├── make_sdcard.sh │ │ ├── minifs-script.sh │ │ ├── packages │ │ │ └── 85extras.sh │ │ └── rootfs │ │ │ └── etc │ │ │ ├── cwiid │ │ │ └── wminput │ │ │ │ ├── buttons2 │ │ │ │ ├── kobodl │ │ │ │ └── kobodldf3120 │ │ │ ├── init.d │ │ │ └── rcS │ │ │ └── inittab │ ├── imx233 │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── config_wpa-supplicant.conf │ │ ├── imx23-olinuxino-heating.dts │ │ ├── linux │ │ │ ├── 0001-spidev-Introduces-an-optional-interrupt.patch │ │ │ ├── 0002-spidev-Make-OF-compatible.patch │ │ │ ├── 0003-gpiolib-of-ad-gpio-export-support.patch │ │ │ └── 0006-UCLIBC-fixfor<=0.33.2.patch │ │ ├── minifs-script.sh │ │ └── rootfs │ │ │ └── etc │ │ │ └── init.d │ │ │ └── rcS │ ├── imx28 │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── minifs-script.sh │ │ ├── rootfs │ │ │ └── etc │ │ │ │ └── init.d │ │ │ │ └── rcS │ │ └── uboot │ │ │ └── 0001-add-ext4.patch │ ├── joggler │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── config_wpa-supplicant.conf │ │ ├── gst-plugins-base │ │ │ └── examples.patch │ │ ├── launch-qemu.sh │ │ ├── libxslt │ │ │ └── configure.patch │ │ ├── linux-2.6.33.4 │ │ │ ├── joggler-backlight-2.6.32-v1.patch │ │ │ ├── joggler-i2c-fix-2.6.32-v1.patch │ │ │ ├── joggler-sound-fix-v2.6.33-v3.patch │ │ │ └── linux-2.6.33.2-iegd.patch │ │ ├── linux-2.6.38.4 │ │ │ ├── 0001-joggler-downgraded-alsa-hda-drivers-to-2.6.32-versio.patch │ │ │ ├── 0002-added-joggler-sound-fix-v2.6.33-v3.patch-from-http-c.patch │ │ │ ├── 0003-include-slab-memory-header-into-hda_eld.c-to-allow-i.patch │ │ │ ├── 0004-added-driver-for-joggler-backlight-joggler-backlight.patch │ │ │ └── 0005-fixed-patch-i2c-code-for-the-joggler.patch │ │ ├── minifs-script.sh │ │ └── rootfs │ │ │ ├── etc │ │ │ ├── pango │ │ │ │ └── pango.modules │ │ │ ├── ssl │ │ │ │ └── certs │ │ │ │ │ └── ca-certificates │ │ │ └── xserver-start.sh │ │ │ └── var │ │ │ └── cache │ │ │ └── fontconfig │ │ │ ├── 17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3 │ │ │ ├── 3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3 │ │ │ ├── c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3 │ │ │ ├── eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3 │ │ │ └── fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3 │ ├── mini2440-airprint │ │ ├── .gitignore │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── minifs-script.sh │ │ ├── rootfs │ │ │ └── etc │ │ │ │ ├── cups │ │ │ │ └── cupsd.conf │ │ │ │ └── ssh │ │ │ │ └── sshd_config │ │ └── uboot │ │ │ └── 0001-uboot-env.patch │ ├── mini2440 │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel-2.6.32.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── linux-2.6.32.7 │ │ │ └── 00official.patch │ │ └── minifs-script.sh │ ├── nanopi │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── config_wpa-supplicant.conf │ │ ├── initramfs │ │ │ └── etc │ │ │ │ └── init.sh │ │ ├── minifs-script-nanopi.sh │ │ └── rootfs │ │ │ └── etc │ │ │ └── init.d │ │ │ └── rcS │ ├── olilime │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ └── minifs-script.sh │ ├── raspi │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── config_wpa-supplicant.conf │ │ ├── minifs-script.sh │ │ ├── rootfs │ │ │ └── etc │ │ │ │ └── init.d │ │ │ │ └── rcS │ │ ├── ssh_host_dsa_key │ │ ├── ssh_host_dsa_key.pub │ │ ├── ssh_host_rsa_key │ │ └── ssh_host_rsa_key.pub │ ├── rzn1 │ │ ├── config_busybox.conf │ │ ├── config_busybox_mini.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── initramfs │ │ │ └── etc │ │ │ │ └── init.sh │ │ ├── linux │ │ │ └── rzn1-public-v1.1-kernel.patch │ │ ├── minifs-script-rzn1.sh │ │ ├── rootfs │ │ │ └── etc │ │ │ │ └── init.d │ │ │ │ └── rcS │ │ └── uboot │ │ │ └── rzn1-public-v1.1-uboot.patch │ ├── wandboard │ │ ├── brcmfmac-sdio.txt │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── initramfs │ │ │ └── etc │ │ │ │ └── init.sh │ │ ├── minifs-script.sh │ │ └── rootfs │ │ │ └── etc │ │ │ ├── init.d │ │ │ └── rcS │ │ │ └── network-up.sh │ └── zedboard │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── minifs-script.sh │ │ └── twolame │ │ ├── 0001-simplefrontend-Workaround-incomplete-wav-header-pars.patch │ │ └── 0002-benchmarking-compute-average-usec.patch ├── distro │ └── yuckfan │ │ ├── config_busybox.conf │ │ ├── config_crosstools.conf │ │ ├── config_kernel.conf │ │ ├── config_uclibc.conf │ │ ├── linux │ │ └── 00official.patch │ │ ├── minifs-script.sh │ │ └── rootfs │ │ └── etc │ │ ├── pango │ │ └── pango.modules │ │ └── resolv.conf ├── host-tools │ ├── Makefile │ ├── Makefile.kconfig │ ├── ccfix.c │ ├── cross_linker.c │ ├── depsort.c │ ├── env_contains.c │ ├── filename_sort.c │ ├── install.c │ ├── kconfig │ │ ├── .gitignore │ │ ├── Makefile │ │ ├── POTFILES.in │ │ ├── check.sh │ │ ├── conf.c │ │ ├── confdata.c │ │ ├── expr.c │ │ ├── expr.h │ │ ├── gconf.c │ │ ├── gconf.glade │ │ ├── images.c │ │ ├── kconfig_load.c │ │ ├── kxgettext.c │ │ ├── lex.zconf.c_shipped │ │ ├── lkc.h │ │ ├── lkc_proto.h │ │ ├── lxdialog │ │ │ ├── .gitignore │ │ │ ├── BIG.FAT.WARNING │ │ │ ├── check-lxdialog.sh │ │ │ ├── checklist.c │ │ │ ├── dialog.h │ │ │ ├── inputbox.c │ │ │ ├── menubox.c │ │ │ ├── textbox.c │ │ │ ├── util.c │ │ │ └── yesno.c │ │ ├── mconf.c │ │ ├── menu.c │ │ ├── nconf.c │ │ ├── nconf.gui.c │ │ ├── nconf.h │ │ ├── qconf.cc │ │ ├── qconf.h │ │ ├── streamline_config.pl │ │ ├── symbol.c │ │ ├── util.c │ │ ├── zconf.gperf │ │ ├── zconf.hash.c_shipped │ │ ├── zconf.l │ │ ├── zconf.tab.c_shipped │ │ └── zconf.y │ ├── pkg-config.c │ ├── raspi-boot.c │ └── sstrip.c ├── minifs-script-utils.sh ├── packages │ ├── 00linux.sh │ ├── 05arm-imx-elftosb.sh │ ├── 05crosstools.sh │ ├── 06uboot.sh │ ├── 08shared-library.sh │ ├── 09busybox.sh │ ├── 10archive.sh │ ├── 10common_base.sh │ ├── 10misc.sh │ ├── 10pam.sh │ ├── 10text.sh │ ├── 10wireless.sh │ ├── 11cups.sh │ ├── 11extra-networking.sh │ ├── 11graphical.sh │ ├── 11iproute2.sh │ ├── 11jtag.sh │ ├── 11python.sh │ ├── 11rrdtool.sh │ ├── 11tcpdump.sh │ ├── 12xorg.sh │ ├── 13gtk.sh │ ├── 13nvidia.sh │ ├── 14alsa.sh │ ├── 14bluez.sh │ ├── 14mupdf.sh │ ├── 15debug.sh │ ├── 15languages.sh │ ├── 15node.sh │ ├── 15webkit.sh │ ├── 18qt.sh │ ├── 20ffmpeg.sh │ ├── 24sdl.sh │ ├── 25vnc.sh │ ├── 26enlightenment.sh │ ├── 26ppp.sh │ ├── 30avahi.sh │ ├── 50mjpeg-streamer.sh │ ├── 80dropbear.sh │ ├── 80mdnsresponder.sh │ ├── 80opencv.sh │ ├── 85doom.sh │ ├── 85michel.sh │ ├── 85target-tools.sh │ ├── 86mqtt.sh │ ├── 90oprofile.sh │ ├── 95filesystems.sh │ ├── module-list-X11R7.6.txt │ └── module-list-XORG-7_5.txt ├── patches │ ├── alsautils │ │ ├── 0002-fix-for-poll-constants-with-uclibc.patch │ │ └── 001-fix-for-exp10.patch │ ├── busybox │ │ └── busybox-flashcp.patch │ ├── crosstools-1.19.0 │ │ └── cc-gcc-fix-problem-with-gcc-4.8.1-and-gcc-4.8.2-and-parallel-build.patch │ ├── crosstools-1.21.0 │ │ ├── 0001-scripts-use-generic-urls-for-sourceforge.patch │ │ ├── 0002-libtoolize.patch │ │ └── patches │ │ │ └── eglibc │ │ │ └── 2_13 │ │ │ ├── 0001-C-translit.h-patch-from-Ubuntu-eglibc-2.13-0ubuntu4.patch │ │ │ ├── 0002-disable-ipv6-DNS-lookups-when-isolated-lp-417757.patch │ │ │ ├── 0003-getaddrinfo-result-sorting-deviates-from-RFC3484.patch │ │ │ ├── 1000-submitted-stack-guard-quick-randomization.patch │ │ │ ├── 1001-submitted-leading-zero-stack-guard.patch │ │ │ ├── 2001-cvs-at-pagesize.patch │ │ │ ├── 2002-cvs-dl-missing-deps.patch │ │ │ ├── 2004-cvs-sched_h.patch │ │ │ ├── 2005-fedora-nss_dns-gethostbyname4-disable.patch │ │ │ ├── 2006-local-alias-UTF-8.patch │ │ │ ├── 2007-local-alias-et_EE.patch │ │ │ ├── 2008-local-allocalim-header.patch │ │ │ ├── 2009-local-asserth-decls.patch │ │ │ ├── 2010-local-biarch.patch │ │ │ ├── 2011-local-bindresvport_blacklist.patch │ │ │ ├── 2012-local-clone.patch │ │ │ ├── 2013-local-cmov.patch │ │ │ ├── 2014-local-cpuid-level2.patch │ │ │ ├── 2015-local-disable-nscd-host-caching.patch │ │ │ ├── 2016-local-disable-test-tgmath2.patch │ │ │ ├── 2017-local-dlfptr.patch │ │ │ ├── 2018-local-fhs-linux-paths.patch │ │ │ ├── 2019-local-fhs-nscd.patch │ │ │ ├── 2020-local-getaddrinfo-interface.patch │ │ │ ├── 2021-local-ld-multiarch.patch │ │ │ ├── 2022-local-ldconfig-fsync.patch │ │ │ ├── 2023-local-ldconfig.patch │ │ │ ├── 2024-local-ldd.patch │ │ │ ├── 2025-local-ldso-disable-hwcap.patch │ │ │ ├── 2040-local-localedef-fix-trampoline.patch │ │ │ ├── 2041-local-missing-linux_types.h.patch │ │ │ ├── 2042-local-mktemp.patch │ │ │ ├── 2043-local-nis-shadow.patch │ │ │ ├── 2044-local-no-SOCK_NONBLOCK.patch │ │ │ ├── 2045-local-nss-overflow.patch │ │ │ ├── 2046-local-nss-upgrade.patch │ │ │ ├── 2047-local-o_cloexec.patch │ │ │ ├── 2049-local-pthread_cond_wait.patch │ │ │ ├── 2050-local-relro-mprotect.patch │ │ │ ├── 2051-local-rtld.patch │ │ │ ├── 2052-local-ru_RU.patch │ │ │ ├── 2053-local-stdio-lock.patch │ │ │ ├── 2054-local-stubs_h.patch │ │ │ ├── 2055-local-tcsetaddr.patch │ │ │ ├── 2056-local-tst-mktime2.patch │ │ │ ├── 2057-pr12454.patch │ │ │ ├── 2058-submitted-accept4-hidden.patch │ │ │ ├── 2059-submitted-autotools.patch │ │ │ ├── 2060-submitted-clock-settime.patch │ │ │ ├── 2061-submitted-getaddrinfo-lo.patch │ │ │ ├── 2062-submitted-i686-timing.patch │ │ │ ├── 2063-submitted-ldsodefs_rtld_debug.patch │ │ │ ├── 2064-submitted-localedef-mmap.patch │ │ │ ├── 2065-submitted-longdouble.patch │ │ │ ├── 2066-submitted-missing-etc-hosts.patch │ │ │ ├── 2067-submitted-nis-netgrp.patch │ │ │ ├── 2068-submitted-popen.patch │ │ │ ├── 2069-submitted-string2-strcmp.patch │ │ │ └── 2070-submitted-sys-uio-vector.patch │ ├── cups-1.5 │ │ ├── 0001-build.patch │ │ └── 0002-airprint.patch │ ├── cwiid │ │ └── cross-compile_and_remove_gtk.patch │ ├── fbgrab │ │ └── cross-compile.patch │ ├── fbi │ │ └── 0001-support-libjpeg8.patch │ ├── libglib │ │ └── disable-ipv6.patch │ ├── libncurses │ │ └── 500-cross.patch │ ├── libnl │ │ └── 001-fixes-limits-include.patch │ ├── libsoup │ │ └── 01-make-sqlite-optional.patch │ ├── libtalloc-make │ │ ├── Makefile │ │ ├── configure │ │ ├── replace.h │ │ └── talloc.pc │ ├── libtermbox-make │ │ ├── Makefile │ │ ├── configure │ │ └── termbox.pc │ ├── libusb │ │ └── configure.patch │ ├── libvncserver │ │ └── 001-automake-compat.patch │ ├── libwebkit │ │ └── fix_2_4_2_errors.patch │ ├── lua │ │ └── 0001-lua-bitwise.patch │ ├── mDNSResponder │ │ └── cflags.patch │ ├── mdnsd │ │ └── 001-fix.patch │ ├── mjpg │ │ └── static_build.patch │ ├── node │ │ └── 0001-uclibc.patch │ ├── nvidia │ │ └── nvidia-minifs-installer.sh │ ├── openssl │ │ └── openssl-1.0.1e-fix_pod_syntax-1.patch │ ├── pam │ │ ├── 0001-Add-support-for-defining-missing-funcitonality.patch │ │ ├── 0002-include_paths_header.patch │ │ └── fix-have-getdomainname.patch │ ├── ppp │ │ └── cross-compile.patch │ ├── pump │ │ └── pump_0.8.24-7.patch │ ├── screen-4.0.3 │ │ ├── 0001-cross-compile.patch │ │ ├── 0002-configure.patch │ │ ├── 0003-sched.patch │ │ ├── 0004-no-stropts.patch │ │ └── 0005-no-utempter.patch │ ├── shairport-sync │ │ └── Makefile │ ├── tmux │ │ └── 120-b64_ntop.patch │ ├── toluapp │ │ └── 0001-makefile.patch │ ├── uclibc │ │ └── pthread_webkit_compat.patch │ ├── urjtag │ │ ├── 00-fix-reg0.patch │ │ └── 01-add-gpio-invert.patch │ ├── wpa-supplicant │ │ └── firmware │ │ │ ├── rt2860.bin │ │ │ └── rt2870.bin │ └── xkbcomp │ │ └── 001-corss-compile.patch ├── rootfs-base │ ├── etc │ │ ├── group │ │ ├── hosts │ │ ├── init.d │ │ │ └── rcS │ │ ├── inittab │ │ ├── mdev.conf │ │ ├── network-up.sh │ │ ├── passwd │ │ ├── resolv.conf │ │ └── shells │ └── usr │ │ └── share │ │ └── udhcpc │ │ └── default.script └── target-tools │ ├── .gitignore │ ├── Makefile │ ├── fat_find.c │ ├── fbtest.c │ ├── i2ctalk.c │ ├── kmem.c │ ├── lib │ └── crc32.c │ ├── spitalk.c │ ├── uboot_env.c │ ├── uboot_env_extract.sh │ └── waitfor_uevent.c └── minifs_build.sh /.gitignore: -------------------------------------------------------------------------------- 1 | download 2 | build-* 3 | toolchain 4 | ._* 5 | .DS_Store 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | minifs -- Compact Linux Distro Generator 2 | ============= 3 | 4 | *minifs* was made to create monolitic linux firmwares, because in a lot of 5 | cases you don't really need "packages" and incremental updates. 6 | 7 | *minifs* download all components tarball, will compile a toolchain for 8 | your target platform, a C library, 9 | a linux kernel, busybox, and every package you might want, then create 10 | a filesystem in either ext, jffs2, or even an initramfs compacted 11 | with a kernel. 12 | 13 | *minifs* makes a root filesystem by the traditional way of using a 14 | "staging" directory to install everything, then selectively copying 15 | items that are wanted, /then/ using a new tool called the *cross linker* 16 | to check what executable really use as libraries, and jetinson everything 17 | else. 18 | 19 | *minifs* has been in almost permanent development for the last few years, 20 | and has been used in multiple projects. It runs on ARM 21 | ([Picfure Frames](https://sites.google.com/site/repurposelinux/df3120), 22 | [mini2440](http://www.andahammer.com/mini244-2/), beagleboard 23 | etc) and on x86 (from the gumstick sized [bifferboard](http://bifferos.co.uk/) 24 | to O2 Joggler, to full fat amd64. 25 | 26 | *minifs* is written in bash. It's pretty easy to extend, and most of the 27 | time adding a package is adding 3 lines to the config file. It has inter-package 28 | dependencies and a few niceties, but it's really made to stay simple and 29 | easy to hack and maintain. -------------------------------------------------------------------------------- /conf/arch/armv4.sh: -------------------------------------------------------------------------------- 1 | 2 | TARGET_META_ARCH=armv4 3 | 4 | TARGET_ARCH=arm 5 | TARGET_FULL_ARCH=$TARGET_ARCH-v4-linux-uclibcgnueabi 6 | TARGET_KERNEL_NAME=uImage 7 | TARGET_LIBC_CFLAGS="-g -O2 -march=armv4t -mtune=arm920t -fPIC" 8 | TARGET_CFLAGS="$TARGET_LIBC_CFLAGS -fPIC" 9 | 10 | -------------------------------------------------------------------------------- /conf/arch/armv4t.sh: -------------------------------------------------------------------------------- 1 | 2 | TARGET_META_ARCH=armv4t 3 | 4 | TARGET_ARCH=arm 5 | TARGET_FULL_ARCH=$TARGET_ARCH-v4t-linux-uclibcgnueabi 6 | TARGET_KERNEL_NAME=uImage 7 | TARGET_CFLAGS="-Os -march=armv4t -mtune=arm920t -mthumb-interwork -mthumb " 8 | 9 | -------------------------------------------------------------------------------- /conf/arch/armv5.sh: -------------------------------------------------------------------------------- 1 | 2 | TARGET_META_ARCH=armv5 3 | 4 | #TARGET_ARCH=arm 5 | #TARGET_FULL_ARCH=$TARGET_ARCH-v5-linux-uclibcgnueabi 6 | TARGET_KERNEL_NAME=uImage 7 | TARGET_LIBC_CFLAGS="-g -O2 -march=armv5te -mtune=arm926ej-s -fPIC -mthumb-interwork" 8 | TARGET_CFLAGS="$TARGET_LIBC_CFLAGS" 9 | -------------------------------------------------------------------------------- /conf/arch/ax0.sh: -------------------------------------------------------------------------------- 1 | 2 | TARGET_META_ARCH=armv7 3 | MINIFS_BOARD_ROLE+=" ax0" 4 | 5 | TARGET_ARCH=arm 6 | TARGET_FULL_ARCH=$TARGET_ARCH-a8-linux-uclibcgnueabi 7 | TARGET_KERNEL_NAME=uImage 8 | TARGET_LIBC_CFLAGS="-g -O2 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -fPIC -mthumb-interwork" 9 | TARGET_CFLAGS="$TARGET_LIBC_CFLAGS" 10 | 11 | ax0-prepare() { 12 | echo SET kernet version 13 | hset linux version "3.16" 14 | hset linux make-extra-parameters "UIMAGE_LOADADDR=0x40008000" 15 | 16 | TARGET_PACKAGES+=" uboot" 17 | hset uboot url "git!https://github.com/jwrdegoede/u-boot-sunxi.git#uboot-sunxi-git.tar.bz2" 18 | hset uboot board "A10-OLinuXino-Lime" 19 | hset uboot target "u-boot-sunxi-with-spl.bin" 20 | } 21 | 22 | 23 | ax0-deploy-sharedlibs() { 24 | deploy-sharedlibs 25 | if [ ! -e "$ROOTFS"/lib/ld-linux.so.3 ]; then 26 | echo " Fixing armhf loader" 27 | ln -sf ld-linux-armhf.so.3 "$ROOTFS"/lib/ld-linux.so.3 28 | fi 29 | mkdir -p "$ROOTFS"/root 30 | } 31 | -------------------------------------------------------------------------------- /conf/arch/mxs.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | . "$CONF_BASE"/arch/armv5.sh 4 | 5 | MINIFS_BOARD_ROLE+=" mxs" 6 | 7 | mxs-set-versions() { 8 | hset linux version "3.14" 9 | } 10 | -------------------------------------------------------------------------------- /conf/arch/omap.sh: -------------------------------------------------------------------------------- 1 | TARGET_META_ARCH=armv7 2 | MINIFS_BOARD_ROLE+=" omap" 3 | 4 | TARGET_ARCH=arm 5 | TARGET_FULL_ARCH=$TARGET_ARCH-a8-linux-uclibcgnueabi 6 | TARGET_KERNEL_NAME=uImage 7 | TARGET_LIBC_CFLAGS="-g -O2 -march=armv7-a -mtune=cortex-a8 -mfpu=neon -fPIC -mthumb-interwork" 8 | TARGET_CFLAGS="$TARGET_LIBC_CFLAGS" 9 | 10 | ax0-prepare() { 11 | echo SET kernet version 12 | hset linux version "3.16" 13 | hset linux make-extra-parameters "UIMAGE_LOADADDR=0x40008000" 14 | 15 | TARGET_PACKAGES+=" uboot" 16 | hset uboot url "git!https://github.com/jwrdegoede/u-boot-sunxi.git#uboot-sunxi-git.tar.bz2" 17 | hset uboot board "A10-OLinuXino-Lime" 18 | hset uboot target "u-boot-sunxi-with-spl.bin" 19 | } 20 | 21 | 22 | omap-deploy-sharedlibs() { 23 | deploy-sharedlibs 24 | if [ ! -e "$ROOTFS"/lib/ld-linux.so.3 ]; then 25 | echo " Fixing armhf loader" 26 | ln -sf ld-linux-armhf.so.3 "$ROOTFS"/lib/ld-linux.so.3 27 | fi 28 | mkdir -p "$ROOTFS"/root 29 | } 30 | -------------------------------------------------------------------------------- /conf/board/atom/gst-plugins-base/examples.patch: -------------------------------------------------------------------------------- 1 | diff -wur gst-plugins-base.orig/tests/examples/seek/seek.c gst-plugins-base/tests/examples/seek/seek.c 2 | --- gst-plugins-base.orig/tests/examples/seek/seek.c 2010-01-04 09:45:47.000000000 +0000 3 | +++ gst-plugins-base/tests/examples/seek/seek.c 2010-03-02 18:14:27.000000000 +0000 4 | @@ -2389,10 +2389,10 @@ 5 | gst_element_set_state (pipeline, GST_STATE_PLAYING); 6 | } 7 | 8 | -#ifdef HAVE_X 9 | - 10 | static gulong embed_xid = 0; 11 | 12 | +#ifdef HAVE_X 13 | + 14 | /* We set the xid here in response to the prepare-xwindow-id message via a 15 | * bus sync handler because we don't know the actual videosink used from the 16 | * start (as we don't know the pipeline, or bin elements such as autovideosink 17 | -------------------------------------------------------------------------------- /conf/board/atom/launch-qemu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | vga=0x37a # 1280x800x32 4 | vga=0x318 # 1024x768x24 5 | 6 | # needs tap0 up 7 | kvm -m 512 \ 8 | -usb -usbdevice mouse -usbdevice keyboard \ 9 | -kernel vmlinuz-bare.bin \ 10 | -vga std -serial stdio \ 11 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 12 | -append "init=/linuxrc console=ttyS0,115200 vga=0x318 root=/dev/sda rw quiet" \ 13 | -hda minifs-full-ext.img 14 | 15 | kvm -m 256 \ 16 | -usb -usbdevice mouse -usbdevice keyboard \ 17 | -kernel vmlinuz-bare.bin \ 18 | -vga std -serial stdio \ 19 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 20 | -append "rdinit=/linuxrc console=ttyS0,115200 vga=0x318 rw quiet" 21 | 22 | kvm -m 32 \ 23 | -kernel vmlinuz-full.bin \ 24 | -vga none -serial stdio \ 25 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 26 | -append "rdinit=/sbin/init console=ttyS0,115200 rw quiet" 27 | 28 | mount /dev/sdh1 /mnt/arm && \ 29 | cp /opt/minifs/build-atom/vmlinuz-full.bin /mnt/arm/vmlinuz && \ 30 | umount /mnt/arm 31 | 32 | 33 | X :0 -dpi 100 -ac -config xorg.conf.new & 34 | X :0 -dpi 100 -ac & 35 | GtkLauncher --display :0 'http://www.tvguide.co.uk/tv_channel_streams.asp?c=16' & 36 | 37 | GtkLauncher --display :0 'http://www.bbc.co.uk/iplayer/' & 38 | 39 | gdbserver :4444 GtkLauncher --display :0 'http://www.tvguide.co.uk/tv_channel_streams.asp?c=16' & 40 | 41 | set solib-absolute-prefix /opt/minifs/build-atom/staging/ 42 | target extended-remote 10.0.0.96:4444 43 | 44 | set solib-absolute-prefix /opt/minifs/build-yuckfan/staging/ 45 | target extended-remote 10.0.0.52:4444 46 | 47 | -------------------------------------------------------------------------------- /conf/board/atom/libmesa.old/0001-imports-Fixes-an-issue-with-uclibc.patch: -------------------------------------------------------------------------------- 1 | From c6af98c6bc68d682e5c4013e1112e222252d2ee2 Mon Sep 17 00:00:00 2001 2 | From: Michel Pollet 3 | Date: Wed, 3 Mar 2010 10:09:59 +0000 4 | Subject: [PATCH 1/1] imports: Fixes an issue with uclibc 5 | 6 | uCLibc can be compiled with _GNU_SOURCE but without locales. 7 | this tries to sort this mess up, it affects only this file 8 | it seems. 9 | 10 | Signed-off-by: Michel Pollet 11 | --- 12 | src/mesa/main/imports.c | 14 ++++++++++++-- 13 | 1 files changed, 12 insertions(+), 2 deletions(-) 14 | 15 | diff --git a/src/mesa/main/imports.c b/src/mesa/main/imports.c 16 | index 56e8195..f7d6025 100644 17 | --- a/src/mesa/main/imports.c 18 | +++ b/src/mesa/main/imports.c 19 | @@ -48,7 +48,17 @@ 20 | #include "context.h" 21 | #include "version.h" 22 | 23 | -#ifdef _GNU_SOURCE 24 | +#if defined(__UCLIBC__) 25 | + #if defined(__UCLIBC_HAS_LOCALE__) 26 | + #define MESA_HAS_LOCALE 1 27 | + #endif 28 | +#else 29 | + #ifdef _GNU_SOURCE 30 | + #define MESA_HAS_LOCALE 1 31 | + #endif 32 | +#endif 33 | + 34 | +#ifdef MESA_HAS_LOCALE 35 | #include 36 | #ifdef __APPLE__ 37 | #include 38 | @@ -799,7 +809,7 @@ _mesa_strdup( const char *s ) 39 | double 40 | _mesa_strtod( const char *s, char **end ) 41 | { 42 | -#ifdef _GNU_SOURCE 43 | +#ifdef MESA_HAS_LOCALE 44 | static locale_t loc = NULL; 45 | if (!loc) { 46 | loc = newlocale(LC_CTYPE_MASK, "C", NULL); 47 | -- 48 | 1.7.0 49 | 50 | -------------------------------------------------------------------------------- /conf/board/atom/libxslt/configure.patch: -------------------------------------------------------------------------------- 1 | diff -ur libusb-0.1.12/config.sub libusb.new/config.sub 2 | --- libusb-0.1.12/config.sub 2004-04-12 03:01:57.000000000 +0100 3 | +++ libusb.new/config.sub 2010-02-20 17:34:19.000000000 +0000 4 | @@ -152,6 +152,10 @@ 5 | os= 6 | basic_machine=$1 7 | ;; 8 | + -uclibc*) 9 | + basic_machine=`echo $1 | sed 's/-.*//' ` 10 | + os=`echo $1 | sed 's/-/ /g'|awk '{print "-" $3}' ` 11 | + ;; 12 | -scout) 13 | ;; 14 | -wrs) 15 | esac 16 | -------------------------------------------------------------------------------- /conf/board/atom/linux-3.0.9/bootsplash_notes.txt: -------------------------------------------------------------------------------- 1 | 2 | Since the patches on www.bootsplash.org are not maintained any more, 3 | i have adapted the original patches to recent kernels: 4 | http://www.uli-eckhardt.de/bootsplash/index.en.shtml 5 | 6 | -------------------------------------------------------------------------------- /conf/board/atom/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | #. "$CONF_BASE"/arch/x86_64.sh 4 | 5 | TARGET_ARCH=x86_64 6 | TARGET_FULL_ARCH=$TARGET_ARCH-atom-linux-gnu 7 | TARGET_KERNEL_NAME=bzImage 8 | TARGET_KERNEL_ARCH=x86_64 9 | #TARGET_CFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" 10 | TARGET_LIBC_CFLAGS="-O2 -march=atom -mssse3 -fomit-frame-pointer -pipe" 11 | TARGET_CFLAGS="$TARGET_LIBC_CFLAGS -fPIC" 12 | 13 | board_set_versions() { 14 | # hset linux version "2.6.38.7" 15 | hset linux version "3.0.9" 16 | TARGET_FS_SQUASH=0 17 | TARGET_SHARED=1 18 | TARGET_X11=1 19 | #TARGET_INITRD=1 20 | } 21 | 22 | board_prepare() { 23 | TARGET_PACKAGES+=" e2fsprogs gdbserver strace" 24 | TARGET_PACKAGES+=" libusb " 25 | 26 | TARGET_PACKAGES+=" curl libexpat libreadline libnetsnmp libgettext " 27 | 28 | # all of that for gtk 29 | TARGET_PACKAGES+=" libjpeg libpng libfreetype libfontconfig libpixman" 30 | 31 | # all of gtk JUST to get rsvg :/ 32 | #TARGET_PACKAGES+=" librsvg" 33 | 34 | TARGET_PACKAGES+=" xorgserver xorginputmouse xorginputkeyboard nvidia" 35 | TARGET_PACKAGES+=" libwebkit" 36 | TARGET_PACKAGES+=" flashplugin alsautils" 37 | 38 | # TARGET_PACKAGES+=" fbgrab" 39 | TARGET_PACKAGES+=" libva-vdpau ffmpeg" 40 | TARGET_PACKAGES+=" gst-plugins-base gst-plugins-good gst-plugins-ugly" 41 | TARGET_PACKAGES+=" vlc" 42 | 43 | TARGET_PACKAGES+=" targettools libarchive" 44 | 45 | TARGET_PACKAGES+=" firmware-rtl" 46 | 47 | hset openssl config "linux-x86_64" 48 | } 49 | 50 | atom-deploy-libgtk() { 51 | deploy-libgtk 52 | mkdir -p "$ROOTFS"/etc/gtk-2.0/ 53 | cp "$CONFIG"/gdk-pixbuf.loaders "$ROOTFS"/etc/gtk-2.0/ 54 | } 55 | -------------------------------------------------------------------------------- /conf/board/atom/rootfs/etc/X11/xorg.conf: -------------------------------------------------------------------------------- 1 | # nvidia-xconfig: X configuration file generated by nvidia-xconfig 2 | # nvidia-xconfig: version 260.19.44 (buildmeister@swio-display-x86-rhel47-04.nvidia.com) Sun Feb 27 21:50:39 PST 2011 3 | 4 | 5 | Section "ServerLayout" 6 | Identifier "Layout0" 7 | Screen 0 "Screen0" 0 0 8 | InputDevice "Keyboard0" "CoreKeyboard" 9 | InputDevice "Mouse0" "CorePointer" 10 | EndSection 11 | 12 | Section "Files" 13 | EndSection 14 | 15 | Section "InputDevice" 16 | # generated from default 17 | Identifier "Mouse0" 18 | Driver "mouse" 19 | Option "Protocol" "auto" 20 | Option "Device" "/dev/input/mice" 21 | Option "Emulate3Buttons" "no" 22 | Option "ZAxisMapping" "4 5" 23 | EndSection 24 | 25 | Section "InputDevice" 26 | # generated from default 27 | Identifier "Keyboard0" 28 | Driver "kbd" 29 | EndSection 30 | 31 | Section "Monitor" 32 | Identifier "Monitor0" 33 | VendorName "Unknown" 34 | ModelName "Unknown" 35 | HorizSync 28.0 - 33.0 36 | VertRefresh 43.0 - 72.0 37 | Option "DPMS" 38 | EndSection 39 | 40 | Section "Device" 41 | Identifier "Device0" 42 | Driver "nvidia" 43 | VendorName "NVIDIA Corporation" 44 | EndSection 45 | 46 | Section "Screen" 47 | Identifier "Screen0" 48 | Device "Device0" 49 | Monitor "Monitor0" 50 | DefaultDepth 24 51 | SubSection "Display" 52 | Depth 24 53 | Modes "1280x720" 54 | EndSubSection 55 | EndSection 56 | 57 | -------------------------------------------------------------------------------- /conf/board/atom/rootfs/etc/asound.conf: -------------------------------------------------------------------------------- 1 | pcm.main { 2 | type hw 3 | card NVidia 4 | device 7 5 | } 6 | ctl.!default { 7 | type hw 8 | card NVidia 9 | } 10 | 11 | pcm.softvol { 12 | type softvol 13 | slave.pcm "main" 14 | control.name "Master" 15 | control.card NVidia 16 | } 17 | pcm.mute { 18 | type softvol 19 | slave.pcm "softvol" 20 | control.name "Mute" 21 | control.card NVidia 22 | resolution 2 23 | } 24 | 25 | pcm.!default { 26 | type plug 27 | slave.pcm "mute" 28 | } 29 | -------------------------------------------------------------------------------- /conf/board/atom/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t devtmpfs devtmpfs /dev 6 | mount -t sysfs none /sys 7 | mkdir /dev/pts /dev/shm 8 | mount -t devpts devpts /dev/pts 9 | mount -t tmpfs none /dev/shm 10 | # MOUNT FS -- do not delete this line 11 | mount / / -o remount,noatime >/dev/null 2>&1 12 | 13 | echo "* Starting system loggers..." 14 | syslogd -C16 15 | klogd 16 | 17 | echo /sbin/mdev >/proc/sys/kernel/hotplug 18 | # LOAD MODULES -- do not delete this line 19 | echo "* Creating devices..." 20 | /sbin/mdev -s 21 | 22 | echo -n "* Setting hostname: " 23 | hostname $(cat /etc/hostname) && hostname 24 | 25 | echo "* Configuring loopback interface..." 26 | ifconfig lo 127.0.0.1 up 27 | 28 | up=$(ifconfig eth0|grep addr:) 29 | if [ "$up" != "" ]; then 30 | echo "* eth0:$up" 31 | else 32 | echo "* Configuring network ..." 33 | brctl addbr br0 34 | brctl setfd br0 0 35 | brctl addif br0 eth0 36 | ifconfig eth0 up 37 | ifconfig br0 up 38 | udhcpc -b -T 1 -i br0 & 39 | fi 40 | 41 | # LAUNCH APPS -- do not delete this line 42 | if [ -f /etc/dropbear/dropbear_dss_host_key ]; then 43 | echo "* Starting dropbear..." 44 | dropbear 45 | else 46 | echo "* Starting telnetd..." 47 | telnetd -l /bin/sh 48 | fi 49 | -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-gnu.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-gnu.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-gnu.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-gnu.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-i586-atom-linux-gnu.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/df311e82a1a24c41a75c2c930223552e-i586-atom-linux-gnu.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-gnu.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-gnu.cache-3 -------------------------------------------------------------------------------- /conf/board/atom/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/atom/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/beagle/config_uclibc.conf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/config_uclibc.conf -------------------------------------------------------------------------------- /conf/board/beagle/gst-plugins-base/examples.patch: -------------------------------------------------------------------------------- 1 | diff -wur gst-plugins-base.orig/tests/examples/seek/seek.c gst-plugins-base/tests/examples/seek/seek.c 2 | --- gst-plugins-base.orig/tests/examples/seek/seek.c 2010-01-04 09:45:47.000000000 +0000 3 | +++ gst-plugins-base/tests/examples/seek/seek.c 2010-03-02 18:14:27.000000000 +0000 4 | @@ -2389,10 +2389,10 @@ 5 | gst_element_set_state (pipeline, GST_STATE_PLAYING); 6 | } 7 | 8 | -#ifdef HAVE_X 9 | - 10 | static gulong embed_xid = 0; 11 | 12 | +#ifdef HAVE_X 13 | + 14 | /* We set the xid here in response to the prepare-xwindow-id message via a 15 | * bus sync handler because we don't know the actual videosink used from the 16 | * start (as we don't know the pipeline, or bin elements such as autovideosink 17 | -------------------------------------------------------------------------------- /conf/board/beagle/launch-qemu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | vga=0x37a # 1280x800x32 4 | 5 | # needs tap0 up 6 | kvm -m 256 \ 7 | -usb -usbdevice mouse -usbdevice keyboard \ 8 | -kernel vmlinuz-bare.bin \ 9 | -vga std -serial stdio \ 10 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 11 | -append "init=/linuxrc console=ttyS0,115200 vga=0x318 root=/dev/sda rw quiet" \ 12 | -hda minifs-full-ext.img 13 | 14 | kvm -m 256 \ 15 | -usb -usbdevice mouse -usbdevice keyboard \ 16 | -kernel vmlinuz-bare.bin \ 17 | -vga std -serial stdio \ 18 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 19 | -append "rdinit=/linuxrc console=ttyS0,115200 vga=0x318 rw quiet" 20 | 21 | kvm -m 32 \ 22 | -kernel vmlinuz-full.bin \ 23 | -vga none -serial stdio \ 24 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 25 | -append "rdinit=/sbin/init console=ttyS0,115200 rw quiet" 26 | 27 | mount /dev/sdh1 /mnt/arm && \ 28 | cp /opt/minifs/build-atom/vmlinuz-full.bin /mnt/arm/vmlinuz && \ 29 | umount /mnt/arm 30 | 31 | 32 | X :0 -dpi 100 -ac -config xorg.conf.new & 33 | X :0 -dpi 100 -ac & 34 | GtkLauncher --display :0 'http://www.tvguide.co.uk/tv_channel_streams.asp?c=16' & 35 | 36 | gdbserver :4444 GtkLauncher --display :0 'http://www.tvguide.co.uk/tv_channel_streams.asp?c=16' & 37 | 38 | set solib-absolute-prefix /opt/minifs/build-atom/staging/ 39 | target extended-remote 10.0.0.96:4444 40 | 41 | set solib-absolute-prefix /opt/minifs/build-yuckfan/staging/ 42 | target extended-remote 10.0.0.52:4444 43 | 44 | -------------------------------------------------------------------------------- /conf/board/beagle/libxslt/configure.patch: -------------------------------------------------------------------------------- 1 | diff -ur libusb-0.1.12/config.sub libusb.new/config.sub 2 | --- libusb-0.1.12/config.sub 2004-04-12 03:01:57.000000000 +0100 3 | +++ libusb.new/config.sub 2010-02-20 17:34:19.000000000 +0000 4 | @@ -152,6 +152,10 @@ 5 | os= 6 | basic_machine=$1 7 | ;; 8 | + -uclibc*) 9 | + basic_machine=`echo $1 | sed 's/-.*//' ` 10 | + os=`echo $1 | sed 's/-/ /g'|awk '{print "-" $3}' ` 11 | + ;; 12 | -scout) 13 | ;; 14 | -wrs) 15 | esac 16 | -------------------------------------------------------------------------------- /conf/board/beagle/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TARGET_ARCH=arm 4 | TARGET_FULL_ARCH=$TARGET_ARCH-cortexa8-linux-gnueabi 5 | TARGET_KERNEL_NAME=uImage 6 | TARGET_KERNEL_ARCH=arm 7 | TARGET_CFLAGS="-O2 -mcpu=cortex-a8 -mfpu=neon -fPIC -ftree-vectorize -mfloat-abi=soft -fsingle-precision-constant -pipe" 8 | 9 | board_set_versions() { 10 | hset linux version "2.6.35.6" 11 | TARGET_FS_SQUASH=0 12 | TARGET_FS_EXT_SIZE=262144 13 | TARGET_SHARED=1 14 | #TARGET_DIRECTFB=0 15 | TARGET_X11=1 16 | #TARGET_INITRD=1 17 | } 18 | 19 | board_prepare() { 20 | TARGET_PACKAGES+=" e2fsprogs gdbserver strace" 21 | TARGET_PACKAGES+=" libusb usbutils" 22 | 23 | TARGET_PACKAGES+=" curl libexpat libreadline libnetsnmp libgettext hotplug2" 24 | 25 | # all of that for gtk 26 | TARGET_PACKAGES+=" libjpeg libpng libfreetype libfontconfig libpixman" 27 | TARGET_PACKAGES+=" libts $DIRECTFB_PACKAGE" 28 | 29 | # all of gtk JUST to get rsvg :/ 30 | TARGET_PACKAGES+=" librsvg" 31 | 32 | TARGET_PACKAGES+=" xorgserver" 33 | TARGET_PACKAGES+=" libwebkit" 34 | } 35 | -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/etc/ssl/certs/ca-certificates: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/rootfs/etc/ssl/certs/ca-certificates -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/etc/xserver-start.sh: -------------------------------------------------------------------------------- 1 | 2 | Xfbdev :0 -mouse mouse -keybd keyboard -dpi 100 -rgba rgb 3 | export WEBKIT_DEBUG=1 4 | GtkLauncher --display :0 http://www.tvguide.co.uk/tv_channel_streams.asp\?c=16 & 5 | 6 | 7 | X :0 -dpi 100 -ac -config xorg.conf.new & -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/rootfs/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/var/cache/fontconfig/eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/rootfs/var/cache/fontconfig/eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/beagle/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/beagle/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/biff/linux/0001-block-device-precedence.patch: -------------------------------------------------------------------------------- 1 | From 57eb5e504d9ad30ebc1a006a32bd401b617b14c8 Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Sun, 6 Dec 2009 18:26:05 +0000 4 | Subject: [PATCH 01/14] block device precedence 5 | 6 | --- 7 | init/do_mounts.c | 5 +++++ 8 | 1 files changed, 5 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/init/do_mounts.c b/init/do_mounts.c 11 | index bb008d0..5d675d1 100644 12 | --- a/init/do_mounts.c 13 | +++ b/init/do_mounts.c 14 | @@ -353,10 +353,15 @@ void __init mount_root(void) 15 | change_floppy("root floppy"); 16 | } 17 | #endif 18 | +/* Biff: Maybe INITRD should take precedence over other root devices if 19 | + configured? 20 | +*/ 21 | +#ifndef CONFIG_BLK_DEV_INITRD 22 | #ifdef CONFIG_BLOCK 23 | create_dev("/dev/root", ROOT_DEV); 24 | mount_block_root("/dev/root", root_mountflags); 25 | #endif 26 | +#endif 27 | } 28 | 29 | /* 30 | -- 31 | 1.6.4 32 | 33 | -------------------------------------------------------------------------------- /conf/board/biff/linux/0002-single-NIC.patch: -------------------------------------------------------------------------------- 1 | From a1d1f8f0b96e21077780be6204bb362e87721858 Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Sun, 6 Dec 2009 18:26:41 +0000 4 | Subject: [PATCH 02/14] single NIC 5 | 6 | --- 7 | drivers/net/r6040.c | 2 ++ 8 | 1 files changed, 2 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/drivers/net/r6040.c b/drivers/net/r6040.c 11 | index 8b14c6e..2d7e45c 100644 12 | --- a/drivers/net/r6040.c 13 | +++ b/drivers/net/r6040.c 14 | @@ -1085,6 +1085,8 @@ static int __devinit r6040_init_one(struct pci_dev *pdev, 15 | int bar = 0; 16 | u16 *adrp; 17 | 18 | + if (!card_idx) return 0; // no 2nd nic for Bifferboard 19 | + 20 | printk("%s\n", version); 21 | 22 | err = pci_enable_device(pdev); 23 | -- 24 | 1.6.4 25 | 26 | -------------------------------------------------------------------------------- /conf/board/biff/linux/0003-kexec-fix.patch: -------------------------------------------------------------------------------- 1 | From 357954613bdbab0c1f3986589ff30cc4855a2efd Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Sun, 6 Dec 2009 18:26:43 +0000 4 | Subject: [PATCH 03/14] kexec fix 5 | 6 | --- 7 | arch/x86/kernel/relocate_kernel_32.S | 6 ++++++ 8 | 1 files changed, 6 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/arch/x86/kernel/relocate_kernel_32.S b/arch/x86/kernel/relocate_kernel_32.S 11 | index 4123553..f5a44d2 100644 12 | --- a/arch/x86/kernel/relocate_kernel_32.S 13 | +++ b/arch/x86/kernel/relocate_kernel_32.S 14 | @@ -54,8 +54,10 @@ relocate_kernel: 15 | movl %eax, CR0(%edi) 16 | movl %cr3, %eax 17 | movl %eax, CR3(%edi) 18 | +#ifndef CONFIG_X86_RDC321X 19 | movl %cr4, %eax 20 | movl %eax, CR4(%edi) 21 | +#endif 22 | 23 | /* read the arguments and say goodbye to the stack */ 24 | movl 20+4(%esp), %ebx /* page_list */ 25 | @@ -122,7 +124,9 @@ identity_mapped: 26 | * Setting everything to zero seems safe. 27 | */ 28 | xorl %eax, %eax 29 | +#ifndef CONFIG_X86_RDC321X 30 | movl %eax, %cr4 31 | +#endif 32 | 33 | jmp 1f 34 | 1: 35 | @@ -193,8 +197,10 @@ identity_mapped: 36 | ret 37 | 38 | virtual_mapped: 39 | +#ifndef CONFIG_X86_RDC321X 40 | movl CR4(%edi), %eax 41 | movl %eax, %cr4 42 | +#endif 43 | movl CR3(%edi), %eax 44 | movl %eax, %cr3 45 | movl CR0(%edi), %eax 46 | -- 47 | 1.6.4 48 | 49 | -------------------------------------------------------------------------------- /conf/board/biff/linux/0004-missing-cpuid-instruction.patch: -------------------------------------------------------------------------------- 1 | From ef3c5cf2cf9762cc412194d82e6d742c5faa7586 Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Sun, 6 Dec 2009 18:26:44 +0000 4 | Subject: [PATCH 04/14] missing cpuid instruction 5 | 6 | --- 7 | arch/x86/include/asm/virtext.h | 4 ++++ 8 | 1 files changed, 4 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/arch/x86/include/asm/virtext.h b/arch/x86/include/asm/virtext.h 11 | index e0f9aa1..98af57f 100644 12 | --- a/arch/x86/include/asm/virtext.h 13 | +++ b/arch/x86/include/asm/virtext.h 14 | @@ -27,8 +27,12 @@ 15 | 16 | static inline int cpu_has_vmx(void) 17 | { 18 | +#ifdef CONFIG_X86_RDC321X 19 | + return 0; 20 | +#else 21 | unsigned long ecx = cpuid_ecx(1); 22 | return test_bit(5, &ecx); /* CPUID.1:ECX.VMX[bit 5] -> VT */ 23 | +#endif 24 | } 25 | 26 | 27 | -- 28 | 1.6.4 29 | 30 | -------------------------------------------------------------------------------- /conf/board/biff/linux/0005-boot-without-FPU.patch: -------------------------------------------------------------------------------- 1 | From 5a48e2f78181bff7065e8383ecf32ef1ddad403c Mon Sep 17 00:00:00 2001 2 | From: root 3 | Date: Sun, 6 Dec 2009 18:26:45 +0000 4 | Subject: [PATCH 05/14] boot without FPU 5 | 6 | --- 7 | arch/x86/kernel/cpu/bugs.c | 5 +++-- 8 | 1 files changed, 3 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c 11 | index 01a2652..632476d 100644 12 | --- a/arch/x86/kernel/cpu/bugs.c 13 | +++ b/arch/x86/kernel/cpu/bugs.c 14 | @@ -55,8 +55,9 @@ static void __init check_fpu(void) 15 | if (!boot_cpu_data.hard_math) { 16 | #ifndef CONFIG_MATH_EMULATION 17 | printk(KERN_EMERG "No coprocessor found and no math emulation present.\n"); 18 | - printk(KERN_EMERG "Giving up.\n"); 19 | - for (;;) ; 20 | +// Biff: Without math emu we can continue here and get a boot. 21 | +// printk(KERN_EMERG "Giving up.\n"); 22 | +// for (;;) ; 23 | #endif 24 | return; 25 | } 26 | -- 27 | 1.6.4 28 | 29 | -------------------------------------------------------------------------------- /conf/board/biff/linux/0014-pit-tick-rate.patch: -------------------------------------------------------------------------------- 1 | --- linux/include/linux/timex.h 2009-12-27 14:31:00.550030859 +0000 2 | +++ linux/include/linux/timex.h 2009-12-27 14:32:20.517019232 +0000 3 | @@ -281,7 +281,11 @@ extern int do_adjtimex(struct timex *); 4 | int read_current_timer(unsigned long *timer_val); 5 | 6 | /* The clock frequency of the i8253/i8254 PIT */ 7 | +#ifdef CONFIG_X86_RDC321X 8 | +#define PIT_TICK_RATE 1041816ul 9 | +#else 10 | #define PIT_TICK_RATE 1193182ul 11 | +#endif 12 | 13 | #endif /* KERNEL */ 14 | 15 | -------------------------------------------------------------------------------- /conf/board/biff/minifs-script.sh: -------------------------------------------------------------------------------- 1 | 2 | TARGET_ARCH=i486 3 | TARGET_FULL_ARCH=$TARGET_ARCH-biff-linux-uclibc 4 | TARGET_KERNEL_NAME=bzImage 5 | TARGET_KERNEL_ARCH=x86 6 | TARGET_CFLAGS="-Os -march=i486" 7 | TARGET_INITRD=1 8 | 9 | board_prepare() 10 | { 11 | TARGET_PACKAGES+=" libjpeg mjpg libusb libftdi" 12 | if [ -d $HOME/Sources/Utils/sensors ]; then 13 | TARGET_PACKAGES+=" sensors" 14 | fi 15 | } 16 | -------------------------------------------------------------------------------- /conf/board/df3120/make_sdcard.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | exit 3 | 4 | dd if=/opt/minifs/build-df3120/minifs-full-ext.img of=/dev/sdg1 bs=4M 5 | 6 | ifconfig usb0 172.16.61.2 netmask 255.255.255.0 up 7 | 8 | cat /proc/meminfo 9 | -------------------------------------------------------------------------------- /conf/board/df3120/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Xvnc :99 -ac -geometry 320x240 -depth 16 -AlwaysShared -SecurityTypes None 4 | 5 | . "$CONF_BASE"/arch/armv4t.sh 6 | 7 | board_set_versions() { 8 | hset linux version "2.6.36.3" 9 | TARGET_FS_SQUASH=0 10 | TARGET_INITRD=0 11 | TARGET_SHARED=1 12 | TARGET_FS_EXT_SIZE=16384 13 | 14 | hset uboot url "git!git://repo.or.cz/u-boot-openmoko/parrot-frames.git#uboot-df3120-git.tar.bz2" 15 | } 16 | 17 | board_prepare() { 18 | TARGET_PACKAGES+=" strace gdbserver libvncserver picocom uboot" 19 | TARGET_PACKAGES+=" bluez cwiid libsdl" 20 | TARGET_PACKAGES+=" sdlplasma sdlvoxel" 21 | TARGET_PACKAGES+=" kobodeluxe" 22 | TARGET_PACKAGES+=" sdldoom" 23 | TARGET_PACKAGES+=" fbvncslave" 24 | TARGET_PACKAGES+=" plftool" 25 | hset dbus deploy false 26 | } 27 | 28 | df3120-deploy-linux-bare() { 29 | deploy-linux-bare 30 | cp "$BUILD"/kernel.ub "$ROOTFS"/linux 31 | } 32 | 33 | df3120-deploy-uboot() { 34 | # make sure the u-boot is aligned on 512 blocks, for mtd_debug 35 | deploy dd if=u-boot.bin of="$ROOTFS"/u-boot.bin bs=512 conv=sync 36 | } 37 | -------------------------------------------------------------------------------- /conf/board/df3120/packages/85extras.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" fbvncslave" 3 | hset fbvncslave url "none" 4 | hset fbvncslave dir "." 5 | hset fbvncslave depends "libvncserver" 6 | 7 | configure-fbvncslave() { 8 | configure echo Done 9 | } 10 | compile-fbvncslave() { 11 | compile echo Done 12 | } 13 | install-fbvncslave() { 14 | log_install $GCC $CPPFLAGS $CFLAGS -std=gnu99 \ 15 | -Wall \ 16 | "$CONFIG"/fbvncslave.c \ 17 | -o "$STAGING_USR"/bin/fbvncslave $LDFLAGS_RLINK \ 18 | -lvncclient -ljpeg -lz 19 | } 20 | deploy-fbvncslave() { 21 | deploy cp "$STAGING_USR"/bin/fbvncslave "$ROOTFS"/usr/bin/ 22 | } 23 | 24 | PACKAGES+=" plftool" 25 | hset plftool url "git!http://oomz.net/git/df3120/plftool.git#plftool-df3120-git.tar.bz2" 26 | hset plftool depends "uboot" 27 | 28 | configure-plftool() { 29 | configure echo Done 30 | } 31 | compile-plftool-local() { 32 | ( export PATH="$BASE_PATH" 33 | unset CC CXX GCC LD CFLAGS CXXFLAGS CPPFLAGS LDFLAGS ACLOCAL ; 34 | unset PKG_CONFIG_PATH PKG_CONFIG_LIBDIR LD_LIBRARY_PATH ; 35 | make 36 | ) 37 | } 38 | compile-plftool() { 39 | compile compile-plftool-local 40 | } 41 | install-plftool() { 42 | log_install echo Done 43 | } 44 | deploy-plftool() { 45 | deploy ./pack_uboot.sh df3120 ../uboot/u-boot.bin ../parrotDF3120.plf 46 | } 47 | -------------------------------------------------------------------------------- /conf/board/df3120/rootfs/etc/cwiid/wminput/buttons2: -------------------------------------------------------------------------------- 1 | #buttons2 2 | 3 | Wiimote.A = BTN_LEFT 4 | Wiimote.B = BTN_RIGHT 5 | Wiimote.Up = KEY_LEFT 6 | Wiimote.Down = KEY_RIGHT 7 | Wiimote.Left = KEY_DOWN 8 | Wiimote.Right = KEY_UP 9 | Wiimote.Minus = KEY_BACK 10 | Wiimote.Plus = KEY_FORWARD 11 | Wiimote.Home = KEY_ESC 12 | Wiimote.1 = BTN_A 13 | Wiimote.2 = KEY_RIGHTCTRL 14 | 15 | Nunchuk.C = BTN_LEFT 16 | Nunchuk.Z = BTN_RIGHT 17 | 18 | Classic.Up = KEY_UP 19 | Classic.Down = KEY_DOWN 20 | Classic.Left = KEY_LEFT 21 | Classic.Right = KEY_RIGHT 22 | Classic.Minus = KEY_BACK 23 | Classic.Plus = KEY_FORWARD 24 | Classic.Home = KEY_HOME 25 | Classic.A = BTN_LEFT 26 | Classic.B = BTN_RIGHT 27 | #Classic.X = 28 | #Classic.Y = 29 | #Classic.ZL = 30 | #Classic.ZR = 31 | #Classic.L = 32 | #Classic.R = 33 | -------------------------------------------------------------------------------- /conf/board/df3120/rootfs/etc/cwiid/wminput/kobodl: -------------------------------------------------------------------------------- 1 | # 2 | # Simple wminput configuration for kobodl. 3 | # Use the wiimote and/or classic controller as a gamepad. 4 | # 5 | # Copyright (C) 2008 The GameCube Linux Team 6 | # Copyright (C) 2008 Albert Herranz 7 | # 8 | 9 | #!wminput_sdl_joystick_wrapper 10 | # SDL_LINUX_JOYSTICK::axis=2 11 | # SDL_LINUX_JOYSTICK::hats=4 12 | # SDL_LINUX_JOYSTICK::balls=0 13 | 14 | Classic.LStick.X = ABS_X 15 | Classic.LStick.Y = -ABS_Y 16 | Classic.Dpad.X = ABS_HAT1X 17 | Classic.Dpad.Y = -ABS_HAT1Y 18 | 19 | Wiimote.Dpad.X = -ABS_HAT0Y 20 | Wiimote.Dpad.Y = -ABS_HAT0X 21 | 22 | Classic.A = BTN_A 23 | Classic.B = BTN_B 24 | Classic.X = BTN_X 25 | Classic.Y = BTN_Y 26 | Classic.ZR = BTN_Z 27 | Classic.L = BTN_TL 28 | Classic.R = BTN_TR 29 | Classic.Home = BTN_START 30 | 31 | Wiimote.2 = BTN_A 32 | Wiimote.1 = BTN_B 33 | Wiimote.Home = BTN_START 34 | 35 | -------------------------------------------------------------------------------- /conf/board/df3120/rootfs/etc/cwiid/wminput/kobodldf3120: -------------------------------------------------------------------------------- 1 | #kobodldf3120 2 | include buttons2 3 | 4 | Plugin.acc.X = REL_X 5 | Plugin.acc.Y = REL_Y 6 | -------------------------------------------------------------------------------- /conf/board/df3120/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | echo 2 >/proc/cpu/alignment 6 | mount -t sysfs none /sys 7 | mkdir -p /dev/pts dev/shm 8 | mount -t devpts devpts /dev/pts 9 | mount -t tmpfs none /dev/shm 10 | mount / / -o remount,noatime,commit=20 >/dev/null 2>&1 11 | 12 | # echo "* Starting system loggers..." 13 | syslogd -C16 14 | klogd 15 | 16 | # LOAD MODULES -- do not delete this line 17 | echo "* Creating devices..." 18 | /sbin/mdev -s 19 | 20 | echo "* Network usb0 172.16.61.1/24" 21 | ifconfig lo 127.0.0.1 up 22 | ifconfig usb0 172.16.61.1 netmask 255.255.255.0 up 23 | 24 | echo "* Starting telnetd..." 25 | telnetd -l /bin/sh 26 | 27 | echo "* Starting Bluetooth" 28 | hciattach -s 115200 /dev/ttySAC0 bcm2035 921600 flow 00:00:00:00:00 >/dev/null 2>&1 29 | hciconfig hci0 up 30 | 31 | #echo "* Starting PAN connection" 32 | #pand -c 00:11:F6:06:8B:AD 33 | #sleep 1 34 | #ifconfig bnep0 192.168.1.2 35 | 36 | # Disable console blanking 37 | printf "\e[9;0]" >/dev/tty0 38 | -------------------------------------------------------------------------------- /conf/board/df3120/rootfs/etc/inittab: -------------------------------------------------------------------------------- 1 | 2 | ::sysinit:/etc/init.d/rcS 3 | #::respawn:/bin/sh 4 | #::respawn:/sbin/getty -L ttyS0 115200 vt100 5 | ttySAC2::askfirst:-/bin/hush 6 | ::restart:/sbin/init 7 | ::shutdown:/bin/umount -a -r 8 | -------------------------------------------------------------------------------- /conf/board/imx233/linux/0002-spidev-Make-OF-compatible.patch: -------------------------------------------------------------------------------- 1 | From ff520054f92e1580303fd4c1146636ecae348236 Mon Sep 17 00:00:00 2001 2 | From: Michel Pollet 3 | Date: Wed, 28 Nov 2012 16:00:45 +0000 4 | Subject: [PATCH] spidev: Make OF compatible 5 | 6 | Add the OF property table to allow the driver 7 | to be instantiated from a .dts device tree 8 | 9 | Signed-off-by: Michel Pollet 10 | --- 11 | drivers/spi/spidev.c | 3 +++ 12 | 1 file changed, 3 insertions(+) 13 | 14 | diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c 15 | index 0332edd..db06e87 100644 16 | --- a/drivers/spi/spidev.c 17 | +++ b/drivers/spi/spidev.c 18 | @@ -24,6 +24,8 @@ 19 | #include 20 | #include 21 | #include 22 | +#include 23 | +#include 24 | #include 25 | #include 26 | #include 27 | @@ -685,6 +687,7 @@ static int spidev_remove(struct spi_device *spi) 28 | 29 | static const struct of_device_id spidev_dt_ids[] = { 30 | { .compatible = "rohm,dh2228fv" }, 31 | + { .compatible = "spidev", }, 32 | {}, 33 | }; 34 | 35 | -- 36 | 1.8.4.3 37 | 38 | -------------------------------------------------------------------------------- /conf/board/imx233/linux/0006-UCLIBC-fixfor<=0.33.2.patch: -------------------------------------------------------------------------------- 1 | From 661db7afeec44e762ea7b33cf2d88a2d55e3b321 Mon Sep 17 00:00:00 2001 2 | From: Michel Pollet 3 | Date: Tue, 10 Dec 2013 14:22:57 +0000 4 | Subject: [PATCH] UCLIBC fix for <= 0.33.2 5 | 6 | This is needed for uclibc to compile 7 | 8 | Signed-off-by: Michel Pollet 9 | --- 10 | include/uapi/linux/netlink.h | 2 ++ 11 | 1 file changed, 2 insertions(+) 12 | 13 | diff --git a/include/uapi/linux/netlink.h b/include/uapi/linux/netlink.h 14 | index 1a85940..490fd32 100644 15 | --- a/include/uapi/linux/netlink.h 16 | +++ b/include/uapi/linux/netlink.h 17 | @@ -1,7 +1,9 @@ 18 | #ifndef _UAPI__LINUX_NETLINK_H 19 | #define _UAPI__LINUX_NETLINK_H 20 | 21 | +#ifdef CONFIG_BREAK_UCLIBC 22 | #include 23 | +#endif 24 | #include /* for __kernel_sa_family_t */ 25 | #include 26 | 27 | -- 28 | 1.8.4.3 29 | 30 | -------------------------------------------------------------------------------- /conf/board/imx233/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . "$CONF_BASE"/arch/mxs.sh 4 | 5 | TARGET_KERNEL_NAME=zImage 6 | 7 | # this file .dts must exist either in this directory (board) 8 | # or in the linux arch/$TARGET_ARCH/boot/dts/ 9 | TARGET_KERNEL_DTB=${TARGET_KERNEL_DTB:-imx23-olinuxino} 10 | TARGET_KERNEL_CMDLINE=${TARGET_KERNEL_CMDLINE:-"console=ttyAMA0,115200 root=/dev/mmcblk0p2 ro rootwait ssp1=mmc quiet"} 11 | 12 | board_set_versions() { 13 | mxs-set-versions 14 | TARGET_FS_SQUASH=0 15 | TARGET_FS_EXT2=1 16 | TARGET_SHARED=1 17 | } 18 | 19 | board_prepare() { 20 | TARGET_PACKAGES+=" gdbserver strace" 21 | TARGET_PACKAGES+=" curl wpa-supplicant wireless-tools" 22 | TARGET_PACKAGES+=" firmware-rtl firmware-ralink" 23 | TARGET_PACKAGES+=" openssh sshfs" 24 | 25 | TARGET_PACKAGES+=" targettools" 26 | TARGET_PACKAGES+=" kexec-tools" 27 | 28 | TARGET_PACKAGES+=" linux-dtb elftosb" 29 | # TARGET_PACKAGES+=" libsdl sdlvoxel sdlplasma libpng libsdlimage kobodeluxe mplayer" 30 | # TARGET_PACKAGES+=" font-bitstream-vera rrdtool" 31 | } 32 | 33 | imx233-deploy-sharedlibs() { 34 | deploy-sharedlibs 35 | mkdir -p "$ROOTFS"/rw 36 | } 37 | 38 | 39 | bard_local() { 40 | # how to use kexec from the board to launch a new kernel 41 | tftp -g -r linux -l /tmp//linux 192.168.2.129 && kexec --append="$(cat /proc/cmdline)" --force /tmp/linux 42 | tftp -g -r linux -l /tmp/linux 192.168.2.129 && kexec --append="console=ttyAMA0,115200 root=/dev/mmcblk0p2 ro rootwait ssp1=mmc" --force --no-ifdown /tmp/linux 43 | 44 | # how to launch this in qemu 45 | ./arm-softmmu/qemu-system-arm -M imx233o -m 64M -kernel /opt/minifs/build-imx233/vmlinuz-bare.dtb -monitor telnet::4444,server,nowait -serial stdio -display none -sd /opt/olimex/basic.img -usb -snapshot 46 | } 47 | -------------------------------------------------------------------------------- /conf/board/imx233/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t sysfs none /sys 6 | mkdir -p /dev/pts /dev/shm 7 | mount -t devpts devpts /dev/pts 8 | mount -t tmpfs none /dev/shm 9 | # MOUNT FS -- do not delete this line 10 | mount / / -o remount,noatime >/dev/null 2>&1 11 | 12 | echo "* Starting system loggers..." 13 | syslogd -C16 14 | klogd 15 | 16 | echo /sbin/mdev >/proc/sys/kernel/hotplug 17 | # LOAD MODULES -- do not delete this line 18 | echo "* Creating devices..." 19 | /sbin/mdev -s 20 | 21 | echo -n "* Setting hostname: " 22 | hostname $(cat /etc/hostname) && hostname 23 | 24 | echo "* Configuring loopback interface..." 25 | ifconfig lo 127.0.0.1 up 26 | 27 | up=$(ifconfig eth0|grep addr:) 28 | if [ "$up" != "" ]; then 29 | echo "* eth0:$up" 30 | else 31 | echo "* Configuring network with DHCP..." 32 | # pr1me computer MAC 33 | ifconfig eth0 hw ether 08:00:2f:01:00:01 34 | ifconfig eth0 up 35 | udhcpc -b -T 1 36 | fi 37 | 38 | # LAUNCH APPS -- do not delete this line 39 | if [ -f /etc/dropbear/dropbear_dss_host_key ]; then 40 | echo "* Starting dropbear..." 41 | dropbear 42 | else 43 | echo "* Starting telnetd..." 44 | telnetd -l /bin/sh 45 | fi 46 | -------------------------------------------------------------------------------- /conf/board/imx28/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . "$CONF_BASE"/arch/mxs.sh 4 | 5 | # this file .dts must exist either in this directory (board) 6 | # or in the linux arch/$TARGET_ARCH/boot/dts/ 7 | 8 | TARGET_KERNEL_DTB=${TARGET_KERNEL_DTB:-imx28-evk} 9 | TARGET_KERNEL_CMDLINE=${TARGET_KERNEL_CMDLINE:-"console=ttyAMA0,115200 root=/dev/mmcblk0p2 ro rootwait ssp1=mmc quiet"} 10 | 11 | board_set_versions() { 12 | mxs-set-versions 13 | TARGET_FS_SQUASH=0 14 | TARGET_FS_EXT2=1 15 | TARGET_SHARED=1 16 | } 17 | 18 | board_prepare() { 19 | TARGET_PACKAGES+=" gdbserver strace" 20 | TARGET_PACKAGES+=" curl" 21 | TARGET_PACKAGES+=" openssh sshfs" 22 | 23 | TARGET_PACKAGES+=" targettools i2c" 24 | TARGET_PACKAGES+=" kexec-tools" 25 | 26 | TARGET_PACKAGES+=" linux-dtb elftosb" 27 | 28 | hset uboot url "git!git://git.denx.de/u-boot.git#uboot-imx28-git.tar.bz2" 29 | hset uboot target "u-boot.sb" 30 | hset uboot board "mx28evk" 31 | 32 | hset elftosb board "iMX28_EVK" 33 | 34 | } 35 | 36 | imx28-deploy-linux-dtb() { 37 | deploy-linux-dtb 38 | if [ -f $BUILD/kernel.ub ]; then 39 | cp $BUILD/kernel.ub $ROOTFS/linux 40 | fi 41 | if [ -f $BUILD/$TARGET_KERNEL_DTB.dtb ]; then 42 | cp $BUILD/$TARGET_KERNEL_DTB.dtb $ROOTFS/linux.dtb 43 | fi 44 | } 45 | 46 | imx28-compile-uboot() { 47 | compile-uboot && 48 | tools/mxsboot sd u-boot.sb ../u-boot.sd 49 | } 50 | 51 | board_local() { 52 | # how to use kexec from the board to launch a new kernel 53 | tftp -g -r linux -l /tmp//linux 192.168.2.129 && kexec --append="$(cat /proc/cmdline)" --force /tmp/linux 54 | tftp -g -r linux -l /tmp/linux 192.168.2.129 && kexec --append="console=ttyAMA0,115200 root=/dev/mmcblk0p2 ro rootwait ssp1=mmc" --force --no-ifdown /tmp/linux 55 | 56 | 57 | ext4load mmc 0:2 ${fdt_addr} linux.dtb 58 | ext4load mmc 0:2 ${loadaddr} linux 59 | setenv bootargs root=/dev/mmcblk0p2 ro rootwait console=ttyAMA0,115200 ssp1=mmc quiet 60 | bootm ${loadaddr} - ${fdt_addr} 61 | 62 | } 63 | -------------------------------------------------------------------------------- /conf/board/imx28/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t sysfs none /sys 6 | mkdir -p /dev/pts /dev/shm 7 | mount -t devpts devpts /dev/pts 8 | mount -t tmpfs none /dev/shm 9 | # MOUNT FS -- do not delete this line 10 | mount / / -o remount,noatime >/dev/null 2>&1 11 | 12 | echo "* Starting system loggers..." 13 | syslogd -C16 14 | klogd 15 | 16 | echo /sbin/mdev >/proc/sys/kernel/hotplug 17 | # LOAD MODULES -- do not delete this line 18 | echo "* Creating devices..." 19 | /sbin/mdev -s 20 | 21 | echo -n "* Setting hostname: " 22 | hostname $(cat /etc/hostname) && hostname 23 | 24 | echo "* Configuring loopback interface..." 25 | ifconfig lo 127.0.0.1 up 26 | 27 | up=$(ifconfig eth0|grep addr:) 28 | if [ "$up" != "" ]; then 29 | echo "* eth0:$up" 30 | else 31 | echo "* Configuring network with DHCP..." 32 | # pr1me computer MAC 33 | ifconfig eth0 hw ether 08:00:2f:01:00:01 34 | ifconfig eth0 up 35 | udhcpc -b -T 1 36 | fi 37 | 38 | # LAUNCH APPS -- do not delete this line 39 | if [ -f /etc/dropbear/dropbear_dss_host_key ]; then 40 | echo "* Starting dropbear..." 41 | dropbear 42 | else 43 | echo "* Starting telnetd..." 44 | telnetd -l /bin/sh 45 | fi 46 | -------------------------------------------------------------------------------- /conf/board/imx28/uboot/0001-add-ext4.patch: -------------------------------------------------------------------------------- 1 | diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h 2 | index dd0ef21..e8c76ce 100644 3 | --- a/include/configs/mx28evk.h 4 | +++ b/include/configs/mx28evk.h 5 | @@ -70,6 +70,9 @@ 6 | #define CONFIG_CMD_BOOTZ 7 | #define CONFIG_CMD_I2C 8 | 9 | +#define CONFIG_FS_EXT4 10 | +#define CONFIG_CMD_EXT4 11 | + 12 | /* 13 | * Memory configurations 14 | */ 15 | -------------------------------------------------------------------------------- /conf/board/joggler/gst-plugins-base/examples.patch: -------------------------------------------------------------------------------- 1 | diff -wur gst-plugins-base.orig/tests/examples/seek/seek.c gst-plugins-base/tests/examples/seek/seek.c 2 | --- gst-plugins-base.orig/tests/examples/seek/seek.c 2010-01-04 09:45:47.000000000 +0000 3 | +++ gst-plugins-base/tests/examples/seek/seek.c 2010-03-02 18:14:27.000000000 +0000 4 | @@ -2389,10 +2389,10 @@ 5 | gst_element_set_state (pipeline, GST_STATE_PLAYING); 6 | } 7 | 8 | -#ifdef HAVE_X 9 | - 10 | static gulong embed_xid = 0; 11 | 12 | +#ifdef HAVE_X 13 | + 14 | /* We set the xid here in response to the prepare-xwindow-id message via a 15 | * bus sync handler because we don't know the actual videosink used from the 16 | * start (as we don't know the pipeline, or bin elements such as autovideosink 17 | -------------------------------------------------------------------------------- /conf/board/joggler/launch-qemu.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | vga=0x37a # 1280x800x32 4 | 5 | # needs tap0 up 6 | kvm -m 256 \ 7 | -usb -usbdevice mouse -usbdevice keyboard \ 8 | -kernel vmlinuz-bare.bin \ 9 | -vga std -serial stdio \ 10 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 11 | -append "init=/linuxrc console=ttyS0,115200 vga=0x318 root=/dev/sda rw quiet" \ 12 | -hda minifs-full-ext.img 13 | 14 | kvm -m 256 \ 15 | -usb -usbdevice mouse -usbdevice keyboard \ 16 | -kernel vmlinuz-bare.bin \ 17 | -vga std -serial stdio \ 18 | -net nic,model=ne2k_pci -net tap,ifname=tap0,script= \ 19 | -append "rdinit=/linuxrc console=ttyS0,115200 vga=0x318 rw quiet" 20 | 21 | mount /dev/sdh1 /mnt/arm && \ 22 | cp /opt/minifs/build-atom/vmlinuz-full.bin /mnt/arm/vmlinuz && \ 23 | umount /mnt/arm 24 | 25 | 26 | X :0 -dpi 100 -ac -config xorg.conf.new & 27 | X :0 -dpi 100 -ac & 28 | GtkLauncher --display :0 'http://www.tvguide.co.uk/tv_channel_streams.asp?c=16' & 29 | 30 | gdbserver :4444 GtkLauncher --display :0 'http://www.tvguide.co.uk/tv_channel_streams.asp?c=16' & 31 | 32 | set solib-absolute-prefix /opt/minifs/build-atom/staging/ 33 | target extended-remote 10.0.0.96:4444 34 | 35 | set solib-absolute-prefix /opt/minifs/build-yuckfan/staging/ 36 | target extended-remote 10.0.0.52:4444 37 | 38 | -------------------------------------------------------------------------------- /conf/board/joggler/libxslt/configure.patch: -------------------------------------------------------------------------------- 1 | diff -ur libusb-0.1.12/config.sub libusb.new/config.sub 2 | --- libusb-0.1.12/config.sub 2004-04-12 03:01:57.000000000 +0100 3 | +++ libusb.new/config.sub 2010-02-20 17:34:19.000000000 +0000 4 | @@ -152,6 +152,10 @@ 5 | os= 6 | basic_machine=$1 7 | ;; 8 | + -uclibc*) 9 | + basic_machine=`echo $1 | sed 's/-.*//' ` 10 | + os=`echo $1 | sed 's/-/ /g'|awk '{print "-" $3}' ` 11 | + ;; 12 | -scout) 13 | ;; 14 | -wrs) 15 | esac 16 | -------------------------------------------------------------------------------- /conf/board/joggler/linux-2.6.33.4/joggler-i2c-fix-2.6.32-v1.patch: -------------------------------------------------------------------------------- 1 | diff --git a/drivers/i2c/busses/i2c-isch.c b/drivers/i2c/busses/i2c-isch.c 2 | index dba6eb0..bd44784 100644 3 | --- a/drivers/i2c/busses/i2c-isch.c 4 | +++ b/drivers/i2c/busses/i2c-isch.c 5 | @@ -47,7 +47,7 @@ 6 | #define SMBBLKDAT (0x20 + sch_smba) 7 | 8 | /* count for request_region */ 9 | -#define SMBIOSIZE 64 10 | +#define SMBIOSIZE 8 11 | 12 | /* PCI Address Constants */ 13 | #define SMBBA_SCH 0x40 14 | -------------------------------------------------------------------------------- /conf/board/joggler/linux-2.6.33.4/linux-2.6.33.2-iegd.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/linux-2.6.33.4/linux-2.6.33.2-iegd.patch -------------------------------------------------------------------------------- /conf/board/joggler/linux-2.6.38.4/0003-include-slab-memory-header-into-hda_eld.c-to-allow-i.patch: -------------------------------------------------------------------------------- 1 | From 9e6803bb9c1b182b5b2999ad0f7537012ba5c4b2 Mon Sep 17 00:00:00 2001 2 | From: Jools Wills 3 | Date: Tue, 7 Dec 2010 03:22:56 +0000 4 | Subject: [PATCH 3/5] include slab memory header into hda_eld.c to allow it to build on our more recent kernel. 5 | 6 | --- 7 | sound/pci/hda/hda_eld.c | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c 11 | index 9446a5a..e82c671 100644 12 | --- a/sound/pci/hda/hda_eld.c 13 | +++ b/sound/pci/hda/hda_eld.c 14 | @@ -22,6 +22,7 @@ 15 | */ 16 | 17 | #include 18 | +#include 19 | #include 20 | #include 21 | #include "hda_codec.h" 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/board/joggler/linux-2.6.38.4/0005-fixed-patch-i2c-code-for-the-joggler.patch: -------------------------------------------------------------------------------- 1 | From 17be08ba89a3386015f96445780c38185d55ea9a Mon Sep 17 00:00:00 2001 2 | From: Jools Wills 3 | Date: Wed, 20 Oct 2010 00:34:11 +0100 4 | Subject: [PATCH 5/5] fixed: patch i2c code for the joggler. 5 | 6 | --- 7 | drivers/i2c/busses/i2c-isch.c | 8 +++++--- 8 | 1 files changed, 5 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/drivers/i2c/busses/i2c-isch.c b/drivers/i2c/busses/i2c-isch.c 11 | index ddc258e..6aa15a4 100644 12 | --- a/drivers/i2c/busses/i2c-isch.c 13 | +++ b/drivers/i2c/busses/i2c-isch.c 14 | @@ -56,6 +56,8 @@ 15 | #define SCH_WORD_DATA 0x03 16 | #define SCH_BLOCK_DATA 0x05 17 | 18 | +#define SMBIOSIZE 8 19 | + 20 | static unsigned short sch_smba; 21 | static struct i2c_adapter sch_adapter; 22 | 23 | @@ -258,7 +260,7 @@ static int __devinit smbus_sch_probe(struct platform_device *dev) 24 | if (!res) 25 | return -EBUSY; 26 | 27 | - if (!request_region(res->start, resource_size(res), dev->name)) { 28 | + if (!request_region(res->start, SMBIOSIZE, dev->name)) { 29 | dev_err(&dev->dev, "SMBus region 0x%x already in use!\n", 30 | sch_smba); 31 | return -EBUSY; 32 | @@ -277,7 +279,7 @@ static int __devinit smbus_sch_probe(struct platform_device *dev) 33 | retval = i2c_add_adapter(&sch_adapter); 34 | if (retval) { 35 | dev_err(&dev->dev, "Couldn't register adapter!\n"); 36 | - release_region(res->start, resource_size(res)); 37 | + release_region(res->start, SMBIOSIZE); 38 | sch_smba = 0; 39 | } 40 | 41 | @@ -290,7 +292,7 @@ static int __devexit smbus_sch_remove(struct platform_device *pdev) 42 | if (sch_smba) { 43 | i2c_del_adapter(&sch_adapter); 44 | res = platform_get_resource(pdev, IORESOURCE_IO, 0); 45 | - release_region(res->start, resource_size(res)); 46 | + release_region(res->start, SMBIOSIZE); 47 | sch_smba = 0; 48 | } 49 | 50 | -- 51 | 1.7.0.4 52 | 53 | -------------------------------------------------------------------------------- /conf/board/joggler/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | TARGET_ARCH=i586 4 | TARGET_FULL_ARCH=$TARGET_ARCH-atom-linux-gnu 5 | TARGET_KERNEL_NAME=bzImage 6 | TARGET_KERNEL_ARCH=x86 7 | TARGET_CFLAGS="-O2 -march=core2 -mtune=generic -mssse3 -mfpmath=sse -fomit-frame-pointer -pipe" 8 | 9 | # kernel patches comes from http://code.google.com/p/adqmisc/ 10 | 11 | board_set_versions() { 12 | hset linux version "2.6.33.4" 13 | TARGET_FS_SQUASH=0 14 | TARGET_FS_EXT_SIZE=262144 15 | TARGET_SHARED=1 16 | #TARGET_DIRECTFB=0 17 | TARGET_X11=1 18 | #TARGET_INITRD=1 19 | } 20 | 21 | board_prepare() { 22 | TARGET_PACKAGES+=" e2fsprogs gdbserver strace" 23 | TARGET_PACKAGES+=" libusb usbutils i2c" 24 | TARGET_PACKAGES+=" tinc bird" 25 | 26 | TARGET_PACKAGES+=" curl libexpat libreadline libnetsnmp libgettext hotplug2" 27 | 28 | # all of that for gtk 29 | TARGET_PACKAGES+=" libjpeg libpng libfreetype libfontconfig libpixman" 30 | TARGET_PACKAGES+=" libts $DIRECTFB_PACKAGE" 31 | 32 | # all of gtk JUST to get rsvg :/ 33 | TARGET_PACKAGES+=" librsvg" 34 | 35 | TARGET_PACKAGES+=" xorgserver" 36 | 37 | TARGET_PACKAGES+=" wireless-tools wpa-supplicant" 38 | 39 | # TARGET_PACKAGES+=" libwebkit" 40 | # TARGET_PACKAGES+=" flashplugin" 41 | # TARGET_PACKAGES+=" module-kbus" 42 | } 43 | 44 | 45 | joggler-deploy-wpa-supplicant() { 46 | deploy-wpa-supplicant 47 | sed -i ' 48 | /^# LOAD MODULES/ a\ 49 | modprobe rt2800usb >/dev/null 2>&1\ 50 | modprobe r8169 >/dev/null 2>&1\ 51 | ifconfig eth0 hw ether `ifconfig wlan0|head -1|awk "{print \\\$5;}"` 52 | ' "$ROOTFS"/etc/init.d/rcS 53 | 54 | } 55 | -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/etc/ssl/certs/ca-certificates: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/rootfs/etc/ssl/certs/ca-certificates -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/etc/xserver-start.sh: -------------------------------------------------------------------------------- 1 | 2 | Xfbdev :0 -mouse mouse -keybd keyboard -dpi 100 -rgba rgb 3 | export WEBKIT_DEBUG=1 4 | GtkLauncher --display :0 http://www.tvguide.co.uk/tv_channel_streams.asp\?c=16 & 5 | 6 | 7 | X :0 -dpi 100 -ac -config xorg.conf.new & -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/rootfs/var/cache/fontconfig/17090aa38d5c6f09fb8c5c354938f1d7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/rootfs/var/cache/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/rootfs/var/cache/fontconfig/c855463f699352c367813e37f3f70ea7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/var/cache/fontconfig/eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/rootfs/var/cache/fontconfig/eeebfc908bd29a90773fd860017aada4-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/joggler/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/board/joggler/rootfs/var/cache/fontconfig/fe547fea3a41b43a38975d292a2b19c7-i586-atom-linux-uclibc.cache-3 -------------------------------------------------------------------------------- /conf/board/mini2440-airprint/.gitignore: -------------------------------------------------------------------------------- 1 | rootfs/etc/tinc 2 | ssh_host* 3 | -------------------------------------------------------------------------------- /conf/board/mini2440/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | . "$CONF_BASE"/arch/armv4t.sh 4 | 5 | board_set_versions() { 6 | # hset linux version "2.6.32.7" 7 | hset linux version "3.0.4" 8 | # for a >64Mb nand with 2k blocks and 128k erase blocks 9 | # TARGET_FS_JFFS2="-q -l -p -e 0x20000 -s 0x800" 10 | TARGET_INITRD=1 11 | hset uboot url "git!git://repo.or.cz/u-boot-openmoko/mini2440.git#uboot-mini2440-git.tar.bz2" 12 | } 13 | 14 | board_prepare() { 15 | TARGET_PACKAGES+=" uboot" 16 | } 17 | 18 | mini2440-deploy-uboot() { 19 | # make sure the u-boot is aligned on 2k blocks, for mtd_debug 20 | deploy dd if=u-boot.bin of="$BUILD"/u-boot.bin bs=2048 conv=sync 21 | } 22 | 23 | -------------------------------------------------------------------------------- /conf/board/nanopi/initramfs/etc/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | #set -x 3 | 4 | echo "* Trampoline starting..." 5 | mount -t proc /proc /proc 6 | mount -t devtmpfs devtmpfs /dev 2>/dev/null 7 | mount -t sysfs sysfs /sys 2>/dev/null 8 | 9 | /bin/waitfor_uevent 2000 ACTION=add DEVTYPE=partition 10 | 11 | if ! /bin/fat_find -e 'minifs-*.img' -l /tmp/boot >/dev/null ; then 12 | echo "* Cant find a root partition, bad idea " 13 | exec /bin/hush 14 | fi 15 | 16 | if ! mount /tmp/boot /root -o ro ; then 17 | echo "* Cant mount boot partition, bailing" 18 | exec /bin/hush 19 | fi 20 | rootname=$(ls /root/minifs-*.img -1|tail -1) 21 | echo "* Loading $rootname" 22 | mkdir -p pivot 23 | if ! mount "$rootname" /pivot/ -o ro; then 24 | echo "* Failed to mount $rootname, bailing" 25 | exec /bin/hush 26 | fi 27 | 28 | echo "* Bouncing" 29 | mount -o move /root /pivot/root 30 | touch /init # this is needed for switch_root 31 | exec /sbin/switch_root /pivot /sbin/init 32 | -------------------------------------------------------------------------------- /conf/board/nanopi/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t sysfs none /sys 6 | mkdir -p /dev/pts /dev/shm 7 | mount -t devpts devpts /dev/pts 8 | mount -t tmpfs none /dev/shm 9 | # MOUNT FS -- do not delete this line 10 | mount / / -o remount,noatime >/dev/null 2>&1 11 | 12 | echo "* Starting system loggers..." 13 | syslogd -C16 14 | klogd 15 | 16 | echo /sbin/mdev >/proc/sys/kernel/hotplug 17 | # LOAD MODULES -- do not delete this line 18 | echo "* Creating devices..." 19 | /sbin/mdev -s 20 | 21 | echo -n "* Setting hostname: " 22 | hostname $(cat /etc/hostname) && hostname 23 | 24 | echo "* Configuring loopback interface..." 25 | ifconfig lo 127.0.0.1 up 26 | 27 | up=$(ifconfig eth0|grep addr:) 28 | if [ "$up" != "" ]; then 29 | echo "* eth0:$up" 30 | else 31 | echo "* Configuring network with DHCP..." 32 | # pr1me computer MAC 33 | ifconfig eth0 hw ether 08:00:2f:01:00:01 34 | ifconfig eth0 up 35 | udhcpc -b -T 1 36 | fi 37 | 38 | # LAUNCH APPS -- do not delete this line 39 | if [ -f /etc/dropbear/dropbear_dss_host_key ]; then 40 | echo "* Starting dropbear..." 41 | dropbear 42 | else 43 | echo "* Starting telnetd..." 44 | telnetd -l /bin/sh 45 | fi 46 | -------------------------------------------------------------------------------- /conf/board/raspi/minifs-script.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | 4 | TARGET_META_ARCH=armv6 5 | 6 | TARGET_ARCH=arm 7 | TARGET_FULL_ARCH=$TARGET_ARCH-v6-linux-uclibcgnueabi 8 | #TARGET_KERNEL_NAME=uImage 9 | TARGET_LIBC_CFLAGS="-g -O2 -march=armv6 -mfloat-abi=hard -mfpu=vfp -fPIC -mthumb-interwork" 10 | TARGET_CFLAGS="$TARGET_LIBC_CFLAGS" 11 | 12 | TARGET_KERNEL_NAME=zImage 13 | 14 | board_set_versions() { 15 | TARGET_FS_SQUASH=0 16 | TARGET_FS_EXT2=1 17 | TARGET_SHARED=1 18 | } 19 | 20 | board_prepare() { 21 | hset linux version "3.6.11" 22 | hset linux url "https://github.com/raspberrypi/linux/archive/rpi-3.6.y.tar.gz" 23 | 24 | TARGET_PACKAGES+=" gdbserver strace" 25 | TARGET_PACKAGES+=" curl wpa-supplicant wireless-tools" 26 | TARGET_PACKAGES+=" firmware-rtl firmware-ralink" 27 | TARGET_PACKAGES+=" openssh sshfs" 28 | 29 | TARGET_PACKAGES+=" targettools" 30 | TARGET_PACKAGES+=" kexec-tools" 31 | 32 | } 33 | -------------------------------------------------------------------------------- /conf/board/raspi/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t sysfs none /sys 6 | mkdir -p /dev/pts /dev/shm 7 | mount -t devpts devpts /dev/pts 8 | mount -t tmpfs none /dev/shm 9 | # MOUNT FS -- do not delete this line 10 | mount / / -o remount,noatime >/dev/null 2>&1 11 | 12 | echo "* Starting system loggers..." 13 | syslogd -C16 14 | klogd 15 | 16 | echo /sbin/mdev >/proc/sys/kernel/hotplug 17 | # LOAD MODULES -- do not delete this line 18 | echo "* Creating devices..." 19 | /sbin/mdev -s 20 | 21 | echo -n "* Setting hostname: " 22 | hostname $(cat /etc/hostname) && hostname 23 | 24 | echo "* Configuring loopback interface..." 25 | ifconfig lo 127.0.0.1 up 26 | 27 | up=$(ifconfig eth0|grep addr:) 28 | if [ "$up" != "" ]; then 29 | echo "* eth0:$up" 30 | else 31 | echo "* Configuring network with DHCP..." 32 | # pr1me computer MAC 33 | ifconfig eth0 hw ether 08:00:2f:01:00:01 34 | ifconfig eth0 up 35 | udhcpc -b -T 1 36 | fi 37 | 38 | # LAUNCH APPS -- do not delete this line 39 | if [ -f /etc/dropbear/dropbear_dss_host_key ]; then 40 | echo "* Starting dropbear..." 41 | dropbear 42 | else 43 | echo "* Starting telnetd..." 44 | telnetd -l /bin/sh 45 | fi 46 | -------------------------------------------------------------------------------- /conf/board/raspi/ssh_host_dsa_key: -------------------------------------------------------------------------------- 1 | -----BEGIN DSA PRIVATE KEY----- 2 | MIIBvAIBAAKBgQCsSmGMMa5pRd3hLYjXslXAIh6sZpNiVG34rWkNsJmyMRZrPnfN 3 | lpd8XPDyqFiDf94TsxEzvpevn6h4Za22A5KklaJ7gU0Esm8LHJWLj2/Q+LsLtFV8 4 | bEYHxGz4Ka1ahoVzvuyV7n2Qj+S285EqONn0P2+i72jGBjnYU4SCIPLTlQIVAPET 5 | KrkrfXxiYifZXg/8zZqNWlndAoGBAIW9i8hco7q1vavLyP8Sq5aDgkC8SpYRBr4d 6 | DgmSyCQ2hpFjOJXnQZqGoV7yuSQXuq0vHB3jQk0A2kp0Z1Pyxmv3m3mPc0ywAUiH 7 | G7zemXdQhgI042KERnXuK7+fziCQcFusGOBux7iB2kl0jTmC3spZVtFMAO6omCLC 8 | KT8bMxcHAoGABA8eBJ8yzbaEFtkRV6ess6F9DuYf43kGHb+S9zkstIV1H5PxGzOv 9 | COehdNsBh2uZzr2aMkJz86vVwoXlXq4dYzWdUBj9T2+8c8H+W/RWuow36dHWIfFm 10 | CDIyTUd1M/GtMnR6i39+bjl/1QSMZ/py86f88h/VVKnQe3UXX8UCMSICFQDPP2RU 11 | D3xbd2kLMyuRJrv6cGhMew== 12 | -----END DSA PRIVATE KEY----- 13 | -------------------------------------------------------------------------------- /conf/board/raspi/ssh_host_dsa_key.pub: -------------------------------------------------------------------------------- 1 | ssh-dss AAAAB3NzaC1kc3MAAACBAKxKYYwxrmlF3eEtiNeyVcAiHqxmk2JUbfitaQ2wmbIxFms+d82Wl3xc8PKoWIN/3hOzETO+l6+fqHhlrbYDkqSVonuBTQSybwsclYuPb9D4uwu0VXxsRgfEbPgprVqGhXO+7JXufZCP5LbzkSo42fQ/b6LvaMYGOdhThIIg8tOVAAAAFQDxEyq5K318YmIn2V4P/M2ajVpZ3QAAAIEAhb2LyFyjurW9q8vI/xKrloOCQLxKlhEGvh0OCZLIJDaGkWM4ledBmoahXvK5JBe6rS8cHeNCTQDaSnRnU/LGa/ebeY9zTLABSIcbvN6Zd1CGAjTjYoRGde4rv5/OIJBwW6wY4G7HuIHaSXSNOYLeyllW0UwA7qiYIsIpPxszFwcAAACABA8eBJ8yzbaEFtkRV6ess6F9DuYf43kGHb+S9zkstIV1H5PxGzOvCOehdNsBh2uZzr2aMkJz86vVwoXlXq4dYzWdUBj9T2+8c8H+W/RWuow36dHWIfFmCDIyTUd1M/GtMnR6i39+bjl/1QSMZ/py86f88h/VVKnQe3UXX8UCMSI= michel@midesk 2 | -------------------------------------------------------------------------------- /conf/board/raspi/ssh_host_rsa_key: -------------------------------------------------------------------------------- 1 | -----BEGIN RSA PRIVATE KEY----- 2 | MIIEpAIBAAKCAQEA2b+kSjF0lXzOgcWlw+K3hhUCUhZ9jOTHKfeI+soopmbzv/ix 3 | ITWDgkYIZl0sQNFhkyZ6w7WG5PxUq4B++6BLJP5BKBu4EmQIUTNbr8MSbsaCegfR 4 | 7enqvmc7kBJYIYMwh1uxhLvoC3EegktEdq8z3bkepfBtkMAgvIa5+CA61pHcYksh 5 | 0h3DCBfbYboPWoybdGWtRZFUE0Bz6ScA3HuzbAl33O64PnhAVU85yTZRPWEaSwO9 6 | BNKPj/XRfnVKjBNvEF2UKgeeDeck62E2cCGT1cIOg5GPARIixdvl6KRh9T4Ij+Ss 7 | 24tEyvXx67w+GH59IxPxhRTZfMoXzdTn9bhX3wIDAQABAoIBABznFiyO8fWhsluB 8 | W6ZrooaWpU82EwYvm8wTQkhfqxOjWLljjkdlLgaNuzGzLluQL05z7hmqL7SXVbnJ 9 | /ZDyzuajJQzo2P7/7iaxFXt3/itcCBegkBnvUaxiUYKnHLGeE0P0RNTkiEF0i2Mq 10 | EHVcfhrxJoNKLZDoH7BGhcrMpGK0jO0cyew1D2ObgblBQ+B9zr89/SD3opSyN0HS 11 | 8ZdupBCoklimCQOoJ6sovmxKdgFH4x+P+Z/eg0TvR0lQ/7IFEC7hjgJDSVOLbSph 12 | vOIsb5VGpCEs4C/PB0f0p14XlOJ7n+TJP9N8suIdZz9OE7D5tI1TooH8pgr091xU 13 | uUt98xkCgYEA+pW5vjsbSGG3qhgpXxURx+gLB2FUb7BSX5o9kA7n2w+EeYojS1QU 14 | cbjrTuTt6aqrZZATrcOzGkW3Vr5K0TS3DNk7m34E7rDq3SJpiMACVKgP1I6Wt9zv 15 | /GxCrJbkPJRnHFa8IhRClBi1JNp1EFVKsLLj7ogqnePi4UY2LRq5c0UCgYEA3nRC 16 | yLT39JyyYIcDOJeYVhel080zwMwkutCChC962HhmLnZVTwZuL5GyEB4zrZdr6pnT 17 | 3IYhCxGbcCsSZqdL1rmgjB1rfhrHOqLUrhK6ZuLhxWzBHsAZWRXilH8wn4FfZt6w 18 | v9iaG8Nmz+4/lhXqJwxUoDUAXL7dqzSoe1ePXtMCgYB6CWMdRxHhbV2SJBQ57zvq 19 | nJKKdJc3kap8TtS+jNPT9rmwq1rG+9q9C67ljE5lpy2z17gNvypBmERSpXgwbLjd 20 | NAp4jqX+TQEE0xaMd95qtjKHdS3nu1zRFTRfc1kSO7//qCoVesJ195Z4rT+nxbIL 21 | XgPtjjkbDfnXdmc6DjLU9QKBgQCd1Fr10AAE25BrkB8m7de1bX3IMlU/uxdsPDf9 22 | 1ToRkArfeDG6qdNPiM2PRf5gcYitoIqCcd/L3KguA0FA9/2E0ZspDk6P4CvuXE0N 23 | XFhIWzzYN/sk+CKD5FUoCr3SzZWEhQdedi2Q+She6qjOsam6HrOEH1asdvcLW4cW 24 | S9965QKBgQCERi+uD80S6nCXow4kCKHTJVneNETRUktMNXhA1Pv70gM3ZNMb2cFY 25 | Y0VXfCG4U2AQX0duAHXyIT7j/eCbMUsjAXz18l7bimh4wInX9c843TFtRr0Qpo5K 26 | D8rg6cQkyme8Fn9PEJiyBdGGPgzEvzIEExl02qwvN425e0z3P05XsQ== 27 | -----END RSA PRIVATE KEY----- 28 | -------------------------------------------------------------------------------- /conf/board/raspi/ssh_host_rsa_key.pub: -------------------------------------------------------------------------------- 1 | ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDZv6RKMXSVfM6BxaXD4reGFQJSFn2M5Mcp94j6yiimZvO/+LEhNYOCRghmXSxA0WGTJnrDtYbk/FSrgH77oEsk/kEoG7gSZAhRM1uvwxJuxoJ6B9Ht6eq+ZzuQElghgzCHW7GEu+gLcR6CS0R2rzPduR6l8G2QwCC8hrn4IDrWkdxiSyHSHcMIF9thug9ajJt0Za1FkVQTQHPpJwDce7NsCXfc7rg+eEBVTznJNlE9YRpLA70E0o+P9dF+dUqME28QXZQqB54N5yTrYTZwIZPVwg6DkY8BEiLF2+XopGH1PgiP5Kzbi0TK9fHrvD4Yfn0jE/GFFNl8yhfN1Of1uFff michel@midesk 2 | -------------------------------------------------------------------------------- /conf/board/rzn1/initramfs/etc/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | #set -x 3 | 4 | #echo "* Trampoline starting..." 5 | mount -t proc /proc /proc 6 | mount -t devtmpfs devtmpfs /dev 2>/dev/null 7 | mount -t sysfs sysfs /sys 2>/dev/null 8 | 9 | if ! mount -t jffs2 /dev/mtdblock17 /root -o ro ; then 10 | echo "* Cant mount boot partition, bailing" 11 | exec /bin/hush 12 | fi 13 | rootname=$(ls /root/minifs-*.img -1|tail -1) 14 | echo "* Loading $rootname" 15 | mkdir -p pivot 16 | if ! mount "$rootname" /pivot/ -o ro; then 17 | echo "* Failed to mount $rootname, bailing" 18 | exec /bin/hush 19 | fi 20 | 21 | echo "* Bouncing" 22 | mount -o move /root /pivot/root 23 | touch /init # this is needed for switch_root 24 | exec /sbin/switch_root /pivot /sbin/init 25 | -------------------------------------------------------------------------------- /conf/board/rzn1/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t sysfs none /sys 6 | mount -t devtmpfs devtmpfs /dev 2>/dev/null 7 | mkdir -p /dev/pts /dev/shm 8 | mount -t devpts devpts /dev/pts 9 | mount -t tmpfs none /tmp 10 | # MOUNT FS -- do not delete this line 11 | #mount / / -o remount,noatime >/dev/null 2>&1 12 | 13 | if (cat /proc/cmdline |grep -q '\bdebug\b'); then 14 | mount -t debugfs / /sys/kernel/debug/;cd /sys/kernel/debug/ 15 | fi 16 | 17 | echo "* Starting system loggers..." 18 | syslogd -C16 19 | klogd 20 | 21 | echo /sbin/mdev >/proc/sys/kernel/hotplug 22 | # LOAD MODULES -- do not delete this line 23 | echo "* Creating devices..." 24 | /sbin/mdev -s 25 | 26 | echo -n "* Setting hostname: " 27 | hostname $(cat /etc/hostname) && hostname 28 | 29 | echo "* Configuring loopback interface..." 30 | ifconfig lo 127.0.0.1 up 31 | 32 | up=$(ifconfig eth0|grep addr:) 33 | if [ "$up" != "" ]; then 34 | echo "* eth0:$up" 35 | else 36 | echo "* Configuring network ..." 37 | ifconfig eth0 192.168.1.50 netmask 255.255.255.0 up 38 | # ifconfig eth1 192.168.1.51 netmask 255.255.255.0 up 39 | fi 40 | 41 | up=$(ifconfig usb0|grep Ethernet) 42 | if [ "$up" != "" ]; then 43 | ifconfig usb0 172.16.0.10 netmask 255.255.255.0 up 44 | fi 45 | 46 | # LAUNCH APPS -- do not delete this line 47 | telnetd -l /bin/sh 48 | -------------------------------------------------------------------------------- /conf/board/wandboard/brcmfmac-sdio.txt: -------------------------------------------------------------------------------- 1 | # bcm4329 NVRAM file for Wandboard Dual 2 | # $Copyright (C) 2008 Broadcom Corporation$ 3 | # $id$ 4 | 5 | sromrev=3 6 | vendid=0x14e4 7 | devid=0x432f 8 | boardtype=0x53e 9 | 10 | boardrev=0x41 11 | 12 | #boardflags=0x1200 13 | boardflags=0x200 14 | 15 | # Specify the xtalfreq if it is otherthan 38.4MHz 16 | xtalfreq=37400 17 | 18 | aa2g=3 19 | aa5g=0 20 | 21 | ag0=255 22 | #tri2g=0x64 23 | 24 | # 11g paparams 25 | pa0b0=5542,5542,5542 26 | pa0b1=64244,64244,64244 27 | pa0b2=65202,65202,65202 28 | 29 | pa0itssit=62 30 | pa0maxpwr=74 31 | opo=0 32 | mcs2gpo0=0x6666 33 | mcs2gpo1=0x6666 34 | 35 | # 11g rssi params 36 | rssismf2g=0xa,0xa,0xa 37 | rssismc2g=0xb,0xb,0xb 38 | rssisav2g=0x3,0x3,0x3 39 | bxa2g=0 40 | 41 | # country code 42 | ccode=ALL 43 | cctl=0x0 44 | cckdigfilttype=0 45 | ofdmdigfilttype=1 46 | 47 | rxpo2g=0 48 | 49 | boardnum=1 50 | macaddr=00:90:4c:c5:00:34 51 | 52 | # xtal pu and pd time control variable 53 | # pu time is driver default (0x1501) 54 | #r13t=0x1501 55 | 56 | ####### 57 | nocrc=1 58 | 59 | #for mfgc 60 | otpimagesize=182 61 | 62 | # sdio extra configs 63 | hwhdr=0x05ffff031030031003100000 64 | 65 | #This generates empty F1, F2 and F3 tuple chains, and may be used if the host SDIO stack does not require the standard tuples. 66 | #RAW1=80 02 fe ff 67 | 68 | #This includes the standard FUNCID and FUNCE tuples in the F1, F2, F3 and common CIS. 69 | RAW1=80 32 fe 21 02 0c 00 22 2a 01 01 00 00 c5 0 e6 00 00 00 00 00 40 00 00 ff ff 80 00 00 00 00 00 00 00 00 00 00 c8 00 00 00 00 00 00 00 00 00 00 00 00 00 ff 20 04 D0 2 29 43 21 02 0c 00 22 04 00 20 00 5A 70 | nvramver=4.218.214.0 71 | -------------------------------------------------------------------------------- /conf/board/wandboard/initramfs/etc/init.sh: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | #set -x 3 | 4 | echo "* Trampoline starting..." 5 | mount -t proc /proc /proc 6 | mount -t devtmpfs devtmpfs /dev 2>/dev/null 7 | mount -t sysfs sysfs /sys 2>/dev/null 8 | 9 | /bin/waitfor_uevent 2000 ACTION=add DEVTYPE=partition 10 | 11 | if ! /bin/fat_find -e 'minifs-*.img' -l /tmp/boot >/dev/null ; then 12 | echo "* Cant find a root partition, bad idea " 13 | exec /bin/hush 14 | fi 15 | 16 | if ! mount /tmp/boot /root -o ro ; then 17 | echo "* Cant mount boot partition, bailing" 18 | exec /bin/hush 19 | fi 20 | rootname=$(ls /root/minifs-*.img -1|tail -1) 21 | echo "* Loading $rootname" 22 | mkdir -p pivot 23 | if ! mount "$rootname" /pivot/ -o ro; then 24 | echo "* Failed to mount $rootname, bailing" 25 | exec /bin/hush 26 | fi 27 | 28 | echo "* Bouncing" 29 | mount -o move /root /pivot/root 30 | touch /init # this is needed for switch_root 31 | exec /sbin/switch_root /pivot /sbin/init 32 | -------------------------------------------------------------------------------- /conf/board/wandboard/rootfs/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t devtmpfs devtmpfs /dev 6 | mount -t sysfs none /sys 7 | mkdir -p /dev/pts /dev/shm 8 | mount -t devpts devpts /dev/pts 9 | mount -t tmpfs none /dev/shm 10 | mount -t tmpfs none /tmp 11 | # MOUNT FS -- do not delete this line 12 | mount / / -o remount,noatime >/dev/null 2>&1 13 | mkdir -p /tmp/run 14 | mount /tmp/run /var/run/ -o bind 15 | 16 | echo "* Starting system loggers..." 17 | syslogd -C16 18 | klogd 19 | 20 | echo /sbin/mdev >/proc/sys/kernel/hotplug 21 | # LOAD MODULES -- do not delete this line 22 | echo "* Creating devices..." 23 | /sbin/mdev -s 24 | 25 | echo -n "* Setting hostname: " 26 | hostname $(cat /etc/hostname) && hostname 27 | 28 | echo "* Configuring loopback interface..." 29 | ifconfig lo 127.0.0.1 up 30 | 31 | up=$(ifconfig eth0|grep addr:) 32 | if [ "$up" != "" ]; then 33 | echo "* eth0:$up" 34 | if [ -f /etc/network-up.sh ]; then sh /etc/network-up.sh ; fi 35 | else 36 | echo "* Configuring network with DHCP..." 37 | ifconfig eth0 up 38 | udhcpc -b -T 1 39 | fi 40 | 41 | if [ -d /root/bluetooth]; then 42 | cp -r /root/bluetooth /tmp/ 43 | fi 44 | # Load DAC 45 | modprobe snd-usb-audio index=0 46 | modprobe btusb 47 | 48 | # LAUNCH APPS -- do not delete this line 49 | echo "* Starting telnetd..." 50 | telnetd -l /bin/sh 51 | -------------------------------------------------------------------------------- /conf/board/wandboard/rootfs/etc/network-up.sh: -------------------------------------------------------------------------------- 1 | 2 | ntpd -p 0.uk.pool.ntp.org -p 1.uk.pool.ntp.org -p 2.uk.pool.ntp.org -p 3.uk.pool.ntp.org 3 | -------------------------------------------------------------------------------- /conf/board/zedboard/minifs-script.sh: -------------------------------------------------------------------------------- 1 | 2 | . "$CONF_BASE"/arch/zynq.sh 3 | 4 | TARGET_LIBC=eglibc 5 | 6 | # this file .dts must exist either in this directory (board) 7 | # or in the linux arch/$TARGET_ARCH/boot/dts/ 8 | TARGET_KERNEL_DTB=${TARGET_KERNEL_DTB:-zynq-zed} 9 | 10 | TARGET_FS_EXT=0 11 | #TARGET_FS_TAR=0 12 | TARGET_FS_SQUASH=1 13 | 14 | board_set_versions() { 15 | TARGET_SHARED=1 16 | TARGET_INITRD=1 17 | # TARGET_X11=1 18 | } 19 | 20 | board_prepare() { 21 | zynq-prepare 22 | TARGET_PACKAGES+=" gdbserver strace catchsegv" 23 | TARGET_PACKAGES+=" ethtool" 24 | TARGET_PACKAGES+=" curl rsync" 25 | # TARGET_PACKAGES+=" openssh sshfs mDNSResponder" 26 | 27 | TARGET_PACKAGES+=" i2c mtd_utils " 28 | hset mtd_utils deploy-list "nandwrite mtd_debug" 29 | 30 | TARGET_PACKAGES+=" targettools" 31 | 32 | TARGET_PACKAGES+=" libalsa" 33 | 34 | ROOTFS_KEEPERS+="libnss_compat.so.2:" 35 | ROOTFS_KEEPERS+="libnss_files.so.2:" 36 | export ROOTFS_KEEPERS 37 | 38 | } 39 | -------------------------------------------------------------------------------- /conf/board/zedboard/twolame/0001-simplefrontend-Workaround-incomplete-wav-header-pars.patch: -------------------------------------------------------------------------------- 1 | From b3d02b53425b7f4e786452bad2a5b8270ec0bb74 Mon Sep 17 00:00:00 2001 2 | Message-Id: 3 | From: Anthony Morel 4 | Date: Wed, 1 Apr 2015 12:09:59 +0100 5 | Subject: [PATCH 1/2] simplefrontend: Workaround incomplete wav header parsing 6 | 7 | --- 8 | simplefrontend/audio_wave.c | 4 ++-- 9 | 1 file changed, 2 insertions(+), 2 deletions(-) 10 | 11 | diff --git a/simplefrontend/audio_wave.c b/simplefrontend/audio_wave.c 12 | index b1b67b7..16a3fed 100644 13 | --- a/simplefrontend/audio_wave.c 14 | +++ b/simplefrontend/audio_wave.c 15 | @@ -179,8 +179,8 @@ wave_info_t *wave_init(char *inPath) 16 | default: 17 | /* Unknown Unsupported Frequency */ 18 | printf(">>> Unknown samp freq %ld Hz in Wave Header\n", samplerate); 19 | - printf(">>> Default 44.1 kHz samp freq selected\n"); 20 | - samplerate = 44100; 21 | + printf(">>> Default 48 kHz samp freq selected\n"); 22 | + samplerate = 48000; 23 | break; 24 | } 25 | 26 | -- 27 | 2.0.0 28 | 29 | -------------------------------------------------------------------------------- /conf/distro/yuckfan/rootfs/etc/resolv.conf: -------------------------------------------------------------------------------- 1 | domain buserror.com 2 | nameserver 10.0.0.5 3 | -------------------------------------------------------------------------------- /conf/host-tools/Makefile: -------------------------------------------------------------------------------- 1 | 2 | CFLAGS = -std=gnu99 -g -O0 3 | CC = gcc 4 | DESTDIR ?= /tmp/tt 5 | BIN = $(DESTDIR)/bin 6 | 7 | tools-src = ${wildcard *.c} 8 | tools = ${patsubst %, ${BIN}/%, ${tools-src:.c=}} 9 | 10 | LDFLAGS-cross_linker = -lelf 11 | 12 | VPATH = . 13 | 14 | all : $(tools) 15 | #make -f Makefile.kconfig DESTDIR=$(DESTDIR) 16 | 17 | $(BIN): 18 | mkdir -p $(BIN) 19 | 20 | $(BIN)/% : %.c 21 | $(CC) $(CFLAGS) $< -o $@ ${LDFLAGS-$*} 22 | 23 | clean: 24 | rm -f $(tools) 25 | make -f Makefile.kconfig DESTDIR=$(DESTDIR) clean 26 | 27 | install: all 28 | -------------------------------------------------------------------------------- /conf/host-tools/Makefile.kconfig: -------------------------------------------------------------------------------- 1 | # 2 | # Compile an out of tree kconfig/menuconfig program 3 | # Made so that the original kernel tree kconfig can be used 4 | # without any change 5 | # 6 | CONFIG_SHELL = /bin/bash 7 | CC = gcc 8 | PFX = k 9 | 10 | DESTDIR = /tmp/tt 11 | 12 | BIN = $(DESTDIR)/bin 13 | OBJ = $(DESTDIR)/tmp 14 | src = kconfig 15 | 16 | all: $(OBJ) $(BIN)/$(PFX)conf $(BIN)/$(PFX)mconf 17 | 18 | # look in this one, first! 19 | VPATH = $(src)/lxdialog 20 | VPATH += $(src) 21 | VPATH += $(OBJ) 22 | 23 | check-lxdialog := $(src)/lxdialog/check-lxdialog.sh 24 | 25 | CFLAGS = -g -Os -I$(src) -I$(src)/lxdialog -I$(OBJ) 26 | CFLAGS += -DLOCALE 27 | CFLAGS += $(shell $(CONFIG_SHELL) $(check-lxdialog) -ccflags) 28 | LDFLAGS = $(shell $(CONFIG_SHELL) $(check-lxdialog) -ldflags $(CC)) 29 | 30 | lxdialog := $(OBJ)/checklist.o $(OBJ)/inputbox.o $(OBJ)/util.o 31 | lxdialog += $(OBJ)/textbox.o $(OBJ)/yesno.o $(OBJ)/menubox.o 32 | 33 | conf-o := $(OBJ)/conf.o $(OBJ)/zconf.tab.o 34 | mconf-o := $(OBJ)/mconf.o $(OBJ)/zconf.tab.o $(lxdialog) 35 | 36 | clean: 37 | rm -rf $(OBJ) 38 | 39 | install: all 40 | # nothing to do here, there are already in place 41 | 42 | $(OBJ): 43 | mkdir -p $(OBJ) $(BIN) 44 | 45 | $(OBJ)/lkc_defs.h: $(src)/lkc_proto.h 46 | sed < $< > $@ 's/P(\([^,]*\),.*/#define \1 (\*\1_p)/' 47 | 48 | $(OBJ)/zconf.tab.o : $(OBJ)/zconf.hash.c $(OBJ)/lex.zconf.c 49 | 50 | $(BIN)/$(PFX)conf: $(conf-o) 51 | $(CC) $^ -o $@ 52 | 53 | $(BIN)/$(PFX)mconf: $(OBJ)/lkc_defs.h $(mconf-o) 54 | $(CC) $^ -o $@ $(LDFLAGS) 55 | 56 | $(OBJ)/%.o : %.c 57 | $(CC) $(CFLAGS) $< -c -o $@ 58 | 59 | $(OBJ)/%.c : %.c_shipped 60 | cp $< $@ 61 | -------------------------------------------------------------------------------- /conf/host-tools/filename_sort.c: -------------------------------------------------------------------------------- 1 | /* 2 | * filename_sort.c 3 | * 4 | * (C) 2008-2011 Michel Pollet 5 | * 6 | * Sometime a five-liner of C saved tons of work 7 | * This one takes a bunch of filenames, an sort them 8 | * by filename. 9 | * 10 | * This library is free software; you can redistribute it and/or 11 | * modify it under the terms of the GNU Library General Public 12 | * License as published by the Free Software Foundation; either 13 | * version 2 of the License, or (at your option) any later version. 14 | * 15 | * This library is distributed in the hope that it will be useful, 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 | * Library General Public License for more details. 19 | * 20 | * You should have received a copy of the GNU Library General Public 21 | * License along with this library; if not, write to the 22 | * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, 23 | * Boston, MA 02110-1301, USA. 24 | */ 25 | #include 26 | #include 27 | #include 28 | #include 29 | 30 | int compar(const void *p1, const void *p2) 31 | { 32 | char * s1 = *((char**)p1); 33 | char * s2 = *((char**)p2); 34 | return strcmp(basename(s1), basename(s2)); 35 | } 36 | 37 | int main(int argc, char ** argv) 38 | { 39 | int i; 40 | 41 | if (argc == 1) 42 | exit(0); 43 | 44 | /* strip double slash from pathnames, so dir//file is the same as dir/file */ 45 | for (i = 1; i < argc; i++) { 46 | char *s = argv[i]; 47 | char *d = s; 48 | while (*s) { 49 | if (s[0] == '/' && s[1] == '/') s++; 50 | else *d++ = *s++; 51 | } 52 | *d = 0; 53 | } 54 | qsort(argv+1, argc-1, sizeof(char*), compar); 55 | 56 | for (i = 1; i < argc; i++) { 57 | /* if pathnames are equivalent, don't print them twice, or more */ 58 | if (i > 1 && !strcmp(argv[i], argv[i-1])) 59 | continue; 60 | char * white = strchr(argv[i], ' '); 61 | if (white) 62 | printf("\"%s\" ", argv[i]); 63 | else 64 | printf("%s ", argv[i]); 65 | } 66 | printf("\n"); 67 | } 68 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Generated files 3 | # 4 | config* 5 | lex.*.c 6 | *.tab.c 7 | *.tab.h 8 | zconf.hash.c 9 | *.moc 10 | lkc_defs.h 11 | gconf.glade.h 12 | *.pot 13 | *.mo 14 | 15 | # 16 | # configuration programs 17 | # 18 | conf 19 | mconf 20 | nconf 21 | qconf 22 | gconf 23 | kxgettext 24 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/POTFILES.in: -------------------------------------------------------------------------------- 1 | scripts/kconfig/lxdialog/checklist.c 2 | scripts/kconfig/lxdialog/inputbox.c 3 | scripts/kconfig/lxdialog/menubox.c 4 | scripts/kconfig/lxdialog/textbox.c 5 | scripts/kconfig/lxdialog/util.c 6 | scripts/kconfig/lxdialog/yesno.c 7 | scripts/kconfig/mconf.c 8 | scripts/kconfig/conf.c 9 | scripts/kconfig/confdata.c 10 | scripts/kconfig/gconf.c 11 | scripts/kconfig/gconf.glade.h 12 | scripts/kconfig/qconf.cc 13 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/check.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Needed for systems without gettext 3 | $* -xc -o /dev/null - > /dev/null 2>&1 << EOF 4 | #include 5 | int main() 6 | { 7 | gettext(""); 8 | return 0; 9 | } 10 | EOF 11 | if [ ! "$?" -eq "0" ]; then 12 | echo -DKBUILD_NO_NLS; 13 | fi 14 | 15 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/kconfig_load.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | #include "lkc.h" 6 | 7 | #define P(name,type,arg) type (*name ## _p) arg 8 | #include "lkc_proto.h" 9 | #undef P 10 | 11 | void kconfig_load(void) 12 | { 13 | void *handle; 14 | char *error; 15 | 16 | handle = dlopen("./libkconfig.so", RTLD_LAZY); 17 | if (!handle) { 18 | handle = dlopen("./scripts/kconfig/libkconfig.so", RTLD_LAZY); 19 | if (!handle) { 20 | fprintf(stderr, "%s\n", dlerror()); 21 | exit(1); 22 | } 23 | } 24 | 25 | #define P(name,type,arg) \ 26 | { \ 27 | name ## _p = dlsym(handle, #name); \ 28 | if ((error = dlerror())) { \ 29 | fprintf(stderr, "%s\n", error); \ 30 | exit(1); \ 31 | } \ 32 | } 33 | #include "lkc_proto.h" 34 | #undef P 35 | } 36 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/lxdialog/.gitignore: -------------------------------------------------------------------------------- 1 | # 2 | # Generated files 3 | # 4 | lxdialog 5 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/lxdialog/BIG.FAT.WARNING: -------------------------------------------------------------------------------- 1 | This is NOT the official version of dialog. This version has been 2 | significantly modified from the original. It is for use by the Linux 3 | kernel configuration script. Please do not bother Savio Lam with 4 | questions about this program. 5 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/lxdialog/check-lxdialog.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Check ncurses compatibility 3 | 4 | # What library to link 5 | ldflags() 6 | { 7 | for ext in so a dylib ; do 8 | for lib in ncursesw ncurses curses ; do 9 | $cc -print-file-name=lib${lib}.${ext} | grep -q / 10 | if [ $? -eq 0 ]; then 11 | echo "-l${lib}" 12 | exit 13 | fi 14 | done 15 | done 16 | exit 1 17 | } 18 | 19 | # Where is ncurses.h? 20 | ccflags() 21 | { 22 | if [ -f /usr/include/ncurses/ncurses.h ]; then 23 | echo '-I/usr/include/ncurses -DCURSES_LOC=""' 24 | elif [ -f /usr/include/ncurses/curses.h ]; then 25 | echo '-I/usr/include/ncurses -DCURSES_LOC=""' 26 | elif [ -f /usr/include/ncurses.h ]; then 27 | echo '-DCURSES_LOC=""' 28 | else 29 | echo '-DCURSES_LOC=""' 30 | fi 31 | } 32 | 33 | # Temp file, try to clean up after us 34 | tmp=.lxdialog.tmp 35 | trap "rm -f $tmp" 0 1 2 3 15 36 | 37 | # Check if we can link to ncurses 38 | check() { 39 | $cc -xc - -o $tmp 2>/dev/null <<'EOF' 40 | #include CURSES_LOC 41 | main() {} 42 | EOF 43 | if [ $? != 0 ]; then 44 | echo " *** Unable to find the ncurses libraries or the" 1>&2 45 | echo " *** required header files." 1>&2 46 | echo " *** 'make menuconfig' requires the ncurses libraries." 1>&2 47 | echo " *** " 1>&2 48 | echo " *** Install ncurses (ncurses-devel) and try again." 1>&2 49 | echo " *** " 1>&2 50 | exit 1 51 | fi 52 | } 53 | 54 | usage() { 55 | printf "Usage: $0 [-check compiler options|-ccflags|-ldflags compiler options]\n" 56 | } 57 | 58 | if [ $# -eq 0 ]; then 59 | usage 60 | exit 1 61 | fi 62 | 63 | cc="" 64 | case "$1" in 65 | "-check") 66 | shift 67 | cc="$@" 68 | check 69 | ;; 70 | "-ccflags") 71 | ccflags 72 | ;; 73 | "-ldflags") 74 | shift 75 | cc="$@" 76 | ldflags 77 | ;; 78 | "*") 79 | usage 80 | exit 1 81 | ;; 82 | esac 83 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/nconf.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright (C) 2008 Nir Tzachar 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | #include 24 | #include 25 | #include 26 | 27 | #include "ncurses.h" 28 | 29 | #define max(a, b) ({\ 30 | typeof(a) _a = a;\ 31 | typeof(b) _b = b;\ 32 | _a > _b ? _a : _b; }) 33 | 34 | #define min(a, b) ({\ 35 | typeof(a) _a = a;\ 36 | typeof(b) _b = b;\ 37 | _a < _b ? _a : _b; }) 38 | 39 | typedef enum { 40 | NORMAL = 1, 41 | MAIN_HEADING, 42 | MAIN_MENU_BOX, 43 | MAIN_MENU_FORE, 44 | MAIN_MENU_BACK, 45 | MAIN_MENU_GREY, 46 | MAIN_MENU_HEADING, 47 | SCROLLWIN_TEXT, 48 | SCROLLWIN_HEADING, 49 | SCROLLWIN_BOX, 50 | DIALOG_TEXT, 51 | DIALOG_MENU_FORE, 52 | DIALOG_MENU_BACK, 53 | DIALOG_BOX, 54 | INPUT_BOX, 55 | INPUT_HEADING, 56 | INPUT_TEXT, 57 | INPUT_FIELD, 58 | FUNCTION_TEXT, 59 | FUNCTION_HIGHLIGHT, 60 | ATTR_MAX 61 | } attributes_t; 62 | extern attributes_t attributes[]; 63 | 64 | typedef enum { 65 | F_HELP = 1, 66 | F_SYMBOL = 2, 67 | F_INSTS = 3, 68 | F_CONF = 4, 69 | F_BACK = 5, 70 | F_SAVE = 6, 71 | F_LOAD = 7, 72 | F_EXIT = 8 73 | } function_key; 74 | 75 | void set_colors(void); 76 | 77 | /* this changes the windows attributes !!! */ 78 | void print_in_middle(WINDOW *win, 79 | int starty, 80 | int startx, 81 | int width, 82 | const char *string, 83 | chtype color); 84 | int get_line_length(const char *line); 85 | int get_line_no(const char *text); 86 | const char *get_line(const char *text, int line_no); 87 | void fill_window(WINDOW *win, const char *text); 88 | int btn_dialog(WINDOW *main_window, const char *msg, int btn_num, ...); 89 | int dialog_inputbox(WINDOW *main_window, 90 | const char *title, const char *prompt, 91 | const char *init, char *result, int result_len); 92 | void refresh_all_windows(WINDOW *main_window); 93 | void show_scroll_win(WINDOW *main_window, 94 | const char *title, 95 | const char *text); 96 | -------------------------------------------------------------------------------- /conf/host-tools/kconfig/zconf.gperf: -------------------------------------------------------------------------------- 1 | %language=ANSI-C 2 | %define hash-function-name kconf_id_hash 3 | %define lookup-function-name kconf_id_lookup 4 | %define string-pool-name kconf_id_strings 5 | %compare-strncmp 6 | %enum 7 | %pic 8 | %struct-type 9 | 10 | struct kconf_id; 11 | 12 | static struct kconf_id *kconf_id_lookup(register const char *str, register unsigned int len); 13 | 14 | %% 15 | mainmenu, T_MAINMENU, TF_COMMAND 16 | menu, T_MENU, TF_COMMAND 17 | endmenu, T_ENDMENU, TF_COMMAND 18 | source, T_SOURCE, TF_COMMAND 19 | choice, T_CHOICE, TF_COMMAND 20 | endchoice, T_ENDCHOICE, TF_COMMAND 21 | comment, T_COMMENT, TF_COMMAND 22 | config, T_CONFIG, TF_COMMAND 23 | menuconfig, T_MENUCONFIG, TF_COMMAND 24 | help, T_HELP, TF_COMMAND 25 | if, T_IF, TF_COMMAND|TF_PARAM 26 | endif, T_ENDIF, TF_COMMAND 27 | depends, T_DEPENDS, TF_COMMAND 28 | optional, T_OPTIONAL, TF_COMMAND 29 | default, T_DEFAULT, TF_COMMAND, S_UNKNOWN 30 | prompt, T_PROMPT, TF_COMMAND 31 | tristate, T_TYPE, TF_COMMAND, S_TRISTATE 32 | def_tristate, T_DEFAULT, TF_COMMAND, S_TRISTATE 33 | bool, T_TYPE, TF_COMMAND, S_BOOLEAN 34 | boolean, T_TYPE, TF_COMMAND, S_BOOLEAN 35 | def_bool, T_DEFAULT, TF_COMMAND, S_BOOLEAN 36 | int, T_TYPE, TF_COMMAND, S_INT 37 | hex, T_TYPE, TF_COMMAND, S_HEX 38 | string, T_TYPE, TF_COMMAND, S_STRING 39 | select, T_SELECT, TF_COMMAND 40 | range, T_RANGE, TF_COMMAND 41 | option, T_OPTION, TF_COMMAND 42 | on, T_ON, TF_PARAM 43 | modules, T_OPT_MODULES, TF_OPTION 44 | defconfig_list, T_OPT_DEFCONFIG_LIST,TF_OPTION 45 | env, T_OPT_ENV, TF_OPTION 46 | %% 47 | -------------------------------------------------------------------------------- /conf/host-tools/raspi-boot.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Create a raspberry-pi kernel boot image 3 | * (C) Michel Pollet 4 | * 5 | * GPL 6 | */ 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | int main(int argc, const char ** argv) 15 | { 16 | int i = 1; 17 | const char *fin, *fout; 18 | int in = -1, out = -1; 19 | 20 | if ((in = open(fin = argv[i++], O_RDONLY)) == -1) { 21 | perror(fin); 22 | exit(1); 23 | } 24 | if ((out = open(fout = argv[i++], O_WRONLY|O_CREAT, 0644)) == -1) { 25 | perror(fout); 26 | exit(1); 27 | } 28 | 29 | uint8_t block[4096]; 30 | 31 | const uint8_t boot[] = { 32 | 0x06, 0x00, 0x00, 0xea, 33 | 0x00, 0x00, 0xa0, 0xe1, 34 | 0x00, 0x00, 0xa0, 0xe1, 35 | 0x00, 0x00, 0xa0, 0xe1, 36 | 0x00, 0x00, 0xa0, 0xe1, 37 | 0x00, 0x00, 0xa0, 0xe1, 38 | 0x00, 0x00, 0xa0, 0xe1, 39 | 0x00, 0x00, 0xa0, 0xe1, 40 | 0x00, 0x00, 0x00, 0xe3, 41 | 0x42, 0x10, 0xa0, 0xe3, 42 | 0x0c, 0x1c, 0x81, 0xe3, 43 | 0x00, 0x20, 0x9f, 0xe5, 44 | 0x00, 0xf0, 0x9f, 0xe5, 45 | 0x00, 0x01, 0x00, 0x00, 46 | 0x00, 0x80, 0x00, 0x00, 47 | }; 48 | const uint8_t arg[] = { 49 | 0x05, 0x00, 0x00, 0x00, 50 | 0x01, 0x00, 0x41, 0x54, 51 | 0x01, 0x00, 0x00, 0x00, 52 | 0x00, 0x10, 0x00, 0x00, 53 | 0x00, 0x00, 0x00, 0x00, 54 | 0x04, 0x00, 0x00, 0x00, 55 | 0x02, 0x00, 0x41, 0x54, 56 | 0x00, 0x00, 0x00, 0x80, 57 | 0x00, 0x10, 0x00, 0x00, 58 | 0x00, 0x10, 0x00, 0x00, 59 | 0x00, 0x10, 0x00, 0x00, 60 | }; 61 | int e; 62 | ssize_t rd; 63 | memset(block, 0, sizeof(block)); 64 | memcpy(block + 0x0000, boot, sizeof(boot)); 65 | memcpy(block + 0x0100, arg, sizeof(arg)); 66 | 67 | 68 | for (i = 0; i < (32 * 1024) / sizeof(block); i++) { 69 | e = write(out, block, sizeof(block)); 70 | if (e == -1) 71 | goto error; 72 | if (i == 0) // re-erase buffer 73 | memset(block, 0, sizeof(block)); 74 | } 75 | do { 76 | rd = read(in, block, sizeof(block)); 77 | if (rd == -1) 78 | goto error; 79 | if (rd > 0) { 80 | e = write(out, block, rd); 81 | if (e == -1) 82 | goto error; 83 | } 84 | } while (rd > 0); 85 | 86 | close(in); close(out); 87 | exit(0); 88 | error: 89 | perror(fout); 90 | unlink(fout); 91 | exit(1); 92 | } 93 | -------------------------------------------------------------------------------- /conf/packages/05arm-imx-elftosb.sh: -------------------------------------------------------------------------------- 1 | # 2 | # imx23/imx28 bootlet generator 3 | # 4 | PACKAGES+=" elftosb" 5 | hset elftosb url "git!git://github.com/buserror-uk/Olinuxino-Micro-Bootlets.git#Olinuxino-Bootlets.tar.bz2" 6 | hset elftosb depends "linux-dtb" 7 | hset elftosb phases "deploy" 8 | hset elftosb board "stmp378x_dev" 9 | 10 | deploy-elftosb-local() { 11 | ln -sf $(hget linux-dtb filename) zImage 12 | rm -f mv sd_mmc_bootstream.raw 13 | echo $TARGET_KERNEL_CMDLINE >linux_prep/cmdlines/$(hget elftosb board).txt 14 | # echo $TARGET_KERNEL_CMDLINE >>linux_prep/cmdlines/$(hget elftosb board).txt 15 | $MAKE \ 16 | CROSS_COMPILE="${CROSS}-" \ 17 | BOARD=$(hget elftosb board) && \ 18 | mv sd_mmc_bootstream.raw .. && \ 19 | cp elftosb-*/bld/linux/elftosb ../staging-tools/bin/ 20 | } 21 | 22 | deploy-elftosb() { 23 | # make sure we deploy after linux-dtb 24 | if [ -f "$BUILD"/linux/._deploy_linux-dtb ]; then 25 | touch ._install_$PACKAGE 26 | fi 27 | deploy deploy-elftosb-local 28 | } 29 | -------------------------------------------------------------------------------- /conf/packages/06uboot.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" uboot" 3 | # uboot URL is set by each board, not here 4 | #hset uboot url "git!git://repo.or.cz/u-boot-openmoko/parrot-frames.git#uboot-df3120-git.tar.bz2" 5 | hset uboot target "u-boot.bin" 6 | hset uboot output "$STAGING/uboot-obj" 7 | 8 | configure-uboot() { 9 | local arch=$(hget uboot board) 10 | mkdir -p $(hget uboot output) 11 | if [ "$arch" = "" ];then 12 | arch=$MINIFS_BOARD 13 | echo WARNING uboot needs an explicit board name 14 | fi 15 | configure make O=$(hget uboot output) "$arch"_config 16 | } 17 | compile-uboot-local() { 18 | $MAKE $MAKE_ARGUMENTS \ 19 | O=$(hget uboot output) \ 20 | CROSS_COMPILE="$CROSS-" \ 21 | $(hget uboot target) 22 | } 23 | compile-uboot() { 24 | compile compile-uboot-local 25 | } 26 | install-uboot-local() { 27 | pushd $(hget uboot output) 28 | if [ -x tools/mkimage ]; then 29 | mkdir -p "$STAGING_TOOLS"/bin/ "$ROOTFS"/sbin/ 30 | cp tools/mkimage "$STAGING_TOOLS"/bin/ 31 | fi 32 | if [ -x tools/env/fw_printenv ]; then 33 | mkdir -p "$STAGING_USR"/bin/ "$STAGING"/etc/ 34 | cp tools/env/fw_printenv "$STAGING_USR"/bin/ 35 | cp tools/env/fw_env.config "$STAGING"/etc/ 36 | cp tools/env/fw_printenv "$ROOTFS"/sbin/ 37 | fi 38 | popd 39 | } 40 | install-uboot() { 41 | log_install install-uboot-local 42 | } 43 | 44 | deploy-uboot-local() { 45 | if [ "$(hget uboot deploy-target)" != "" ]; then 46 | $MAKE $MAKE_ARGUMENTS \ 47 | O=$(hget uboot output) \ 48 | CROSS_COMPILE="$CROSS-" \ 49 | $(hget uboot deploy-target) && 50 | cp $(hget uboot deploy-target) .. 51 | fi 52 | if [ -x "$STAGING"/bin/fw_printenv ]; then 53 | deploy cp "$STAGING"/usr/bin/fw_printenv "$ROOTFS"/bin/ 54 | fi 55 | } 56 | 57 | deploy-uboot() { 58 | deploy deploy-uboot-local 59 | } 60 | -------------------------------------------------------------------------------- /conf/packages/08shared-library.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | PACKAGES+=" rootfs-create" 4 | hset rootfs-create url "none" 5 | hset rootfs-create phases "deploy" 6 | hset rootfs-create dir "." 7 | 8 | ####################################################################### 9 | ## Create base rootfs tree 10 | ####################################################################### 11 | deploy-rootfs-create() { 12 | echo " Creating rootfs" 13 | mkdir -p "$ROOTFS" 14 | rm -rf "$ROOTFS"/* 15 | for pd in "$CONF_BASE/rootfs-base" $(minifs_path_split "rootfs"); do 16 | if [ -d "$pd" ]; then 17 | rsync -a "$pd/" "$ROOTFS/" 18 | fi 19 | done 20 | } 21 | -------------------------------------------------------------------------------- /conf/packages/10archive.sh: -------------------------------------------------------------------------------- 1 | 2 | ####################################################################### 3 | ## libarchive 4 | ####################################################################### 5 | 6 | PACKAGES+=" libarchive" 7 | hset libarchive url "http://libarchive.googlecode.com/files/libarchive-2.8.5.tar.gz" 8 | hset libarchive depends "zlib libxml2" 9 | 10 | -------------------------------------------------------------------------------- /conf/packages/11iproute2.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" iproute2" 3 | hset iproute2 url "http://www.kernel.org/pub/linux/utils/net/iproute2/iproute2-3.15.0.tar.gz" 4 | 5 | configure-iproute2() { 6 | configure-generic 7 | } 8 | 9 | compile-iproute2() { 10 | cpwd=`pwd` 11 | compile $MAKE CROSS_COMPILE="${CROSS}-" CFLAGS="$TARGET_CFLAGS -I$cpwd/include" CONFIG_PREFIX="$ROOTFS" SUBDIRS="lib tc" 12 | } 13 | 14 | deploy-iproute2() { 15 | deploy cp tc/tc "$ROOTFS"/bin/ 16 | } 17 | 18 | 19 | -------------------------------------------------------------------------------- /conf/packages/11jtag.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" urjtag" 3 | hset urjtag url "git!git://urjtag.git.sourceforge.net/gitroot/urjtag/urjtag#urjtag-git.tar.bz2" 4 | hset urjtag dir "urjtag/urjtag" 5 | 6 | patch-urjtag() { 7 | echo patch-urjtag 8 | cd urjtag 9 | local v=$(gettext --version | sed -n -r 's/.*\s([0-9]*\.[0-9]*\.[0-9]*)$/\1/p') 10 | sed -i -e "s|^AM_GNU_GETTEXT_VERSION.*$|AM_GNU_GETTEXT_VERSION([$v])|" configure.ac 11 | } 12 | configure-urjtag() { 13 | configure-generic \ 14 | --without-readline --without-libusb --without-libftdi \ 15 | --disable-python --disable-bus --disable-bsdl \ 16 | --enable-cable=gpio \ 17 | --enable-lowlevel=direct 18 | } 19 | deploy-urjtag() { 20 | deploy deploy_binaries 21 | } 22 | -------------------------------------------------------------------------------- /conf/packages/11python.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" python2" 3 | hset python2 url "https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz" 4 | hset python2 depends "busybox" 5 | hset python2 configscript "python-config" 6 | 7 | configure-python2-local() { 8 | { echo ac_cv_file__dev_ptmx=no; 9 | echo ac_cv_file__dev_ptc=no; 10 | } >config.site 11 | configure-generic-local \ 12 | CONFIG_SITE=config.site \ 13 | --disable-ipv6 \ 14 | --enable-optimizations 15 | } 16 | 17 | configure-python2() { 18 | configure configure-python2-local 19 | } 20 | 21 | deploy-python2-local() { 22 | deploy_binaries 23 | ls -l $ROOTFS/usr/bin/py* 24 | # why these aren't picked by the auto-binary deploy is not known 25 | cp $STAGING_USR/bin/python2.* $ROOTFS/usr/bin/ 26 | } 27 | 28 | deploy-python2() { 29 | deploy deploy-python2-local 30 | } 31 | 32 | PACKAGES+=" dbus-glib" 33 | hset dbus-glib url "https://dbus.freedesktop.org/releases/dbus-glib/dbus-glib-0.108.tar.gz" 34 | hset dbus-glib depends "dbus glib" 35 | 36 | patch-dbus-glib() { 37 | { 38 | sed -i -e 's/^SUBDIRS =.*/SUBDIRS = ./' dbus/Makefile.in 39 | sed -i -e 's/^SUBDIRS =.*/SUBDIRS = dbus/' Makefile.in 40 | } 41 | } 42 | 43 | 44 | PACKAGES+=" python-dbus" 45 | hset python-dbus url "https://dbus.freedesktop.org/releases/dbus-python/dbus-python-1.2.4.tar.gz" 46 | hset python-dbus depends "python2 dbus-glib" 47 | 48 | -------------------------------------------------------------------------------- /conf/packages/11rrdtool.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" rrdtool" 3 | hset rrdtool url "http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.5.4.tar.gz" 4 | hset rrdtool depends "libpango libxml2" 5 | 6 | configure-rrdtool() { 7 | export LDFLAGS="$LDFLAGS_RLINK" 8 | configure-generic --disable-nls --disable-perl --disable-lua --disable-ruby rd_cv_ieee_works=yes 9 | export LDFLAGS="$LDFLAGS_BASE" 10 | } 11 | 12 | deploy-rrdtool() { 13 | deploy deploy_binaries 14 | } 15 | -------------------------------------------------------------------------------- /conf/packages/11tcpdump.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" libpcap" 3 | hset libpcap url "http://www.tcpdump.org/release/libpcap-1.3.0.tar.gz" 4 | hset libpcap optional "pfring" 5 | 6 | configure-libpcap() { 7 | configure-generic --with-pcap=linux 8 | } 9 | 10 | PACKAGES+=" tcpdump" 11 | hset tcpdump url "http://www.tcpdump.org/release/tcpdump-4.3.0.tar.gz" 12 | hset tcpdump depends "libpcap" 13 | 14 | configure-tcpdump() { 15 | echo ac_cv_linux_vers=3 >config.cache 16 | configure-generic --cache-file=config.cache 17 | } 18 | 19 | deploy-tcpdump() { 20 | deploy cp tcpdump "$ROOTFS"/bin/ 21 | } 22 | 23 | 24 | ############################################## 25 | # 26 | # Turn out pfring uses stupid binary modules 27 | # in the library, with hard coded architecture 28 | # etc... so it's completely useless. 29 | # 30 | ############################################## 31 | PACKAGES+=" pfring" 32 | hset pfring url "http://downloads.sourceforge.net/project/ntop/PF_RING/PF_RING-5.4.5.tar.gz" 33 | hset pfring targets "pfring-kernel pfring-lib" 34 | 35 | hset pfring-kernel dir "pfring/kernel" 36 | 37 | PACKAGES+=" pfring-kernel" 38 | 39 | # this patch is in the newer 5.4.6 version... 40 | patch-pfring() { 41 | sed -i -e "s|ec_ptr|ax25_ptr|" \ 42 | kernel/linux/pf_ring.h 43 | } 44 | 45 | install-pfring-kernel() { 46 | log_install $MAKE -C "$BUILD"/linux-obj \ 47 | ARCH=$TARGET_KERNEL_ARCH \ 48 | CROSS_COMPILE="${CROSS}-" \ 49 | SUBDIRS=$(pwd) \ 50 | INSTALL_HDR_PATH="$KERNEL" INSTALL_MOD_PATH="$KERNEL" \ 51 | install modules_install 52 | } 53 | 54 | compile-pfring-kernel() { 55 | compile-generic -C "$BUILD"/linux-obj \ 56 | ARCH=$TARGET_KERNEL_ARCH \ 57 | CROSS_COMPILE="${CROSS}-" \ 58 | SUBDIRS=$(pwd) \ 59 | modules 60 | } 61 | 62 | hset pfring-lib dir "pfring/userland/lib" 63 | hset pfring-lib depends "pfring-kernel" 64 | 65 | compile-pfring-lib() { 66 | compile-generic \ 67 | CROSS_COMPILE="${CROSS}-" 68 | } 69 | install-pfring-lib() { 70 | log_install \ 71 | CROSS_COMPILE="${CROSS}-" \ 72 | install 73 | } 74 | 75 | PACKAGES+=" pfring-lib" 76 | 77 | hset pfring-tools dir "pfring/userland/examples" 78 | hset pfring-tools depends "pfring-lib" 79 | 80 | -------------------------------------------------------------------------------- /conf/packages/13nvidia.sh: -------------------------------------------------------------------------------- 1 | 2 | # ftp://download.nvidia.com/XFree86/ 3 | NVIDIA_VERSION=290.10 4 | NVIDIA_NAME="NVIDIA-Linux-$TARGET_ARCH-${NVIDIA_VERSION}" 5 | PACKAGES+=" nvidia" 6 | hset nvidia url "ftp://download.nvidia.com/XFree86/Linux-$TARGET_ARCH/$NVIDIA_VERSION/$NVIDIA_NAME.run" 7 | hset nvidia depends "xorgserver linux-modules" 8 | 9 | setup-nvidia() { 10 | ROOTFS_KEEPERS+="libvdpau.so:" 11 | ROOTFS_KEEPERS+="libvcuvid.so:" 12 | ROOTFS_KEEPERS+="libnvidia-glcore.so.$NVIDIA_VERSION:" 13 | ROOTFS_KEEPERS+="libnvidia-compiler.so.$NVIDIA_VERSION:" 14 | ROOTFS_KEEPERS+="libnvidia-cfg.so.$NVIDIA_VERSION:" 15 | ROOTFS_KEEPERS+="libnvidia-tls.so.$NVIDIA_VERSION:" 16 | } 17 | uncompress-nvidia() { 18 | echo nvidia: $* 19 | sh $2 -x 20 | } 21 | 22 | configure-nvidia() { 23 | # if modules were reinstalled, we need to rebuild too 24 | if [ -e ._conf_nvidia -a \ 25 | ../linux/._install_linux-modules -nt ._conf_nvidia ]; then 26 | rm -f ._conf_nvidia 27 | fi 28 | configure echo Configure nvidia 29 | } 30 | 31 | compile-nvidia-local() { 32 | ( pushd $NVIDIA_NAME/kernel 33 | set -x 34 | $MAKE \ 35 | NVDEBUG=1 \ 36 | SYSOUT="$BUILD/linux-obj" \ 37 | SYSSRC="$BUILD/linux" \ 38 | CC=$GCC \ 39 | HOST_CC=gcc \ 40 | $1 || exit 1 41 | ) || { 42 | echo "### Error building $PACKAGE!" 43 | exit 1 44 | } 45 | } 46 | 47 | compile-nvidia() { 48 | compile compile-nvidia-local module 49 | } 50 | 51 | install-nvidia-local() { 52 | set -x 53 | pushd $NVIDIA_NAME/ 54 | mkdir -p "$BUILD"/kernel/lib/modules/$(hget linux version)/kernel/drivers/video/ 55 | cp kernel/nvidia.ko "$BUILD"/kernel/lib/modules/$(hget linux version)/kernel/drivers/video/ 56 | sh "$PATCHES/nvidia/nvidia-minifs-installer.sh" >../._nvidia_install.sh 57 | DESTDIR="$STAGING_USR" installwatch -o ../._dist_$PACKAGE.log bash ../._nvidia_install.sh 58 | ln -sf libGL.so.1 "$STAGING_USR"/lib/libGL.so.1.2 59 | popd 60 | set +x 61 | } 62 | 63 | install-nvidia() { 64 | log_install install-nvidia-local 65 | } 66 | 67 | deploy-nvidia() { 68 | mkdir -p "$ROOTFS"/etc/X11 69 | deploy deploy_binaries 70 | } 71 | -------------------------------------------------------------------------------- /conf/packages/14mupdf.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" mupdf" 3 | hset mupdf url "git!git://git.ghostscript.com/mupdf.git#mupdf-git.tar.bz2" 4 | hset mupdf depends "libfreetype libjpeg libjbig2dec libopenjpeg" 5 | 6 | configure-mupdf-local() { 7 | sed -i \ 8 | -e 's|$(PDF_APPS) $(XPS_APPS) $(MUPDF)||' \ 9 | -e 's|/usr/local|$(DESTDIR)|' \ 10 | -e 's|debug|release|' \ 11 | Makefile 12 | configure-generic-local 13 | } 14 | configure-mupdf() { 15 | configure configure-mupdf-local 16 | } 17 | -------------------------------------------------------------------------------- /conf/packages/15debug.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" valgrind" 3 | #hset valgrind url "http://valgrind.org/downloads/valgrind-3.8.1.tar.bz2" 4 | hset valgrind url "http://valgrind.org/downloads/valgrind-3.11.0.tar.bz2" 5 | 6 | configure-valgrind-local() { 7 | ( 8 | export CC="$TARGET_FULL_ARCH-gcc" 9 | export AR="$TARGET_FULL_ARCH-ar" 10 | # CFLAGS+=" -I$BUILD/linux/include" 11 | CFLAGS+=" -D__STRUCT_EXEC_OVERRIDE__" 12 | sed -i -e 's/armv7/arm/g' configure.in 13 | rm -f configure 14 | # cheat!! 15 | # we need to fake the fact we are in 32 bits 16 | # TARGET_FULL_ARCH=${TARGET_FULL_ARCH/64/} 17 | # Another hack, tell it we are armv7 not just plain arm 18 | TARGET_FULL_ARCH=${TARGET_FULL_ARCH/arm-/armv7-} 19 | configure-generic-local 20 | ) || return 1 21 | } 22 | configure-valgrind() { 23 | configure configure-valgrind-local 24 | } 25 | 26 | deploy-valgrind() { 27 | deploy deploy_binaries 28 | } 29 | -------------------------------------------------------------------------------- /conf/packages/15node.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" node" 3 | hset node url "http://nodejs.org/dist/v0.8.15/node-v0.8.15.tar.gz" 4 | hset node depends "openssl zlib" 5 | 6 | configure-node-local() { 7 | ( 8 | export LD="$CC" 9 | ./configure --dest-cpu=$TARGET_ARCH --dest-os=linux \ 10 | --without-snapshot --prefix=/usr \ 11 | --shared-zlib \ 12 | --with-arm-float-abi=softfp 13 | ) || return 1 14 | } 15 | configure-node() { 16 | configure configure-node-local 17 | } 18 | 19 | compile-node-local() { 20 | ( 21 | export CFLAGS="$CFLAGS $TARGET_CPPFLAGS" 22 | export CXXFLAGS="$CXXFLAGS $TARGET_CPPFLAGS" 23 | export LDFLAGS="$LDFLAGS_RLINK -lstdc++" 24 | compile-generic 25 | ) || return 1 26 | } 27 | compile-node() { 28 | compile compile-node-local 29 | } 30 | 31 | install-node-local() { 32 | ( 33 | export CFLAGS="$CFLAGS $TARGET_CPPFLAGS" 34 | export CXXFLAGS="$CXXFLAGS $TARGET_CPPFLAGS" 35 | export LDFLAGS="$LDFLAGS_RLINK -lstdc++" 36 | install-generic -j$MINIFS_JOBS 37 | ) || return 1 38 | } 39 | install-node() { 40 | log_install install-node-local 41 | } 42 | deploy-node() { 43 | deploy deploy_binaries 44 | } 45 | -------------------------------------------------------------------------------- /conf/packages/18qt.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" qt" 3 | V="4.7.2" 4 | hset qt version $V 5 | hset qt url "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-$V.tar.gz" 6 | hset qt depends "zlib libjpeg libpng libfreetype libts libfontconfig" 7 | 8 | configure-qt() { 9 | ( 10 | unset CC CXX CCFLAGS CXXFLAGS 11 | configure ./configure \ 12 | -opensource \ 13 | -prefix "$STAGING_USR" \ 14 | -L "$STAGING_USR"/lib \ 15 | -I "$STAGING_USR"/include \ 16 | -release -shared \ 17 | -fast \ 18 | -pch \ 19 | -no-qt3support \ 20 | -qt-sql-sqlite \ 21 | -no-libtiff -no-libmng \ 22 | -no-openssl \ 23 | -nomake examples -nomake demos -nomake tools\ 24 | -optimized-qmake \ 25 | -no-phonon \ 26 | -no-nis \ 27 | -no-opengl \ 28 | -no-cups \ 29 | -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm\ 30 | -no-xinerama -no-xshape \ 31 | -no-separate-debug-info \ 32 | -xplatform qws/linux-arm-g++ \ 33 | -embedded arm \ 34 | -depths 16 \ 35 | -no-qvfb \ 36 | -qt-gfx-linuxfb \ 37 | -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb\ 38 | -confirm-license \ 39 | -qt-kbd-linuxinput \ 40 | -qt-mouse-linuxinput \ 41 | -qt-mouse-tslib \ 42 | -fontconfig 43 | ) || return 1 44 | } 45 | -------------------------------------------------------------------------------- /conf/packages/26enlightenment.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" libeina" 3 | hset libeina url "http://download.enlightenment.org/releases/eina-1.7.7.tar.gz" 4 | 5 | PACKAGES+=" libeet" 6 | hset libeet url "http://download.enlightenment.org/releases/eet-1.7.7.tar.gz" 7 | hset libeet depends "libeina" 8 | 9 | PACKAGES+=" libevas" 10 | hset libevas url "http://download.enlightenment.org/releases/evas-1.7.7.tar.gz" 11 | hset libevas depends "libpixman libeet" 12 | hset libevas optional "libjpeg libpng libpixman libharfbuzz" 13 | 14 | PACKAGES+=" libeio" 15 | hset libeio url "http://download.enlightenment.org/releases/eet-1.7.7.tar.gz" 16 | hset libeio depends "libeet" 17 | 18 | PACKAGES+=" libecore" 19 | hset libecore url "http://download.enlightenment.org/releases/ecore-1.7.7.tar.gz" 20 | hset libecore depends "libeio libevas" 21 | 22 | 23 | -------------------------------------------------------------------------------- /conf/packages/26ppp.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" ppp" 3 | hset ppp url "ftp://ftp.samba.org/pub/ppp/ppp-2.4.1.tar.gz" 4 | hset ppp depends "busybox" 5 | 6 | install-ppp() { 7 | install-generic 8 | chmod 0755 $(get_installed_binaries) 9 | } 10 | 11 | deploy-ppp() { 12 | deploy deploy_binaries 13 | } 14 | 15 | PACKAGES+=" lrzsz" 16 | hset lrzsz url "http://http.debian.net/debian/pool/main/l/lrzsz/lrzsz_0.12.21.orig.tar.gz" 17 | hset lrzsz depends "busybox" 18 | 19 | deploy-lrzsz() { 20 | deploy deploy_binaries 21 | } 22 | -------------------------------------------------------------------------------- /conf/packages/30avahi.sh: -------------------------------------------------------------------------------- 1 | 2 | # http://0pointer.de/lennart/projects/libdaemon/ 3 | PACKAGES+=" libdaemon" 4 | hset libdaemon url "http://0pointer.de/lennart/projects/libdaemon/libdaemon-0.14.tar.gz" 5 | #hset libdaemon depends "libdaemon" 6 | 7 | configure-libdaemon-local() { 8 | cat <<-END >config-fake.cache 9 | ac_cv_func_setpgrp_void=no 10 | END 11 | configure-generic-local \ 12 | --cache=config-fake.cache 13 | } 14 | configure-libdaemon() { 15 | configure configure-libdaemon-local 16 | } 17 | 18 | # http://avahi.org/ 19 | PACKAGES+=" avahi" 20 | #hset avahi url "http://avahi.org/download/avahi-0.6.30.tar.gz" 21 | hset avahi url "https://github.com/lathiat/avahi/releases/download/v0.6.32/avahi-0.6.32.tar.gz" 22 | hset avahi depends "libdaemon libexpat dbus" 23 | 24 | hostcheck-avahi() { 25 | hostcheck_commands intltoolize 26 | } 27 | 28 | configure-avahi-local() { 29 | export LDFLAGS="$LDFLAGS_RLINK -lintl" 30 | configure-generic-local \ 31 | --with-distro=none \ 32 | --disable-glib \ 33 | --disable-gtk \ 34 | --disable-gtk3 \ 35 | --disable-qt3 \ 36 | --disable-qt4 \ 37 | --disable-autoipd \ 38 | --disable-gdbm \ 39 | --disable-gobject \ 40 | --disable-mono \ 41 | --disable-python \ 42 | --enable-compat-libdns_sd \ 43 | --localstatedir=/tmp 44 | export LDFLAGS="$LDFLAGS_BASE" 45 | } 46 | configure-avahi() { 47 | configure configure-avahi-local 48 | } 49 | 50 | deploy-avahi-local() { 51 | deploy_binaries 52 | 53 | cat >>"$ROOTFS"/etc/passwd <<-END 54 | avahi:x:1000:1000:avahi:/home:/bin/false 55 | END 56 | cat >>"$ROOTFS"/etc/group <<-END 57 | avahi:x:1000: 58 | END 59 | cat >>"$ROOTFS"/etc/network-up.sh <<-EOF 60 | echo "* Starting avahi..." 61 | avahi-daemon -D & 62 | EOF 63 | } 64 | 65 | deploy-avahi() { 66 | deploy deploy-avahi-local 67 | } 68 | -------------------------------------------------------------------------------- /conf/packages/50mjpeg-streamer.sh: -------------------------------------------------------------------------------- 1 | 2 | ####################################################################### 3 | ## mjpg-streamer 4 | ####################################################################### 5 | PACKAGES+=" mjpg" 6 | 7 | hset mjpg url "mjpg-streamer.tar.bz2" 8 | hset mjpg depends "busybox libjpeg" 9 | 10 | download-mjpg() { 11 | pushd "$DOWNLOAD" 12 | if [ ! -f "mjpg-streamer.tar.bz2" ]; then 13 | echo "#### Downloading SVN and creating tarball of mjpg-streamer" 14 | svn co "https://mjpg-streamer.svn.sourceforge.net/svnroot/mjpg-streamer/mjpg-streamer" && 15 | tar jcf mjpg-streamer.tar.bz2 mjpg-streamer && 16 | rm -rf mjpg-streamer 17 | fi 18 | popd 19 | } 20 | 21 | configure-mjpg() { 22 | configure echo Done 23 | } 24 | compile-mjpg() { 25 | compile $MAKE CC="$GCC" \ 26 | EXTRA_LDFLAGS="-L $STAGING_USR/lib" \ 27 | EXTRA_CFLAGS="-Os -I$STAGING_USR/include $TARGET_CFLAGS" \ 28 | STATIC=1 29 | } 30 | install-mjpg() { 31 | log_install echo Done 32 | } 33 | deploy-mjpg() { 34 | deploy cp -ra mjpg_streamer www "$ROOTFS"/bin/ 35 | 36 | cat >>"$ROOTFS"/etc/init.d/rcS <<-EOF 37 | 38 | echo "* Starting mjpg_streamer..." 39 | /bin/mjpg_streamer -b -i "input_uvc.so -f 15 -r 960x720" -o "output_http.so -w /opt/www -p 80" 40 | EOF 41 | # now add the load module for the camera 42 | sed -i ' 43 | /^# LOAD MODULES/ a\ 44 | modprobe uvcvideo >/dev/null 2>&1 45 | ' "$ROOTFS"/etc/init.d/rcS 46 | } 47 | 48 | -------------------------------------------------------------------------------- /conf/packages/80dropbear.sh: -------------------------------------------------------------------------------- 1 | ####################################################################### 2 | ## dropbear 3 | ####################################################################### 4 | PACKAGES+=" dropbear" 5 | 6 | V="2017.75" 7 | hset dropbear version $V 8 | hset dropbear url "http://matt.ucc.asn.au/dropbear/releases/dropbear-$V.tar.bz2" 9 | hset dropbear prefix "/" 10 | hset dropbear depends "busybox zlib" 11 | hset dropbear optional "pam" 12 | 13 | configure-dropbear() { 14 | if [ "$TARGET_SHARED" -eq 0 ]; then 15 | configure-generic \ 16 | --enable-static --disable-shared LDFLAGS=-static --enable-pam 17 | else 18 | configure-generic --enable-pam 19 | fi 20 | } 21 | 22 | compile-dropbear() { 23 | if [ "$TARGET_SHARED" -eq 0 ]; then 24 | compile $MAKE -j8 PROGRAMS="dropbear dropbearkey scp dbclient" STATIC=1 SCPPROGRESS=1 25 | else 26 | compile $MAKE -j8 PROGRAMS="dropbear dropbearkey scp dbclient" SCPPROGRESS=1 27 | fi 28 | } 29 | 30 | install-dropbear() { 31 | install echo Done 32 | } 33 | 34 | deploy-dropbear-local() { 35 | cp dropbear dropbearkey scp dbclient \ 36 | "$ROOTFS"/bin/ 37 | mkdir -p "$ROOTFS/etc/dropbear" 38 | if [ ! -f "$BUILD"/dropbear_dss_host_key ]; then 39 | echo -n "#### generating new dropbear keys : " 40 | { 41 | qemu-$TARGET_ARCH -L $ROOTFS ./dropbearkey -t dss -f "$BUILD"/dropbear_dss_host_key 42 | qemu-$TARGET_ARCH -L $ROOTFS ./dropbearkey -t rsa -f "$BUILD"/dropbear_rsa_host_key 43 | echo " done" 44 | } || echo " FAILED" 45 | fi 46 | 47 | if [ -f "$BUILD"/dropbear_dss_host_key ]; then 48 | cp "$BUILD"/dropbear_*_host_key "$ROOTFS"/etc/dropbear/ 49 | fi 50 | mkdir -p "$ROOTFS"/var/log && 51 | touch "$ROOTFS"/var/log/lastlog "$ROOTFS"/var/log/wtmp 52 | } 53 | 54 | deploy-dropbear() { 55 | deploy deploy-dropbear-local 56 | } 57 | -------------------------------------------------------------------------------- /conf/packages/80mdnsresponder.sh: -------------------------------------------------------------------------------- 1 | 2 | ####################################################################### 3 | ## mDNSResponder 4 | ####################################################################### 5 | PACKAGES+=" mDNSResponder" 6 | #V="107.6" 7 | V="320.5.1" 8 | hset mDNSResponder version $V 9 | hset mDNSResponder url "http://www.opensource.apple.com/darwinsource/tarballs/other/mDNSResponder-$V.tar.gz" 10 | hset mDNSResponder depends "busybox" 11 | 12 | configure-mDNSResponder() { 13 | configure sed -i -e 's|/var/run|/tmp/run|g' mDNSPosix/Makefile 14 | } 15 | 16 | compile-mDNSResponder-local() { 17 | $MAKE -C mDNSPosix \ 18 | libdns_sd \ 19 | os=linux CC="ccfix $TARGET_FULL_ARCH-gcc" STRIP="$TARGET_FULL_ARCH-strip" \ 20 | LD="$TARGET_FULL_ARCH-gcc" \ 21 | CFLAGS_CROSS="-Os $TARGET_CFLAGS -I$STAGING/include" \ 22 | LINKOPTS="$LDFLAGS -shared -Wl,-soname,libdns_sd.so" && 23 | $MAKE -C mDNSPosix \ 24 | SAResponder Daemon \ 25 | os=linux CC="ccfix $TARGET_FULL_ARCH-gcc" STRIP="$TARGET_FULL_ARCH-strip" \ 26 | LD="$TARGET_FULL_ARCH-ld" \ 27 | CFLAGS_CROSS="-Os $TARGET_CFLAGS -I$STAGING/include" \ 28 | LINKOPTS="$LDFLAGS" 29 | } 30 | compile-mDNSResponder() { 31 | compile compile-mDNSResponder-local 32 | } 33 | 34 | install-mDNSResponder-local() { 35 | cp mDNSPosix/build/prod/mDNSResponderPosix "$STAGING_USR"/bin/ 36 | cp mDNSPosix/build/prod/mdnsd "$STAGING_USR"/bin/ 37 | cp mDNSPosix/build/prod/libdns_sd.so "$STAGING_USR"/lib/ 38 | cp mDNSShared/dns_sd.h "$STAGING_USR"/include/ 39 | } 40 | 41 | install-mDNSResponder() { 42 | log_install install-mDNSResponder-local 43 | } 44 | 45 | deploy-mDNSResponder() { 46 | deploy cp \ 47 | "$STAGING_USR"/bin/mDNSResponderPosix \ 48 | "$STAGING_USR"/bin/mdnsd \ 49 | "$ROOTFS"/usr/bin/ 50 | } 51 | -------------------------------------------------------------------------------- /conf/packages/80opencv.sh: -------------------------------------------------------------------------------- 1 | 2 | 3 | PACKAGES+=" opencv" 4 | hset opencv url "http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.2/OpenCV-2.2.0.tar.bz2" 5 | 6 | hostcheck-opencv() { 7 | hostcheck_commands cmake 8 | } 9 | 10 | setup-opencv() { 11 | mkdir -p build 12 | cd build 13 | } 14 | 15 | configure-opencv-local() { 16 | # set -x 17 | cat <cmake-toolchain.conf 18 | INCLUDE(CMakeForceCompiler) 19 | SET(CMAKE_SYSTEM_NAME Linux) 20 | 21 | CMAKE_FORCE_C_COMPILER($CC GNU) 22 | CMAKE_FORCE_CXX_COMPILER($CXX GNU) 23 | SET(CMAKE_AR $TOOLCHAIN/$TARGET_FULL_ARCH/bin/$TARGET_FULL_ARCH-ar) 24 | SET(CMAKE_LINKER $TOOLCHAIN/$TARGET_FULL_ARCH/bin/$TARGET_FULL_ARCH-ld) 25 | 26 | SET(CMAKE_INSTALL_PREFIX $STAGING_USR) 27 | 28 | # where is the target environment 29 | SET(CMAKE_FIND_ROOT_PATH $STAGING_USR) 30 | 31 | # search for programs in the build host directories 32 | SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) 33 | # for libraries and headers in the target directories 34 | SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) 35 | SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) 36 | 37 | SET(BUILD_TESTS OFF) 38 | 39 | SET(ENABLE_SSE3 ON) 40 | SET(ENABLE_SSSE3 ON) 41 | 42 | SET(PYTHON_LIBRARY PYTHON_LIBRARY-NOTFOUND) 43 | END 44 | cmake -DCMAKE_TOOLCHAIN_FILE=cmake-toolchain.conf .. 45 | } 46 | 47 | configure-opencv() { 48 | configure configure-opencv-local 49 | } 50 | 51 | compile-opencv() { 52 | compile-generic VERBOSE=1 53 | } 54 | 55 | 56 | PACKAGES+=" libclutter" 57 | hset libclutter url "http://source.clutter-project.org/sources/clutter/1.6/clutter-1.6.8.tar.bz2" 58 | hset libclutter depends "libglibjson" 59 | -------------------------------------------------------------------------------- /conf/packages/85doom.sh: -------------------------------------------------------------------------------- 1 | PACKAGES+=" sdldoom" 2 | hset sdldoom url "http://www.libsdl.org/projects/doom/src/sdldoom-1.10.tar.gz" 3 | hset sdldoom depends "libsdl" 4 | 5 | download-sdldoom() { 6 | if [ ! -f doom1.wad.gz ]; then 7 | wget "http://www.libsdl.org/projects/doom/data/doom1.wad.gz" 8 | fi 9 | } 10 | 11 | configure-sdldoom() { 12 | configure-generic 13 | } 14 | 15 | deploy-sdldoom-local() { 16 | set -x 17 | mkdir -p "$ROOTFS"/usr/share/ 18 | gzip -dc "$BASE"/download/doom1.wad.gz \ 19 | >"$ROOTFS"/usr/share/doom1.wad 20 | cp deploy_binaries 21 | set +x 22 | } 23 | 24 | deploy-sdldoom() { 25 | deploy deploy-sdldoom-local 26 | } 27 | -------------------------------------------------------------------------------- /conf/packages/85michel.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" sensors" 3 | hset sensors url "none" 4 | hset sensors dir "." 5 | hset sensors destdir "$STAGING_USR" 6 | hset sensors depends "libusb" 7 | 8 | configure-sensors() { 9 | configure echo Done 10 | } 11 | compile-sensors() { 12 | compile-generic \ 13 | -C $HOME/Sources/Utils/sensors \ 14 | CROSS_COMPILE="$TARGET_FULL_ARCH"- \ 15 | EXTRA_LDFLAGS="$LDFLAGS_RLINK" \ 16 | EXTRA_CFLAGS="$CFLAGS" 17 | } 18 | install-sensors() { 19 | install-generic \ 20 | -C $HOME/Sources/Utils/sensors \ 21 | CROSS_COMPILE="$TARGET_FULL_ARCH"- 22 | } 23 | deploy-sensors() { 24 | deploy cp "$STAGING_USR"/bin/sensor* "$ROOTFS"/usr/bin/ 25 | cat >>"$ROOTFS"/etc/init.d/rcS <<-EOF 26 | 27 | echo "* Starting sensor-mcast..." 28 | /usr/bin/sensors-mcast -d 29 | EOF 30 | } 31 | 32 | -------------------------------------------------------------------------------- /conf/packages/85target-tools.sh: -------------------------------------------------------------------------------- 1 | PACKAGES+=" syslinux" 2 | hset syslinux url "http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-4.04.tar.bz2" 3 | #hset syslinux depends "linux-modules" 4 | hset syslinux phases "deploy" 5 | 6 | compile-syslinux() { 7 | compile-generic \ 8 | CC="$CC" LD="$LD" \ 9 | CFLAGS="$CFLAGS" \ 10 | LDFLAGS="$LDFLAGS_RLINK" 11 | } 12 | 13 | install-syslinux() { 14 | install-generic \ 15 | CC="$CC" LD="$LD" \ 16 | CFLAGS="$CFLAGS" \ 17 | LDFLAGS="$LDFLAGS_RLINK" 18 | } 19 | 20 | deploy-syslinux() { 21 | deploy echo Done 22 | } 23 | 24 | PACKAGES+=" targettools" 25 | hset targettools url "none" 26 | hset targettools dir "." 27 | hset targettools destdir "$STAGING_USR" 28 | hset targettools tools "all" 29 | hset targettools depends "syslinux" 30 | 31 | configure-targettools() { 32 | configure echo Done 33 | } 34 | compile-targettools() { 35 | local tools=$(hget targettools tools) 36 | local ldflags=$(hget targetools ldflags) 37 | compile-generic \ 38 | -C $CONF_BASE/target-tools \ 39 | STAGING="$STAGING_USR" \ 40 | LDFLAGS="$LDFLAGS_BASE $ldflags" \ 41 | TOOLS="$tools" 42 | } 43 | install-targettools() { 44 | log_install echo Done 45 | } 46 | deploy-targettools() { 47 | local tools=$(hget targettools tools) 48 | deploy make \ 49 | -C $CONF_BASE/target-tools \ 50 | STAGING="$STAGING_USR" \ 51 | ROOT="$ROOTFS" \ 52 | TOOLS="$tools" \ 53 | deploy 54 | } 55 | 56 | -------------------------------------------------------------------------------- /conf/packages/86mqtt.sh: -------------------------------------------------------------------------------- 1 | 2 | PACKAGES+=" libares" 3 | hset libares url "https://c-ares.haxx.se/download/c-ares-1.14.0.tar.gz" 4 | 5 | PACKAGES+=" mosquitto" 6 | hset mosquitto url "http://mosquitto.org/files/source/mosquitto-1.4.14.tar.gz" 7 | hset mosquitto depends "libares openssl util-linux" 8 | hset mosquitto destdir "$STAGING_USR" 9 | 10 | configure-mosquitto-local() { 11 | 12 | configure-generic 13 | } 14 | 15 | configure-mosquitto() { 16 | configure configure-mosquitto-local 17 | } 18 | 19 | compile-mosquitto() { 20 | export LDFLAGS="$LDFLAGS_RLINK" 21 | compile-generic CROSS_COMPILE=$TARGET_FULL_ARCH 22 | export LDFLAGS="$LDFLAGS_BASE" 23 | } 24 | 25 | install-mosquitto() { 26 | install-generic prefix= CROSS_COMPILE="$TARGET_FULL_ARCH-" 27 | } 28 | 29 | deploy-mosquitto-local() { 30 | deploy_binaries 31 | cat >>"$ROOTFS"/etc/passwd <<-END 32 | mosquitto:x:1010:1010:sshd:/home:/bin/false 33 | END 34 | cat >>"$ROOTFS"/etc/group <<-END 35 | mosquitto:x:1010: 36 | END 37 | cat >>"$ROOTFS"/etc/network-up.sh <<-EOF 38 | echo "* Starting mosquitto..." 39 | /usr/sbin/mosquitto -d 40 | EOF 41 | } 42 | 43 | deploy-mosquitto() { 44 | deploy deploy-mosquitto-local 45 | } 46 | -------------------------------------------------------------------------------- /conf/patches/alsautils/0002-fix-for-poll-constants-with-uclibc.patch: -------------------------------------------------------------------------------- 1 | diff -ru alsautils.orig/axfer/waiter-select.c alsautils/axfer/waiter-select.c 2 | --- alsautils.orig/axfer/waiter-select.c 2019-04-23 08:56:41.587343598 +0100 3 | +++ alsautils/axfer/waiter-select.c 2019-04-23 08:57:29.790542116 +0100 4 | @@ -15,8 +15,8 @@ 5 | #include 6 | 7 | // Except for POLLERR. 8 | -#define POLLIN_SET (POLLRDNORM | POLLRDBAND | POLLIN | POLLHUP) 9 | -#define POLLOUT_SET (POLLWRBAND | POLLWRNORM | POLLOUT) 10 | +#define POLLIN_SET (POLLIN | POLLHUP) 11 | +#define POLLOUT_SET (POLLOUT) 12 | #define POLLEX_SET (POLLPRI) 13 | 14 | struct select_state { 15 | -------------------------------------------------------------------------------- /conf/patches/alsautils/001-fix-for-exp10.patch: -------------------------------------------------------------------------------- 1 | --- alsa-utils-1.0.24.2.orig/alsamixer/volume_mapping.c 2 | +++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c 3 | @@ -36,6 +36,9 @@ 4 | #include 5 | #include 6 | #include "volume_mapping.h" 7 | +#ifdef __UCLIBC__ 8 | +#define exp10(x) (pow(10, (x))) 9 | +#endif /* __UCLIBC__ */ 10 | 11 | #define MAX_LINEAR_DB_SCALE 24 12 | 13 | -------------------------------------------------------------------------------- /conf/patches/busybox/busybox-flashcp.patch: -------------------------------------------------------------------------------- 1 | diff -cr busybox-1.21.1/miscutils/flashcp.c busybox/miscutils/flashcp.c 2 | *** busybox-1.21.1/miscutils/flashcp.c Sat Jun 29 15:58:06 2013 3 | --- busybox/miscutils/flashcp.c Fri Mar 14 15:43:53 2014 4 | *************** 5 | *** 22,37 **** 6 | 7 | #define BUFSIZE (8 * 1024) 8 | 9 | static void progress(int mode, uoff_t count, uoff_t total) 10 | { 11 | uoff_t percent; 12 | 13 | if (!option_mask32) //if (!(option_mask32 & OPT_v)) 14 | return; 15 | percent = count * 100; 16 | if (total) 17 | percent = (unsigned) (percent / total); 18 | ! printf("\r%s: %"OFF_FMT"u/%"OFF_FMT"u (%u%%) ", 19 | (mode < 0) ? "Erasing block" : ((mode == 0) ? "Writing kb" : "Verifying kb"), 20 | count, total, (unsigned)percent); 21 | fflush_all(); 22 | --- 22,45 ---- 23 | 24 | #define BUFSIZE (8 * 1024) 25 | 26 | + #define LINE_NL 27 | + #define LINE_PREFIX // "\r" 28 | + #define LINE_SUFFIX "\n" // "" 29 | + 30 | static void progress(int mode, uoff_t count, uoff_t total) 31 | { 32 | uoff_t percent; 33 | + static uoff_t lastv = ~0; 34 | 35 | if (!option_mask32) //if (!(option_mask32 & OPT_v)) 36 | return; 37 | percent = count * 100; 38 | if (total) 39 | percent = (unsigned) (percent / total); 40 | ! if ((percent >= lastv) && (percent - lastv) < 5 && percent != 100) 41 | ! return; 42 | ! lastv = percent; 43 | ! printf(LINE_PREFIX "%s: %"OFF_FMT"u/%"OFF_FMT"u (%u%%) " LINE_SUFFIX, 44 | (mode == 0) ? "Erasing block" : ((mode == 1) ? "Writing kb" : "Verifying kb"), 45 | count, total, (unsigned)percent); 46 | fflush_all(); 47 | *************** 48 | *** 41,47 **** 49 | --- 49,57 ---- 50 | { 51 | if (!option_mask32) //if (!(option_mask32 & OPT_v)) 52 | return; 53 | + #ifndef LINE_NL 54 | bb_putchar('\n'); 55 | + #endif 56 | } 57 | 58 | int flashcp_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 59 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.19.0/cc-gcc-fix-problem-with-gcc-4.8.1-and-gcc-4.8.2-and-parallel-build.patch: -------------------------------------------------------------------------------- 1 | diff -r 7e569a9cb5fd -r ea83356683a8 patches/gcc/4.8.1/001-gcc_4_8_1_parallel_build_failure_file_57683.patch 2 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3 | +++ b/patches/gcc/4.8.1/001-gcc_4_8_1_parallel_build_failure_file_57683.patch Sun Nov 17 11:48:24 2013 +0100 4 | @@ -0,0 +1,13 @@ 5 | +--- a/gcc/Makefile.in 2013-05-22 02:00:49.000000000 +1000 6 | ++++ b/gcc/Makefile.in 2013-06-23 19:00:25.000000000 +1000 7 | +@@ -3801,8 +3801,8 @@ s-gtype: build/gengtype$(build_exeext) $ 8 | + $(STAMP) s-gtype 9 | + 10 | + generated_files = config.h tm.h $(TM_P_H) $(TM_H) multilib.h \ 11 | +- $(simple_generated_h) specs.h \ 12 | +- tree-check.h genrtl.h insn-modes.h tm-preds.h tm-constrs.h \ 13 | ++ $(simple_generated_h) specs.h tree-check.h insn-opinit.h \ 14 | ++ genrtl.h insn-modes.h tm-preds.h tm-constrs.h \ 15 | + $(ALL_GTFILES_H) gtype-desc.c gtype-desc.h gcov-iov.h 16 | + 17 | + # In order for parallel make to really start compiling the expensive 18 | diff -r 7e569a9cb5fd -r ea83356683a8 patches/gcc/4.8.2/001-gcc_4_8_2_parallel_build_failure_file_57683.patch 19 | --- /dev/null Thu Jan 01 00:00:00 1970 +0000 20 | +++ b/patches/gcc/4.8.2/001-gcc_4_8_2_parallel_build_failure_file_57683.patch Sun Nov 17 11:48:24 2013 +0100 21 | @@ -0,0 +1,13 @@ 22 | +--- a/gcc/Makefile.in 2013-05-22 02:00:49.000000000 +1000 23 | ++++ b/gcc/Makefile.in 2013-06-23 19:00:25.000000000 +1000 24 | +@@ -3801,8 +3801,8 @@ s-gtype: build/gengtype$(build_exeext) $ 25 | + $(STAMP) s-gtype 26 | + 27 | + generated_files = config.h tm.h $(TM_P_H) $(TM_H) multilib.h \ 28 | +- $(simple_generated_h) specs.h \ 29 | +- tree-check.h genrtl.h insn-modes.h tm-preds.h tm-constrs.h \ 30 | ++ $(simple_generated_h) specs.h tree-check.h insn-opinit.h \ 31 | ++ genrtl.h insn-modes.h tm-preds.h tm-constrs.h \ 32 | + $(ALL_GTFILES_H) gtype-desc.c gtype-desc.h gcov-iov.h 33 | + 34 | + # In order for parallel make to really start compiling the expensive 35 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/0002-libtoolize.patch: -------------------------------------------------------------------------------- 1 | From 0414dcfcfd4158a1a81895d04888ec5092237783 Mon Sep 17 00:00:00 2001 2 | From: Murat Kilivan 3 | Date: Mon, 17 Sep 2012 15:37:13 +0300 4 | Subject: [PATCH] libtoolize 5 | 6 | --- 7 | scripts/build/companion_libs/cloog.sh | 4 ++++ 8 | 1 file changed, 4 insertions(+) 9 | 10 | diff --git a/scripts/build/companion_libs/cloog.sh b/scripts/build/companion_libs/cloog.sh 11 | index 6408782..595cd8a 100644 12 | --- a/scripts/build/companion_libs/cloog.sh 13 | +++ b/scripts/build/companion_libs/cloog.sh 14 | @@ -35,6 +35,10 @@ do_cloog_extract() { 15 | CT_DoExecLog CFG ./autogen.sh 16 | CT_Popd 17 | fi 18 | + 19 | + CT_Pushd "${CT_SRC_DIR}/cloog-ppl-${CT_CLOOG_VERSION}" 20 | + CT_DoExecLog CFG libtoolize -c 21 | + CT_Popd 22 | } 23 | 24 | # Build CLooG/PPL for running on build 25 | -- 26 | 1.7.10.4 27 | 28 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/0002-disable-ipv6-DNS-lookups-when-isolated-lp-417757.patch: -------------------------------------------------------------------------------- 1 | From b11a2509dccda4531f8b8933f85b19a583b3f5fc Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 06:04:28 +0000 4 | Subject: [PATCH 02/10] disable ipv6 DNS lookups when isolated (lp:417757) 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/check_pf.c | 3 ++- 8 | 1 files changed, 2 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c 11 | index b789a32..5630e86 100644 12 | --- a/sysdeps/unix/sysv/linux/check_pf.c 13 | +++ b/sysdeps/unix/sysv/linux/check_pf.c 14 | @@ -176,7 +176,8 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6, 15 | } 16 | else 17 | { 18 | - if (!IN6_IS_ADDR_LOOPBACK (address)) 19 | + if (!IN6_IS_ADDR_LOOPBACK (address) 20 | + && !IN6_IS_ADDR_LINKLOCAL(address)) 21 | *seen_ipv6 = true; 22 | } 23 | } 24 | -- 25 | 1.7.0.4 26 | 27 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/1001-submitted-leading-zero-stack-guard.patch: -------------------------------------------------------------------------------- 1 | Description: require that the first byte in the stack guard in a NULL byte, 2 | to improve mitigation of NULL-terminated string overflows. 3 | Bug: http://sourceware.org/bugzilla/show_bug.cgi?id=10149 4 | Bug-Ubuntu: https://bugs.launchpad.net/bugs/413278 5 | Author: Kees Cook 6 | 7 | --- 8 | sysdeps/unix/sysv/linux/dl-osinfo.h | 21 +++++++++++++-------- 9 | 1 file changed, 13 insertions(+), 8 deletions(-) 10 | 11 | --- a/sysdeps/unix/sysv/linux/dl-osinfo.h 12 | +++ b/sysdeps/unix/sysv/linux/dl-osinfo.h 13 | @@ -65,7 +65,12 @@ 14 | static inline uintptr_t __attribute__ ((always_inline)) 15 | _dl_setup_stack_chk_guard (void *dl_random) 16 | { 17 | - uintptr_t ret; 18 | + uintptr_t ret = 0; 19 | + /* Having a leading zero byte protects the stack guard from being 20 | + overwritten with str* write operations or exposed by an 21 | + unterminated str* read operation. */ 22 | + unsigned char *p = ((unsigned char *) &ret) + 1; 23 | + int size = sizeof (ret) - 1; 24 | #ifndef __ASSUME_AT_RANDOM 25 | if (__builtin_expect (dl_random == NULL, 0)) 26 | { 27 | @@ -73,16 +78,16 @@ 28 | int fd = __open ("/dev/urandom", O_RDONLY); 29 | if (fd >= 0) 30 | { 31 | - ssize_t reslen = __read (fd, &ret, sizeof (ret)); 32 | + ssize_t reslen = __read (fd, p, size); 33 | __close (fd); 34 | - if (reslen == (ssize_t) sizeof (ret)) 35 | + if (reslen == (ssize_t) size) 36 | return ret; 37 | } 38 | # endif 39 | - ret = 0; 40 | - unsigned char *p = (unsigned char *) &ret; 41 | - p[sizeof (ret) - 1] = 255; 42 | - p[sizeof (ret) - 2] = '\n'; 43 | + /* Lacking any other form of randomized stack guard, add other 44 | + terminators in an attempt to block things like fgets, etc. */ 45 | + p[size - 1] = 255; 46 | + p[size - 2] = '\n'; 47 | #ifdef HP_TIMING_NOW 48 | hp_timing_t hpt; 49 | HP_TIMING_NOW (hpt); 50 | @@ -115,7 +120,7 @@ 51 | /* We need in the moment only 8 bytes on 32-bit platforms and 16 52 | bytes on 64-bit platforms. Therefore we can use the data 53 | directly and not use the kernel-provided data to seed a PRNG. */ 54 | - memcpy (&ret, dl_random, sizeof (ret)); 55 | + memcpy (p, dl_random, size); 56 | return ret; 57 | } 58 | 59 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2001-cvs-at-pagesize.patch: -------------------------------------------------------------------------------- 1 | From 7ca807b86479abf19b28e7ac7e0aeae4e139da1b Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2001/2070] cvs-at-pagesize.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/getpagesize.c | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/getpagesize.c b/sysdeps/unix/sysv/linux/getpagesize.c 11 | index 0866079..fe9bc8e 100644 12 | --- a/sysdeps/unix/sysv/linux/getpagesize.c 13 | +++ b/sysdeps/unix/sysv/linux/getpagesize.c 14 | @@ -28,7 +28,7 @@ 15 | int 16 | __getpagesize () 17 | { 18 | -#ifdef __ASSUME_AT_PAGESIZE 19 | +#if 0 && defined __ASSUME_AT_PAGESIZE 20 | assert (GLRO(dl_pagesize) != 0); 21 | return GLRO(dl_pagesize); 22 | #else 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2002-cvs-dl-missing-deps.patch: -------------------------------------------------------------------------------- 1 | From 787ab0f147c5aabeee7cc76e962950d3c50a289e Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2002/2070] cvs-dl-missing-deps.patch 5 | 6 | --- 7 | elf/dl-deps.c | 8 ++++---- 8 | 1 files changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/elf/dl-deps.c b/elf/dl-deps.c 11 | index 524d76e..bd81677 100644 12 | --- a/elf/dl-deps.c 13 | +++ b/elf/dl-deps.c 14 | @@ -491,6 +491,10 @@ _dl_map_object_deps (struct link_map *map, 15 | if (errno == 0 && errno_saved != 0) 16 | __set_errno (errno_saved); 17 | 18 | + if (errno_reason) 19 | + _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname, 20 | + NULL, errstring); 21 | + 22 | struct link_map **old_l_initfini = NULL; 23 | if (map->l_initfini != NULL && map->l_type == lt_loaded) 24 | { 25 | @@ -683,8 +687,4 @@ Filters not supported with LD_TRACE_PRELINKING")); 26 | } 27 | if (old_l_initfini != NULL) 28 | _dl_scope_free (old_l_initfini); 29 | - 30 | - if (errno_reason) 31 | - _dl_signal_error (errno_reason == -1 ? 0 : errno_reason, objname, 32 | - NULL, errstring); 33 | } 34 | -- 35 | 1.7.0.4 36 | 37 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2005-fedora-nss_dns-gethostbyname4-disable.patch: -------------------------------------------------------------------------------- 1 | From 6e6859fe14f9880c6f13ddc0d9364f3a6ff0dfda Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2005/2070] fedora-nss_dns-gethostbyname4-disable.patch 5 | 6 | --- 7 | resolv/Versions | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/resolv/Versions b/resolv/Versions 11 | index 4b2e5e9..b22c90e 100644 12 | --- a/resolv/Versions 13 | +++ b/resolv/Versions 14 | @@ -102,7 +102,7 @@ libnss_dns { 15 | _nss_dns_gethostbyname_r; _nss_dns_getnetbyaddr_r; 16 | _nss_dns_getnetbyname_r; _nss_dns_getcanonname_r; 17 | _nss_dns_gethostbyaddr2_r; 18 | - _nss_dns_gethostbyname4_r; 19 | +# _nss_dns_gethostbyname4_r; 20 | } 21 | } 22 | 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2006-local-alias-UTF-8.patch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2006-local-alias-UTF-8.patch -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2007-local-alias-et_EE.patch: -------------------------------------------------------------------------------- 1 | From 49f50ecc8a0571878f21d39e32d428b6403c0dd0 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2007/2070] local-alias-et_EE.patch 5 | 6 | --- 7 | intl/locale.alias | 4 ++-- 8 | 1 files changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/intl/locale.alias b/intl/locale.alias 11 | index 9dca902..46f6720 100644 12 | --- a/intl/locale.alias 13 | +++ b/intl/locale.alias 14 | @@ -34,8 +34,8 @@ danish da_DK.ISO-8859-1 15 | dansk da_DK.ISO-8859-1 16 | deutsch de_DE.ISO-8859-1 17 | dutch nl_NL.ISO-8859-1 18 | -eesti et_EE.ISO-8859-1 19 | -estonian et_EE.ISO-8859-1 20 | +eesti et_EE.ISO-8859-15 21 | +estonian et_EE.ISO-8859-15 22 | finnish fi_FI.ISO-8859-1 23 | français fr_FR.ISO-8859-1 24 | french fr_FR.ISO-8859-1 25 | -- 26 | 1.7.0.4 27 | 28 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2008-local-allocalim-header.patch: -------------------------------------------------------------------------------- 1 | From 2584b5d4860a7bc4ddcf547f865cdf2050a35b52 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2008/2070] local-allocalim-header.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/check_pf.c | 2 ++ 8 | 1 files changed, 2 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/check_pf.c b/sysdeps/unix/sysv/linux/check_pf.c 11 | index 5630e86..042c115 100644 12 | --- a/sysdeps/unix/sysv/linux/check_pf.c 13 | +++ b/sysdeps/unix/sysv/linux/check_pf.c 14 | @@ -25,6 +25,8 @@ 15 | #include 16 | #include 17 | #include 18 | +#include 19 | +#include 20 | #include 21 | 22 | #include 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2009-local-asserth-decls.patch: -------------------------------------------------------------------------------- 1 | From ab818f0bc2af40b4ecbe957bb0714212544f8fc5 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2009/2070] local-asserth-decls.patch 5 | 6 | --- 7 | assert/assert.h | 3 +++ 8 | 1 files changed, 3 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/assert/assert.h b/assert/assert.h 11 | index 841f435..8989713 100644 12 | --- a/assert/assert.h 13 | +++ b/assert/assert.h 14 | @@ -63,6 +63,8 @@ 15 | 16 | #else /* Not NDEBUG. */ 17 | 18 | +#ifndef _ASSERT_H_DECLS 19 | +#define _ASSERT_H_DECLS 20 | __BEGIN_DECLS 21 | 22 | /* This prints an "Assertion failed" message and aborts. */ 23 | @@ -84,6 +86,7 @@ extern void __assert (const char *__assertion, const char *__file, int __line) 24 | 25 | 26 | __END_DECLS 27 | +#endif /* Not _ASSERT_H_DECLS */ 28 | 29 | # define assert(expr) \ 30 | ((expr) \ 31 | -- 32 | 1.7.0.4 33 | 34 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2010-local-biarch.patch: -------------------------------------------------------------------------------- 1 | From 3ad6c2190f91b485ad5fb0a669d350c2a3edf8c2 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:02 +0000 4 | Subject: [PATCH 2010/2070] local-biarch.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/i386/dl-cache.h | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | create mode 100644 sysdeps/unix/sysv/linux/i386/dl-cache.h 10 | 11 | diff --git a/sysdeps/unix/sysv/linux/i386/dl-cache.h b/sysdeps/unix/sysv/linux/i386/dl-cache.h 12 | new file mode 100644 13 | index 0000000..766bba4 14 | --- /dev/null 15 | +++ b/sysdeps/unix/sysv/linux/i386/dl-cache.h 16 | @@ -0,0 +1 @@ 17 | +#include 18 | -- 19 | 1.7.0.4 20 | 21 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2012-local-clone.patch: -------------------------------------------------------------------------------- 1 | From 4e3de73cbca42497dcfad9b588d6c0fc4b777f2a Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2012/2070] local-clone.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/i386/clone.S | 4 ---- 8 | 1 files changed, 0 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/i386/clone.S b/sysdeps/unix/sysv/linux/i386/clone.S 11 | index f73a4b5..54524ec 100644 12 | --- a/sysdeps/unix/sysv/linux/i386/clone.S 13 | +++ b/sysdeps/unix/sysv/linux/i386/clone.S 14 | @@ -120,9 +120,6 @@ L(pseudo_end): 15 | ret 16 | 17 | L(thread_start): 18 | - cfi_startproc; 19 | - /* Clearing frame pointer is insufficient, use CFI. */ 20 | - cfi_undefined (eip); 21 | /* Note: %esi is zero. */ 22 | movl %esi,%ebp /* terminate the stack frame */ 23 | #ifdef RESET_PID 24 | @@ -155,7 +152,6 @@ L(nomoregetpid): 25 | jmp L(haspid) 26 | .previous 27 | #endif 28 | - cfi_endproc; 29 | 30 | cfi_startproc 31 | PSEUDO_END (BP_SYM (__clone)) 32 | -- 33 | 1.7.0.4 34 | 35 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2013-local-cmov.patch: -------------------------------------------------------------------------------- 1 | From 93ae7043098338729c7480318a2f496a0eeae0e9 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2013/2070] local-cmov.patch 5 | 6 | --- 7 | sysdeps/i386/dl-procinfo.h | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/sysdeps/i386/dl-procinfo.h b/sysdeps/i386/dl-procinfo.h 11 | index d114fec..8fcb1ea 100644 12 | --- a/sysdeps/i386/dl-procinfo.h 13 | +++ b/sysdeps/i386/dl-procinfo.h 14 | @@ -57,7 +57,7 @@ enum 15 | HWCAP_I386_AMD3D = 1 << 31, 16 | 17 | /* XXX Which others to add here? */ 18 | - HWCAP_IMPORTANT = (HWCAP_I386_XMM2) 19 | + HWCAP_IMPORTANT = (HWCAP_I386_CMOV | HWCAP_I386_XMM2) 20 | 21 | }; 22 | 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2014-local-cpuid-level2.patch: -------------------------------------------------------------------------------- 1 | From e724260671c199a6329c5b291104da9763065cfd Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2014/2070] local-cpuid-level2.patch 5 | 6 | --- 7 | sysdeps/x86_64/cacheinfo.c | 8 +++++++- 8 | 1 files changed, 7 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/sysdeps/x86_64/cacheinfo.c b/sysdeps/x86_64/cacheinfo.c 11 | index eae54e7..06477e8 100644 12 | --- a/sysdeps/x86_64/cacheinfo.c 13 | +++ b/sysdeps/x86_64/cacheinfo.c 14 | @@ -254,7 +254,13 @@ intel_check_word (int name, unsigned int value, bool *has_level_2, 15 | static long int __attribute__ ((noinline)) 16 | handle_intel (int name, unsigned int maxidx) 17 | { 18 | - assert (maxidx >= 2); 19 | + if (maxidx <= 2) 20 | + { 21 | + /* This should never happen as all Intel i686 CPU support a CPUID 22 | + level of 2 minimum. However valgrind sometimes load the i686 23 | + library with a P55C CPUID. Return 0 in that case. */ 24 | + return 0; 25 | + } 26 | 27 | /* OK, we can use the CPUID instruction to get all info about the 28 | caches. */ 29 | -- 30 | 1.7.0.4 31 | 32 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2015-local-disable-nscd-host-caching.patch: -------------------------------------------------------------------------------- 1 | From d774a9c61fbe49e64c28e7492dbc3d24c692f93d Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2015/2070] local-disable-nscd-host-caching.patch 5 | 6 | --- 7 | nscd/nscd.conf | 4 +++- 8 | 1 files changed, 3 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/nscd/nscd.conf b/nscd/nscd.conf 11 | index ada88e6..596f30f 100644 12 | --- a/nscd/nscd.conf 13 | +++ b/nscd/nscd.conf 14 | @@ -60,7 +60,9 @@ 15 | max-db-size group 33554432 16 | auto-propagate group yes 17 | 18 | - enable-cache hosts yes 19 | +# hosts caching is broken with gethostby* calls, hence is now disabled 20 | +# per default. See /usr/share/doc/nscd/NEWS.Debian. 21 | + enable-cache hosts no 22 | positive-time-to-live hosts 3600 23 | negative-time-to-live hosts 20 24 | suggested-size hosts 211 25 | -- 26 | 1.7.0.4 27 | 28 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2016-local-disable-test-tgmath2.patch: -------------------------------------------------------------------------------- 1 | From 580419b7e3501da0154e3d3709d9c56deecfd642 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2016/2070] local-disable-test-tgmath2.patch 5 | 6 | --- 7 | math/Makefile | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/math/Makefile b/math/Makefile 11 | index 3d5a00c..92550ab 100644 12 | --- a/math/Makefile 13 | +++ b/math/Makefile 14 | @@ -92,7 +92,7 @@ distribute += $(filter-out $(generated),$(long-m-yes:=.c) $(long-c-yes:=.c)) 15 | # Rules for the test suite. 16 | tests = test-matherr test-fenv basic-test \ 17 | test-misc test-fpucw tst-definitions test-tgmath test-tgmath-ret \ 18 | - bug-nextafter bug-nexttoward bug-tgmath1 test-tgmath-int test-tgmath2 \ 19 | + bug-nextafter bug-nexttoward bug-tgmath1 test-tgmath-int \ 20 | test-dbl-wrap 21 | tests-$(OPTION_EGLIBC_LIBM_BIG) += atest-exp atest-sincos atest-exp2 22 | # We do the `long double' tests only if this data type is available and 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2017-local-dlfptr.patch: -------------------------------------------------------------------------------- 1 | From 2e0f6e21518328916d54e65a9e834aa374092c5c Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2017/2070] local-dlfptr.patch 5 | 6 | --- 7 | elf/dl-fptr.c | 18 +++++++++++++++++- 8 | sysdeps/generic/dl-fptr.h | 3 +++ 9 | 2 files changed, 20 insertions(+), 1 deletions(-) 10 | 11 | diff --git a/elf/dl-fptr.c b/elf/dl-fptr.c 12 | index e068124..0853894 100644 13 | --- a/elf/dl-fptr.c 14 | +++ b/elf/dl-fptr.c 15 | @@ -1,5 +1,5 @@ 16 | /* Manage function descriptors. Generic version. 17 | - Copyright (C) 1999-2004, 2006 Free Software Foundation, Inc. 18 | + Copyright (C) 1999-2004, 2006, 2010 Free Software Foundation, Inc. 19 | This file is part of the GNU C Library. 20 | 21 | The GNU C Library is free software; you can redistribute it and/or 22 | @@ -56,7 +56,12 @@ static struct local 23 | } 24 | local = 25 | { 26 | +#ifndef SHARED 27 | .root = &local.boot_table, 28 | +#else 29 | + /* Address of .boot_table is not known until runtime. */ 30 | + .root = 0, 31 | +#endif 32 | .npages = 2, 33 | .boot_table = 34 | { 35 | @@ -93,6 +98,17 @@ new_fdesc_table (struct local *l, size_t *size) 36 | return new_table; 37 | } 38 | 39 | +/* Must call _dl_fptr_init before using any other function. */ 40 | +void 41 | +_dl_fptr_init (void) 42 | +{ 43 | + struct local *l; 44 | + 45 | + ELF_MACHINE_LOAD_ADDRESS (l, local); 46 | + /* Initialize root once. */ 47 | + if (__builtin_expect (l->root == 0, 0)) 48 | + l->root = &l->boot_table; 49 | +} 50 | 51 | static ElfW(Addr) 52 | make_fdesc (ElfW(Addr) ip, ElfW(Addr) gp) 53 | diff --git a/sysdeps/generic/dl-fptr.h b/sysdeps/generic/dl-fptr.h 54 | index d47fb7b..b957fbb 100644 55 | --- a/sysdeps/generic/dl-fptr.h 56 | +++ b/sysdeps/generic/dl-fptr.h 57 | @@ -40,6 +40,9 @@ struct link_map; 58 | 59 | extern ElfW(Addr) _dl_boot_fptr_table []; 60 | 61 | +/* Must be called before any other function. */ 62 | +extern void _dl_fptr_init (void); 63 | + 64 | extern ElfW(Addr) _dl_make_fptr (struct link_map *, const ElfW(Sym) *, 65 | ElfW(Addr)); 66 | 67 | -- 68 | 1.7.0.4 69 | 70 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2018-local-fhs-linux-paths.patch: -------------------------------------------------------------------------------- 1 | From 1bb31f592e307cdfed6fa059e263f6efcf789cdc Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2018/2070] local-fhs-linux-paths.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/paths.h | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/paths.h b/sysdeps/unix/sysv/linux/paths.h 11 | index f4860f2..2fda9c6 100644 12 | --- a/sysdeps/unix/sysv/linux/paths.h 13 | +++ b/sysdeps/unix/sysv/linux/paths.h 14 | @@ -68,7 +68,7 @@ 15 | /* Provide trailing slash, since mostly used for building pathnames. */ 16 | #define _PATH_DEV "/dev/" 17 | #define _PATH_TMP "/tmp/" 18 | -#define _PATH_VARDB "/var/db/" 19 | +#define _PATH_VARDB "/var/lib/misc/" 20 | #define _PATH_VARRUN "/var/run/" 21 | #define _PATH_VARTMP "/var/tmp/" 22 | 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2019-local-fhs-nscd.patch: -------------------------------------------------------------------------------- 1 | From 7fff1f0b7d9aa059ba0fed1a4a131fc0ca4a20e3 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2019/2070] local-fhs-nscd.patch 5 | 6 | --- 7 | nscd/nscd.h | 8 ++++---- 8 | 1 files changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/nscd/nscd.h b/nscd/nscd.h 11 | index 3279b85..b7de6e9 100644 12 | --- a/nscd/nscd.h 13 | +++ b/nscd/nscd.h 14 | @@ -103,10 +103,10 @@ struct database_dyn 15 | 16 | 17 | /* Paths of the file for the persistent storage. */ 18 | -#define _PATH_NSCD_PASSWD_DB "/var/db/nscd/passwd" 19 | -#define _PATH_NSCD_GROUP_DB "/var/db/nscd/group" 20 | -#define _PATH_NSCD_HOSTS_DB "/var/db/nscd/hosts" 21 | -#define _PATH_NSCD_SERVICES_DB "/var/db/nscd/services" 22 | +#define _PATH_NSCD_PASSWD_DB "/var/cache/nscd/passwd" 23 | +#define _PATH_NSCD_GROUP_DB "/var/cache/nscd/group" 24 | +#define _PATH_NSCD_HOSTS_DB "/var/cache/nscd/hosts" 25 | +#define _PATH_NSCD_SERVICES_DB "/var/cache/nscd/services" 26 | 27 | /* Path used when not using persistent storage. */ 28 | #define _PATH_NSCD_XYZ_DB_TMP "/var/run/nscd/dbXXXXXX" 29 | -- 30 | 1.7.0.4 31 | 32 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2020-local-getaddrinfo-interface.patch: -------------------------------------------------------------------------------- 1 | From 2da39073742595cf6e8f80c10bb2df651ff9c931 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:03 +0000 4 | Subject: [PATCH 2020/2070] local-getaddrinfo-interface.patch 5 | 6 | --- 7 | sysdeps/posix/getaddrinfo.c | 4 ++-- 8 | 1 files changed, 2 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c 11 | index 4a0b6b1..ddd1b5d 100644 12 | --- a/sysdeps/posix/getaddrinfo.c 13 | +++ b/sysdeps/posix/getaddrinfo.c 14 | @@ -1458,13 +1458,13 @@ rfc3484_sort (const void *p1, const void *p2, void *arg) 15 | 16 | /* Fill in the results in all the records. */ 17 | for (int i = 0; i < src->nresults; ++i) 18 | - if (src->results[i].index == a1_index) 19 | + if (a1_index != -1 && src->results[i].index == a1_index) 20 | { 21 | assert (src->results[i].native == -1 22 | || src->results[i].native == a1_native); 23 | src->results[i].native = a1_native; 24 | } 25 | - else if (src->results[i].index == a2_index) 26 | + else if (a2_index != -1 && src->results[i].index == a2_index) 27 | { 28 | assert (src->results[i].native == -1 29 | || src->results[i].native == a2_native); 30 | -- 31 | 1.7.0.4 32 | 33 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2021-local-ld-multiarch.patch: -------------------------------------------------------------------------------- 1 | From 239c97aab22d9ef4921d04c350b2a71a18c9a2df Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:04 +0000 4 | Subject: [PATCH 2021/2070] local-ld-multiarch.patch 5 | 6 | --- 7 | Makeconfig | 19 +++++++++++++++++++ 8 | 1 files changed, 19 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/Makeconfig b/Makeconfig 11 | index c9fe199..e3c0d41 100644 12 | --- a/Makeconfig 13 | +++ b/Makeconfig 14 | @@ -191,6 +191,21 @@ libdir = $(exec_prefix)/lib 15 | endif 16 | inst_libdir = $(install_root)$(libdir) 17 | 18 | +# Multiarch places to look for libraries 19 | +ifndef extra_libdir 20 | +ifneq (,$(findstring $(config-machine),i586 i686)) 21 | +multiarch-machine = i486 22 | +else 23 | +multiarch-machine = $(config-machine) 24 | +endif 25 | +ifeq ($(config-os),gnu-gnu) 26 | +multiarch-os = gnu 27 | +else 28 | +multiarch-os = $(config-os) 29 | +endif 30 | +extra_libdir = /lib/$(multiarch-machine)-$(multiarch-os):$(exec_prefix)/lib/$(multiarch-machine)-$(multiarch-os) 31 | +endif 32 | + 33 | # Where to install the shared library and dynamic linker. 34 | ifndef slibdir 35 | slibdir = $(exec_prefix)/lib 36 | @@ -523,6 +538,10 @@ else 37 | default-rpath = $(libdir) 38 | endif 39 | 40 | +ifdef extra_libdir 41 | +default-rpath += :$(extra_libdir) 42 | +endif 43 | + 44 | ifndef link-extra-libs 45 | link-extra-libs = $(LDLIBS-$(@F)) 46 | link-extra-libs-static = $(link-extra-libs) 47 | -- 48 | 1.7.0.4 49 | 50 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2022-local-ldconfig-fsync.patch: -------------------------------------------------------------------------------- 1 | From 9f5895be4295cef9d7ec6f1dc480864944746a41 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:04 +0000 4 | Subject: [PATCH 2022/2070] local-ldconfig-fsync.patch 5 | 6 | --- 7 | elf/cache.c | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/elf/cache.c b/elf/cache.c 11 | index b8561e4..4f99678 100644 12 | --- a/elf/cache.c 13 | +++ b/elf/cache.c 14 | @@ -426,6 +426,7 @@ save_cache (const char *cache_name) 15 | } 16 | 17 | if (write (fd, strings, total_strlen) != (ssize_t) total_strlen 18 | + || fsync (fd) 19 | || close (fd)) 20 | error (EXIT_FAILURE, errno, _("Writing of cache data failed")); 21 | 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2023-local-ldconfig.patch: -------------------------------------------------------------------------------- 1 | From bb8ce1ceb9e7f215f24de3a862d4bf0e7e3c92ef Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:04 +0000 4 | Subject: [PATCH 2023/2070] local-ldconfig.patch 5 | 6 | --- 7 | elf/ldconfig.c | 3 ++- 8 | 1 files changed, 2 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/elf/ldconfig.c b/elf/ldconfig.c 11 | index cb75a46..a602a16 100644 12 | --- a/elf/ldconfig.c 13 | +++ b/elf/ldconfig.c 14 | @@ -1062,7 +1062,8 @@ parse_conf (const char *filename, bool do_chroot) 15 | 16 | if (file == NULL) 17 | { 18 | - error (0, errno, _("Can't open configuration file %s"), canon); 19 | + if (strcmp(canon, LD_SO_CONF) != 0 || opt_verbose) 20 | + error (0, errno, _("Can't open configuration file %s"), canon); 21 | if (canon != filename) 22 | free ((char *) canon); 23 | return; 24 | -- 25 | 1.7.0.4 26 | 27 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2024-local-ldd.patch: -------------------------------------------------------------------------------- 1 | From 39d9424dcf187b3ee54888cdde42c59b846b744a Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:04 +0000 4 | Subject: [PATCH 2024/2070] local-ldd.patch 5 | 6 | --- 7 | elf/ldd.bash.in | 20 +++----------------- 8 | 1 files changed, 3 insertions(+), 17 deletions(-) 9 | 10 | diff --git a/elf/ldd.bash.in b/elf/ldd.bash.in 11 | index 2825046..15af6e3 100644 12 | --- a/elf/ldd.bash.in 13 | +++ b/elf/ldd.bash.in 14 | @@ -153,8 +153,6 @@ for file do 15 | echo "ldd: ${file}:" $"not regular file" >&2 16 | result=1 17 | elif test -r "$file"; then 18 | - test -x "$file" || echo 'ldd:' $"\ 19 | -warning: you do not have execution permission for" "\`$file'" >&2 20 | RTLD= 21 | ret=1 22 | for rtld in ${RTLDLIST}; do 23 | @@ -167,28 +165,16 @@ warning: you do not have execution permission for" "\`$file'" >&2 24 | fi 25 | done 26 | case $ret in 27 | - 0) 28 | - # If the program exits with exit code 5, it means the process has been 29 | - # invoked with __libc_enable_secure. Fall back to running it through 30 | - # the dynamic linker. 31 | - try_trace "$file" 32 | - rc=$? 33 | - if [ $rc = 5 ]; then 34 | - try_trace "$RTLD" "$file" 35 | - rc=$? 36 | - fi 37 | - [ $rc = 0 ] || result=1 38 | + 0|2) 39 | + try_trace "$RTLD" "$file" || result=1 40 | ;; 41 | - 1) 42 | + 1|126) 43 | # This can be a non-ELF binary or no binary at all. 44 | nonelf "$file" || { 45 | echo $" not a dynamic executable" 46 | result=1 47 | } 48 | ;; 49 | - 2) 50 | - try_trace "$RTLD" "$file" || result=1 51 | - ;; 52 | *) 53 | echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2 54 | exit 1 55 | -- 56 | 1.7.0.4 57 | 58 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2040-local-localedef-fix-trampoline.patch: -------------------------------------------------------------------------------- 1 | From dd8395184af826b6fc949d1d92b0644a07bbef47 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:05 +0000 4 | Subject: [PATCH 2040/2070] local-localedef-fix-trampoline.patch 5 | 6 | --- 7 | locale/programs/3level.h | 36 ++++++++++++++++++++++++++++++++++++ 8 | 1 files changed, 36 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/locale/programs/3level.h b/locale/programs/3level.h 11 | index d2a7fd0..15ba3cc 100644 12 | --- a/locale/programs/3level.h 13 | +++ b/locale/programs/3level.h 14 | @@ -201,6 +201,42 @@ CONCAT(TABLE,_iterate) (struct TABLE *t, 15 | } 16 | } 17 | } 18 | + 19 | +/* GCC ATM seems to do a poor job with pointers to nested functions passed 20 | + to inlined functions. Help it a little bit with this hack. */ 21 | +#define wchead_table_iterate(tp, fn) \ 22 | +do \ 23 | + { \ 24 | + struct wchead_table *t = (tp); \ 25 | + uint32_t index1; \ 26 | + for (index1 = 0; index1 < t->level1_size; index1++) \ 27 | + { \ 28 | + uint32_t lookup1 = t->level1[index1]; \ 29 | + if (lookup1 != ((uint32_t) ~0)) \ 30 | + { \ 31 | + uint32_t lookup1_shifted = lookup1 << t->q; \ 32 | + uint32_t index2; \ 33 | + for (index2 = 0; index2 < (1 << t->q); index2++) \ 34 | + { \ 35 | + uint32_t lookup2 = t->level2[index2 + lookup1_shifted]; \ 36 | + if (lookup2 != ((uint32_t) ~0)) \ 37 | + { \ 38 | + uint32_t lookup2_shifted = lookup2 << t->p; \ 39 | + uint32_t index3; \ 40 | + for (index3 = 0; index3 < (1 << t->p); index3++) \ 41 | + { \ 42 | + struct element_t *lookup3 \ 43 | + = t->level3[index3 + lookup2_shifted]; \ 44 | + if (lookup3 != NULL) \ 45 | + fn ((((index1 << t->q) + index2) << t->p) + index3, \ 46 | + lookup3); \ 47 | + } \ 48 | + } \ 49 | + } \ 50 | + } \ 51 | + } \ 52 | + } while (0) 53 | + 54 | #endif 55 | 56 | #ifndef NO_FINALIZE 57 | -- 58 | 1.7.0.4 59 | 60 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2041-local-missing-linux_types.h.patch: -------------------------------------------------------------------------------- 1 | From ca62a84f9d3bb28f87e99c127723452baa22bb60 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:05 +0000 4 | Subject: [PATCH 2041/2070] local-missing-linux_types.h.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/netinet/if_fddi.h | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/netinet/if_fddi.h b/sysdeps/unix/sysv/linux/netinet/if_fddi.h 11 | index 1a0ec92..c5d5f0a 100644 12 | --- a/sysdeps/unix/sysv/linux/netinet/if_fddi.h 13 | +++ b/sysdeps/unix/sysv/linux/netinet/if_fddi.h 14 | @@ -23,6 +23,7 @@ 15 | #include 16 | #include 17 | 18 | +#include 19 | #include 20 | 21 | #ifdef __USE_BSD 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2042-local-mktemp.patch: -------------------------------------------------------------------------------- 1 | From 90b186178a2eb3ad6769fa45213181a9b2614919 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:06 +0000 4 | Subject: [PATCH 2042/2070] local-mktemp.patch 5 | 6 | --- 7 | misc/mktemp.c | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/misc/mktemp.c b/misc/mktemp.c 11 | index c42fd5e..f15e1ce 100644 12 | --- a/misc/mktemp.c 13 | +++ b/misc/mktemp.c 14 | @@ -33,4 +33,4 @@ mktemp (template) 15 | return template; 16 | } 17 | 18 | -link_warning (mktemp, "the use of `mktemp' is dangerous, better use `mkstemp'") 19 | +link_warning (mktemp, "the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'") 20 | -- 21 | 1.7.0.4 22 | 23 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2043-local-nis-shadow.patch: -------------------------------------------------------------------------------- 1 | From d2779af9fa6f05545a2b1dd4b9ee134a9f467759 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:06 +0000 4 | Subject: [PATCH 2043/2070] local-nis-shadow.patch 5 | 6 | --- 7 | nis/nss | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/nis/nss b/nis/nss 11 | index 0ac6774..c43e88b 100644 12 | --- a/nis/nss 13 | +++ b/nis/nss 14 | @@ -34,4 +34,4 @@ 15 | # server cannot be trusted to send the passwd.adjuct table only to 16 | # privileged clients. Instead the passwd.adjunct.byname table is 17 | # used to synthesize the shadow.byname table if it does not exist. 18 | -#ADJUNCT_AS_SHADOW=TRUE 19 | +ADJUNCT_AS_SHADOW=TRUE 20 | -- 21 | 1.7.0.4 22 | 23 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2046-local-nss-upgrade.patch: -------------------------------------------------------------------------------- 1 | From fede3533718e0305b8b9deab527ae143fc0bb2ee Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:06 +0000 4 | Subject: [PATCH 2046/2070] local-nss-upgrade.patch 5 | 6 | --- 7 | nss/nsswitch.c | 17 ++++++++++++++--- 8 | 1 files changed, 14 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/nss/nsswitch.c b/nss/nsswitch.c 11 | index a9197b7..a75ca06 100644 12 | --- a/nss/nsswitch.c 13 | +++ b/nss/nsswitch.c 14 | @@ -409,9 +409,20 @@ __nss_lookup_function (service_user *ni, const char *fct_name) 15 | ni->library->lib_handle = __libc_dlopen (shlib_name); 16 | if (ni->library->lib_handle == NULL) 17 | { 18 | - /* Failed to load the library. */ 19 | - ni->library->lib_handle = (void *) -1l; 20 | - __set_errno (saved_errno); 21 | + /* Failed to load the library. Try a fallback. */ 22 | + int n = __snprintf(shlib_name, shlen, "libnss_%s.so.%d.%d", 23 | + ni->library->name, __GLIBC__, __GLIBC_MINOR__); 24 | + if (n >= shlen) 25 | + ni->library->lib_handle = NULL; 26 | + else 27 | + ni->library->lib_handle = __libc_dlopen (shlib_name); 28 | + 29 | + if (ni->library->lib_handle == NULL) 30 | + { 31 | + /* Ok, really fail now. */ 32 | + ni->library->lib_handle = (void *) -1l; 33 | + __set_errno (saved_errno); 34 | + } 35 | } 36 | } 37 | 38 | -- 39 | 1.7.0.4 40 | 41 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2047-local-o_cloexec.patch: -------------------------------------------------------------------------------- 1 | From bf64fdd569f7212a81d9b98237fd32dc5027f7dd Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:06 +0000 4 | Subject: [PATCH 2047/2070] local-o_cloexec.patch 5 | 6 | --- 7 | sysdeps/unix/opendir.c | 2 ++ 8 | 1 files changed, 2 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/opendir.c b/sysdeps/unix/opendir.c 11 | index fbf14f5..9024445 100644 12 | --- a/sysdeps/unix/opendir.c 13 | +++ b/sysdeps/unix/opendir.c 14 | @@ -146,6 +146,7 @@ weak_alias (__opendir, opendir) 15 | #ifdef __ASSUME_O_CLOEXEC 16 | # define check_have_o_cloexec(fd) 1 17 | #else 18 | +#ifdef O_CLOEXEC 19 | static int 20 | check_have_o_cloexec (int fd) 21 | { 22 | @@ -154,6 +155,7 @@ check_have_o_cloexec (int fd) 23 | return __have_o_cloexec > 0; 24 | } 25 | #endif 26 | +#endif 27 | 28 | 29 | DIR * 30 | -- 31 | 1.7.0.4 32 | 33 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2050-local-relro-mprotect.patch: -------------------------------------------------------------------------------- 1 | From 4494ee9708229e99d576be2aa6c8cbae7dd0b6e9 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:06 +0000 4 | Subject: [PATCH 2050/2070] local-relro-mprotect.patch 5 | 6 | --- 7 | elf/dl-load.c | 6 +++++- 8 | 1 files changed, 5 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/elf/dl-load.c b/elf/dl-load.c 11 | index b017258..5b7c348 100644 12 | --- a/elf/dl-load.c 13 | +++ b/elf/dl-load.c 14 | @@ -1388,7 +1388,11 @@ cannot allocate TLS data structures for initial thread"); 15 | if (__builtin_expect (p + s <= relro_end, 1)) 16 | { 17 | /* The variable lies in the region protected by RELRO. */ 18 | - __mprotect ((void *) p, s, PROT_READ|PROT_WRITE); 19 | + if (__mprotect ((void *) p, s, PROT_READ|PROT_WRITE) < 0) 20 | + { 21 | + errstring = N_("cannot change memory protections"); 22 | + goto call_lose_errno; 23 | + } 24 | __stack_prot |= PROT_READ|PROT_WRITE|PROT_EXEC; 25 | __mprotect ((void *) p, s, PROT_READ); 26 | } 27 | -- 28 | 1.7.0.4 29 | 30 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2052-local-ru_RU.patch: -------------------------------------------------------------------------------- 1 | From 976c6e0d1a519b1bac2cc882eb4808d7001e6913 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2052/2070] local-ru_RU.patch 5 | 6 | --- 7 | intl/locale.alias | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/intl/locale.alias b/intl/locale.alias 11 | index 46f6720..34e7934 100644 12 | --- a/intl/locale.alias 13 | +++ b/intl/locale.alias 14 | @@ -64,7 +64,7 @@ nynorsk nn_NO.ISO-8859-1 15 | polish pl_PL.ISO-8859-2 16 | portuguese pt_PT.ISO-8859-1 17 | romanian ro_RO.ISO-8859-2 18 | -russian ru_RU.ISO-8859-5 19 | +russian ru_RU.KOI8-R 20 | slovak sk_SK.ISO-8859-2 21 | slovene sl_SI.ISO-8859-2 22 | slovenian sl_SI.ISO-8859-2 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2053-local-stdio-lock.patch: -------------------------------------------------------------------------------- 1 | From dae7ae499d7d24ce25eaceee83f3ee8daee8786d Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2053/2070] local-stdio-lock.patch 5 | 6 | --- 7 | bits/stdio-lock.h | 17 +++++++++++++---- 8 | 1 files changed, 13 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/bits/stdio-lock.h b/bits/stdio-lock.h 11 | index d7c1db0..3407171 100644 12 | --- a/bits/stdio-lock.h 13 | +++ b/bits/stdio-lock.h 14 | @@ -47,12 +47,21 @@ __libc_lock_define_recursive (typedef, _IO_lock_t) 15 | 16 | #if defined _LIBC && !defined NOT_IN_libc 17 | # define _IO_acquire_lock(_fp) \ 18 | - _IO_cleanup_region_start ((void (*) (void *)) _IO_funlockfile, (_fp)); \ 19 | - _IO_flockfile (_fp) 20 | + { \ 21 | + _IO_FILE *_IO_acquire_lock_file = _fp; \ 22 | + __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_fct, &_IO_acquire_lock_file); \ 23 | + _IO_flockfile (_IO_acquire_lock_file) 24 | + 25 | +# define _IO_acquire_lock_clear_flags2(_fp) \ 26 | + { \ 27 | + _IO_FILE *_IO_acquire_lock_file = _fp; \ 28 | + __libc_cleanup_region_start (1, (void (*) (void *)) _IO_acquire_lock_clear_flags2_fct, &_IO_acquire_lock_file); \ 29 | + _IO_flockfile (_IO_acquire_lock_file) 30 | 31 | # define _IO_release_lock(_fp) \ 32 | - _IO_funlockfile (_fp); \ 33 | - _IO_cleanup_region_end (0) 34 | + __libc_cleanup_region_end (1); \ 35 | + } 36 | + 37 | #endif 38 | 39 | #endif /* bits/stdio-lock.h */ 40 | -- 41 | 1.7.0.4 42 | 43 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2054-local-stubs_h.patch: -------------------------------------------------------------------------------- 1 | From 4e09f690e6e4e0f5a86725270c879ab0d08a6e1e Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2054/2070] local-stubs_h.patch 5 | 6 | --- 7 | include/stubs-prologue.h | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/include/stubs-prologue.h b/include/stubs-prologue.h 11 | index 0577bc6..cf8eba0 100644 12 | --- a/include/stubs-prologue.h 13 | +++ b/include/stubs-prologue.h 14 | @@ -8,7 +8,7 @@ 15 | every time called, usually setting errno to ENOSYS. */ 16 | 17 | #ifdef _LIBC 18 | - #error Applications may not define the macro _LIBC 19 | +# error Applications may not define the macro _LIBC 20 | #endif 21 | 22 | @ Placeholder line so we remember to keep the preceding blank line here. 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2056-local-tst-mktime2.patch: -------------------------------------------------------------------------------- 1 | From e9b6d74c4be4a797ed4ca1a382c7307d1c3c7877 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2056/2070] local-tst-mktime2.patch 5 | 6 | --- 7 | time/tst-mktime2.c | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/time/tst-mktime2.c b/time/tst-mktime2.c 11 | index 0e4fd1e..407e940 100644 12 | --- a/time/tst-mktime2.c 13 | +++ b/time/tst-mktime2.c 14 | @@ -2,6 +2,7 @@ 15 | #include 16 | #include 17 | #include 18 | +#include 19 | 20 | static time_t time_t_max; 21 | static time_t time_t_min; 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2057-pr12454.patch: -------------------------------------------------------------------------------- 1 | From 393f30e4a0c004da2f18041335d810609dfe20d6 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2057/2070] pr12454.patch 5 | 6 | --- 7 | elf/dl-close.c | 3 ++- 8 | elf/dl-deps.c | 4 ++-- 9 | 2 files changed, 4 insertions(+), 3 deletions(-) 10 | 11 | diff --git a/elf/dl-close.c b/elf/dl-close.c 12 | index 866c0a6..6e9c31d 100644 13 | --- a/elf/dl-close.c 14 | +++ b/elf/dl-close.c 15 | @@ -222,7 +222,8 @@ _dl_close_worker (struct link_map *map) 16 | } 17 | 18 | /* Sort the entries. */ 19 | - _dl_sort_fini (ns->_ns_loaded, maps, nloaded, used, nsid); 20 | + if (nloaded > 1) 21 | + _dl_sort_fini (ns->_ns_loaded, maps, nloaded, used, nsid); 22 | 23 | /* Call all termination functions at once. */ 24 | #ifdef SHARED 25 | diff --git a/elf/dl-deps.c b/elf/dl-deps.c 26 | index bd81677..73268ab 100644 27 | --- a/elf/dl-deps.c 28 | +++ b/elf/dl-deps.c 29 | @@ -623,11 +623,11 @@ Filters not supported with LD_TRACE_PRELINKING")); 30 | 31 | /* We can skip looking for the binary itself which is at the front 32 | of the search list. */ 33 | - assert (nlist > 1); 34 | + assert (nlist > 0); 35 | i = 1; 36 | bool seen[nlist]; 37 | memset (seen, false, nlist * sizeof (seen[0])); 38 | - while (1) 39 | + while (nlist > 1) 40 | { 41 | /* Keep track of which object we looked at this round. */ 42 | seen[i] = true; 43 | -- 44 | 1.7.0.4 45 | 46 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2058-submitted-accept4-hidden.patch: -------------------------------------------------------------------------------- 1 | From 3c207f321b939fc30c5263d51f7a44e50ddf87ce Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2058/2070] submitted-accept4-hidden.patch 5 | 6 | --- 7 | socket/accept4.c | 2 -- 8 | 1 files changed, 0 insertions(+), 2 deletions(-) 9 | 10 | diff --git a/socket/accept4.c b/socket/accept4.c 11 | index 40709d5..53a3e96 100644 12 | --- a/socket/accept4.c 13 | +++ b/socket/accept4.c 14 | @@ -35,8 +35,6 @@ accept4 (fd, addr, addr_len, flags) 15 | __set_errno (ENOSYS); 16 | return -1; 17 | } 18 | -libc_hidden_def (accept4) 19 | - 20 | 21 | stub_warning (accept4) 22 | #include 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2060-submitted-clock-settime.patch: -------------------------------------------------------------------------------- 1 | From 0d4530d76e25edddb24165afb52906472891f689 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2060/2070] submitted-clock-settime.patch 5 | 6 | --- 7 | sysdeps/unix/sysv/linux/clock_settime.c | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c 11 | index 8c52456..4acd2b8 100644 12 | --- a/sysdeps/unix/sysv/linux/clock_settime.c 13 | +++ b/sysdeps/unix/sysv/linux/clock_settime.c 14 | @@ -18,6 +18,7 @@ 15 | 16 | #include 17 | #include 18 | +#include 19 | 20 | #include "kernel-posix-cpu-timers.h" 21 | #include 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2061-submitted-getaddrinfo-lo.patch: -------------------------------------------------------------------------------- 1 | From 717956869db76893c945843e06799f8b6ffd8af6 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:07 +0000 4 | Subject: [PATCH 2061/2070] submitted-getaddrinfo-lo.patch 5 | 6 | --- 7 | sysdeps/posix/getaddrinfo.c | 9 ++++++++- 8 | 1 files changed, 8 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c 11 | index ddd1b5d..6dc4bbc 100644 12 | --- a/sysdeps/posix/getaddrinfo.c 13 | +++ b/sysdeps/posix/getaddrinfo.c 14 | @@ -2267,7 +2267,14 @@ getaddrinfo (const char *name, const char *service, 15 | tmp.addr[0] = 0; 16 | tmp.addr[1] = 0; 17 | tmp.addr[2] = htonl (0xffff); 18 | - tmp.addr[3] = sinp->sin_addr.s_addr; 19 | + /* Special case for lo interface, the source address 20 | + being possibly different than the interface 21 | + address. */ 22 | + if ((ntohl(sinp->sin_addr.s_addr) & 0xff000000) 23 | + == 0x7f000000) 24 | + tmp.addr[3] = htonl(0x7f000001); 25 | + else 26 | + tmp.addr[3] = sinp->sin_addr.s_addr; 27 | } 28 | else 29 | { 30 | -- 31 | 1.7.0.4 32 | 33 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2063-submitted-ldsodefs_rtld_debug.patch: -------------------------------------------------------------------------------- 1 | From 38b14a4752f854ce7a3cedbb39c71692c254c8ca Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2063/2070] submitted-ldsodefs_rtld_debug.patch 5 | 6 | --- 7 | sysdeps/generic/ldsodefs.h | 1 + 8 | 1 files changed, 1 insertions(+), 0 deletions(-) 9 | 10 | diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h 11 | index 8ad537c..93c73bc 100644 12 | --- a/sysdeps/generic/ldsodefs.h 13 | +++ b/sysdeps/generic/ldsodefs.h 14 | @@ -39,6 +39,7 @@ 15 | #include 16 | #include 17 | #include 18 | +#include /* For __OPTION_EGLIBC_RTLD_DEBUG. */ 19 | 20 | __BEGIN_DECLS 21 | 22 | -- 23 | 1.7.0.4 24 | 25 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2064-submitted-localedef-mmap.patch: -------------------------------------------------------------------------------- 1 | From 510b496d6ed8a1ce6827a5f95a66c4f8ab7767cf Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2064/2070] submitted-localedef-mmap.patch 5 | 6 | --- 7 | locale/programs/locarchive.c | 6 +++--- 8 | 1 files changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c 11 | index 27d589b..cb82951 100644 12 | --- a/locale/programs/locarchive.c 13 | +++ b/locale/programs/locarchive.c 14 | @@ -134,7 +134,7 @@ create_archive (const char *archivefname, struct locarhandle *ah) 15 | size_t reserved = RESERVE_MMAP_SIZE; 16 | int xflags = 0; 17 | if (total < reserved 18 | - && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_PRIVATE | MAP_ANON, 19 | + && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_SHARED | MAP_ANON, 20 | -1, 0)) != MAP_FAILED)) 21 | xflags = MAP_FIXED; 22 | else 23 | @@ -397,7 +397,7 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head) 24 | size_t reserved = RESERVE_MMAP_SIZE; 25 | int xflags = 0; 26 | if (total < reserved 27 | - && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_PRIVATE | MAP_ANON, 28 | + && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_SHARED | MAP_ANON, 29 | -1, 0)) != MAP_FAILED)) 30 | xflags = MAP_FIXED; 31 | else 32 | @@ -615,7 +615,7 @@ open_archive (struct locarhandle *ah, bool readonly) 33 | int xflags = 0; 34 | void *p; 35 | if (st.st_size < reserved 36 | - && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_PRIVATE | MAP_ANON, 37 | + && ((p = mmap64 (NULL, reserved, PROT_NONE, MAP_SHARED | MAP_ANON, 38 | -1, 0)) != MAP_FAILED)) 39 | xflags = MAP_FIXED; 40 | else 41 | -- 42 | 1.7.0.4 43 | 44 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2066-submitted-missing-etc-hosts.patch: -------------------------------------------------------------------------------- 1 | From 3d5c1952a39420614021228205e7f3071e97fdcb Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2066/2070] submitted-missing-etc-hosts.patch 5 | 6 | --- 7 | nss/nss_files/files-hosts.c | 2 +- 8 | 1 files changed, 1 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/nss/nss_files/files-hosts.c b/nss/nss_files/files-hosts.c 11 | index 83de650..08119ce 100644 12 | --- a/nss/nss_files/files-hosts.c 13 | +++ b/nss/nss_files/files-hosts.c 14 | @@ -480,7 +480,7 @@ _nss_files_gethostbyname4_r (const char *name, struct gaih_addrtuple **pat, 15 | else 16 | { 17 | *errnop = errno; 18 | - *herrnop = NO_DATA; 19 | + *herrnop = HOST_NOT_FOUND; 20 | } 21 | 22 | __libc_lock_unlock (lock); 23 | -- 24 | 1.7.0.4 25 | 26 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2067-submitted-nis-netgrp.patch: -------------------------------------------------------------------------------- 1 | From 4481dbf802d32efe7079a728de76a45e34751dba Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2067/2070] submitted-nis-netgrp.patch 5 | 6 | --- 7 | nis/nss_nis/nis-netgrp.c | 5 ++++- 8 | 1 files changed, 4 insertions(+), 1 deletions(-) 9 | 10 | diff --git a/nis/nss_nis/nis-netgrp.c b/nis/nss_nis/nis-netgrp.c 11 | index 5a88b72..d31fa2b 100644 12 | --- a/nis/nss_nis/nis-netgrp.c 13 | +++ b/nis/nss_nis/nis-netgrp.c 14 | @@ -72,7 +72,10 @@ _nss_nis_setnetgrent (const char *group, struct __netgrent *netgrp) 15 | and the last byte is filled with NUL. So we can simply 16 | use that buffer. */ 17 | assert (len >= 0); 18 | - assert (malloc_usable_size (netgrp->data) >= len + 1); 19 | + /* Call to malloc_usable_size disabled, this breaks if applications 20 | + redefine malloc/free with a different implementation. 21 | + This assert is always true, see yp_match. */ 22 | + /* assert (malloc_usable_size (netgrp->data) >= len + 1); */ 23 | assert (netgrp->data[len] == '\0'); 24 | 25 | netgrp->data_size = len; 26 | -- 27 | 1.7.0.4 28 | 29 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2068-submitted-popen.patch: -------------------------------------------------------------------------------- 1 | From 9f0547255b57cc76040bbd3045eca89fdbb699e9 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2068/2070] submitted-popen.patch 5 | 6 | --- 7 | include/unistd.h | 5 +---- 8 | socket/have_sock_cloexec.c | 5 +++++ 9 | 2 files changed, 6 insertions(+), 4 deletions(-) 10 | 11 | diff --git a/include/unistd.h b/include/unistd.h 12 | index 0ad2983..6b7aa79 100644 13 | --- a/include/unistd.h 14 | +++ b/include/unistd.h 15 | @@ -171,10 +171,7 @@ extern int __libc_pause (void); 16 | extern int __pause_nocancel (void) attribute_hidden; 17 | 18 | extern int __have_sock_cloexec; 19 | -/* At lot of other functionality became available at the same time as 20 | - SOCK_CLOEXEC. Avoid defining separate variables for all of them 21 | - unless it is really necessary. */ 22 | -#define __have_pipe2 __have_sock_cloexec 23 | +extern int __have_pipe2; 24 | 25 | extern int __getlogin_r_loginuid (char *name, size_t namesize) 26 | attribute_hidden; 27 | diff --git a/socket/have_sock_cloexec.c b/socket/have_sock_cloexec.c 28 | index 22dccdf..c728d98 100644 29 | --- a/socket/have_sock_cloexec.c 30 | +++ b/socket/have_sock_cloexec.c 31 | @@ -16,9 +16,14 @@ 32 | Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 33 | 02111-1307 USA. */ 34 | 35 | +#include 36 | #include 37 | #include 38 | 39 | #if defined SOCK_CLOEXEC && !defined __ASSUME_SOCK_CLOEXEC 40 | int __have_sock_cloexec; 41 | #endif 42 | + 43 | +#if defined O_CLOEXEC && !defined __ASSUME_PIPE2 44 | +int __have_pipe2; 45 | +#endif 46 | -- 47 | 1.7.0.4 48 | 49 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2069-submitted-string2-strcmp.patch: -------------------------------------------------------------------------------- 1 | From 3ff5ceb444d8948667b20c600689d9625839bfc1 Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2069/2070] submitted-string2-strcmp.patch 5 | 6 | --- 7 | string/bits/string2.h | 6 +++--- 8 | 1 files changed, 3 insertions(+), 3 deletions(-) 9 | 10 | diff --git a/string/bits/string2.h b/string/bits/string2.h 11 | index d298bed..a798acf 100644 12 | --- a/string/bits/string2.h 13 | +++ b/string/bits/string2.h 14 | @@ -801,17 +801,17 @@ __stpcpy_small (char *__dest, 15 | __extension__ \ 16 | ({ size_t __s1_len, __s2_len; \ 17 | (__builtin_constant_p (s1) && __builtin_constant_p (s2) \ 18 | - && (__s1_len = strlen (s1), __s2_len = strlen (s2), \ 19 | + && (__s1_len = __builtin_strlen (s1), __s2_len = __builtin_strlen (s2), \ 20 | (!__string2_1bptr_p (s1) || __s1_len >= 4) \ 21 | && (!__string2_1bptr_p (s2) || __s2_len >= 4)) \ 22 | ? __builtin_strcmp (s1, s2) \ 23 | : (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ 24 | - && (__s1_len = strlen (s1), __s1_len < 4) \ 25 | + && (__s1_len = __builtin_strlen (s1), __s1_len < 4) \ 26 | ? (__builtin_constant_p (s2) && __string2_1bptr_p (s2) \ 27 | ? __builtin_strcmp (s1, s2) \ 28 | : __strcmp_cg (s1, s2, __s1_len)) \ 29 | : (__builtin_constant_p (s2) && __string2_1bptr_p (s2) \ 30 | - && (__s2_len = strlen (s2), __s2_len < 4) \ 31 | + && (__s2_len = __builtin_strlen (s2), __s2_len < 4) \ 32 | ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1) \ 33 | ? __builtin_strcmp (s1, s2) \ 34 | : __strcmp_gc (s1, s2, __s2_len)) \ 35 | -- 36 | 1.7.0.4 37 | 38 | -------------------------------------------------------------------------------- /conf/patches/crosstools-1.21.0/patches/eglibc/2_13/2070-submitted-sys-uio-vector.patch: -------------------------------------------------------------------------------- 1 | From 21daefd13dd066b82daf0a1caa85230d0cb41d1b Mon Sep 17 00:00:00 2001 2 | From: michaedw in build chroot 3 | Date: Wed, 9 Mar 2011 08:05:08 +0000 4 | Subject: [PATCH 2070/2070] submitted-sys-uio-vector.patch 5 | 6 | --- 7 | include/sys/uio.h | 8 ++++---- 8 | 1 files changed, 4 insertions(+), 4 deletions(-) 9 | 10 | diff --git a/include/sys/uio.h b/include/sys/uio.h 11 | index 8c2b016..bfaec59 100644 12 | --- a/include/sys/uio.h 13 | +++ b/include/sys/uio.h 14 | @@ -2,12 +2,12 @@ 15 | #include 16 | 17 | /* Now define the internal interfaces. */ 18 | -extern ssize_t __readv (int __fd, __const struct iovec *__vector, 19 | +extern ssize_t __readv (int __fd, __const struct iovec *__iovec, 20 | int __count); 21 | -extern ssize_t __libc_readv (int __fd, __const struct iovec *__vector, 22 | +extern ssize_t __libc_readv (int __fd, __const struct iovec *__iovec, 23 | int __count); 24 | -extern ssize_t __writev (int __fd, __const struct iovec *__vector, 25 | +extern ssize_t __writev (int __fd, __const struct iovec *__iovec, 26 | int __count); 27 | -extern ssize_t __libc_writev (int __fd, __const struct iovec *__vector, 28 | +extern ssize_t __libc_writev (int __fd, __const struct iovec *__iovec, 29 | int __count); 30 | #endif 31 | -- 32 | 1.7.0.4 33 | 34 | -------------------------------------------------------------------------------- /conf/patches/cups-1.5/0001-build.patch: -------------------------------------------------------------------------------- 1 | diff -pru cups-1.5.0//config-scripts/cups-common.m4 cups/config-scripts/cups-common.m4 2 | --- cups-1.5.0//config-scripts/cups-common.m4 2011-07-25 21:24:24.000000000 +0100 3 | +++ cups/config-scripts/cups-common.m4 2011-10-05 21:22:41.000000000 +0100 4 | @@ -406,7 +406,7 @@ AC_ARG_WITH(components, [ --with-compon 5 | 6 | case "$COMPONENTS" in 7 | all) 8 | - BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" 9 | + BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale doc templates" 10 | ;; 11 | 12 | core) 13 | diff -pru cups-1.5.0//ppdc/Makefile cups/ppdc/Makefile 14 | --- cups-1.5.0//ppdc/Makefile 2011-01-06 22:20:15.000000000 +0000 15 | +++ cups/ppdc/Makefile 2011-10-05 21:21:56.000000000 +0100 16 | @@ -244,7 +244,7 @@ genstrings: genstrings.o libcupsppdc.a 17 | libcupsppdc.a ../cups/$(LIBCUPSSTATIC) $(LIBGSSAPI) $(SSLLIBS) \ 18 | $(DNSSDLIBS) $(COMMONLIBS) $(LIBZ) 19 | echo Generating localization strings... 20 | - ./genstrings >sample.c 21 | +# ./genstrings >sample.c 22 | 23 | 24 | # 25 | -------------------------------------------------------------------------------- /conf/patches/cups-1.5/0002-airprint.patch: -------------------------------------------------------------------------------- 1 | diff -ru cups-1.5.0//scheduler/dirsvc.c cups//scheduler/dirsvc.c 2 | --- cups-1.5.0//scheduler/dirsvc.c 2011-05-20 04:49:49.000000000 +0100 3 | +++ cups//scheduler/dirsvc.c 2011-10-10 01:38:51.000000000 +0100 4 | @@ -2399,6 +2399,9 @@ 5 | keyvalue[i ][0] = "pdl"; 6 | keyvalue[i++][1] = p->pdl ? p->pdl : "application/postscript"; 7 | 8 | + keyvalue[i ][0] = "URF"; 9 | + keyvalue[i++][1] = "none"; 10 | + 11 | if (get_auth_info_required(p, air_str, sizeof(air_str))) 12 | { 13 | keyvalue[i ][0] = "air"; 14 | -------------------------------------------------------------------------------- /conf/patches/fbgrab/cross-compile.patch: -------------------------------------------------------------------------------- 1 | diff -rcw fbgrab-1.0/Makefile fbgrab-1.0.new/Makefile 2 | *** fbgrab-1.0/Makefile Wed Mar 20 19:49:06 2002 3 | --- fbgrab-1.0.new/Makefile Thu Dec 9 16:15:07 2010 4 | *************** 5 | *** 3,16 **** 6 | ### modular. So this is a simple gnu Makefile... 7 | ### 8 | 9 | fbgrab: fbgrab.c 10 | ! splint +posixlib fbgrab.c 11 | ! gcc -g -Wall fbgrab.c -lpng -lz -o fbgrab 12 | 13 | install: 14 | ! strip fbgrab 15 | ! install fbgrab /usr/bin/fbgrab 16 | ! install fbgrab.1.man /usr/man/man1/fbgrab.1 17 | 18 | clean: 19 | rm -f fbgrab *~ \#*\# 20 | \ No newline at end of file 21 | --- 3,16 ---- 22 | ### modular. So this is a simple gnu Makefile... 23 | ### 24 | 25 | + DESTDIR ?= /usr/local 26 | + 27 | fbgrab: fbgrab.c 28 | ! $(CC) $(CPPFLAGS) $(CFLAGS) $^ -lpng -lz -o $@ $(LDFLAGS) 29 | 30 | install: 31 | ! install -s fbgrab $(DESTDIR)/bin/fbgrab 32 | ! install fbgrab.1.man $(DESTDIR)/man/man1/fbgrab.1 33 | 34 | clean: 35 | rm -f fbgrab *~ \#*\# 36 | -------------------------------------------------------------------------------- /conf/patches/libglib/disable-ipv6.patch: -------------------------------------------------------------------------------- 1 | diff -ru glib-2.35.1/gio/ginetaddress.c libglib/gio/ginetaddress.c 2 | --- glib-2.35.1/gio/ginetaddress.c 2012-10-13 16:01:55.000000000 +0100 3 | +++ libglib/gio/ginetaddress.c 2012-11-21 17:32:23.811631399 +0000 4 | @@ -483,7 +483,11 @@ 5 | return g_inet_address_new_from_bytes (addr, family); 6 | } 7 | else 8 | +#ifdef DISABLE_IPV6 9 | + return NULL; 10 | +#else 11 | return g_inet_address_new_from_bytes (in6addr_loopback.s6_addr, family); 12 | +#endif 13 | } 14 | 15 | /** 16 | @@ -510,7 +514,11 @@ 17 | return g_inet_address_new_from_bytes (addr, family); 18 | } 19 | else 20 | +#ifdef DISABLE_IPV6 21 | + return NULL; 22 | +#else 23 | return g_inet_address_new_from_bytes (in6addr_any.s6_addr, family); 24 | +#endif 25 | } 26 | 27 | 28 | --- glib-2.35.1/gio/gsocket.c 2012-10-13 16:01:55.000000000 +0100 29 | +++ libglib/gio/gsocket.c 2012-11-21 17:32:40.879630897 +0000 30 | @@ -65,6 +65,22 @@ 31 | #include "gcredentials.h" 32 | #include "glibintl.h" 33 | 34 | +#ifndef IPV6_MULTICAST_HOPS 35 | +#define IPV6_MULTICAST_HOPS 0 36 | +#endif 37 | +#ifndef IPV6_MULTICAST_LOOP 38 | +#define IPV6_MULTICAST_LOOP 0 39 | +#endif 40 | +#ifndef IPV6_JOIN_GROUP 41 | +#define IPV6_JOIN_GROUP 0 42 | +#endif 43 | +#ifndef IPV6_LEAVE_GROUP 44 | +#define IPV6_LEAVE_GROUP 0 45 | +#endif 46 | +#ifndef IPV6_UNICAST_HOPS 47 | +#define IPV6_UNICAST_HOPS 0 48 | +#endif 49 | + 50 | /** 51 | * SECTION:gsocket 52 | * @short_description: Low-level socket object 53 | diff -ru glib-2.35.1/gio/tests/socket.c libglib/gio/tests/socket.c 54 | --- glib-2.35.1/gio/tests/socket.c 2012-10-22 21:04:15.000000000 +0100 55 | +++ libglib/gio/tests/socket.c 2012-11-21 17:32:29.223631244 +0000 56 | @@ -636,6 +636,7 @@ 57 | static void 58 | test_sockaddr (void) 59 | { 60 | +#ifndef DISABLE_IPV6 61 | struct sockaddr_in6 sin6, gsin6; 62 | GSocketAddress *saddr; 63 | GInetSocketAddress *isaddr; 64 | @@ -670,6 +671,7 @@ 65 | g_assert_cmpint (sin6.sin6_flowinfo, ==, gsin6.sin6_flowinfo); 66 | 67 | g_object_unref (saddr); 68 | +#endif 69 | } 70 | 71 | #ifdef G_OS_UNIX 72 | -------------------------------------------------------------------------------- /conf/patches/libncurses/500-cross.patch: -------------------------------------------------------------------------------- 1 | --- a/aclocal.m4 2 | +++ b/aclocal.m4 3 | @@ -4298,7 +4298,7 @@ CF_EOF 4 | EXTRA_LDFLAGS="-Wl,-rpath,\${libdir} $EXTRA_LDFLAGS" 5 | fi 6 | CF_SHARED_SONAME 7 | - MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_cv_shared_soname',-stats,-lc -o $[@]' 8 | + MK_SHARED_LIB='${CC} ${CFLAGS} -shared -Wl,-soname,'$cf_shared_soname',-stats,$(LDFLAGS) -lc -o $[@]' 9 | ;; 10 | openbsd[[2-9]].*) 11 | if test "$DFT_LWR_MODEL" = "shared" ; then 12 | -------------------------------------------------------------------------------- /conf/patches/libnl/001-fixes-limits-include.patch: -------------------------------------------------------------------------------- 1 | diff -ru libnl-1.0-pre6/include/netlink-local.h libnl/include/netlink-local.h 2 | --- libnl-1.0-pre6/include/netlink-local.h 2006-08-17 14:57:31.000000000 +0100 3 | +++ libnl/include/netlink-local.h 2010-04-09 13:59:56.000000000 +0100 4 | @@ -12,6 +12,7 @@ 5 | #ifndef NETLINK_LOCAL_H_ 6 | #define NETLINK_LOCAL_H_ 7 | 8 | +#include 9 | #include 10 | #include 11 | #include 12 | -------------------------------------------------------------------------------- /conf/patches/libsoup/01-make-sqlite-optional.patch: -------------------------------------------------------------------------------- 1 | diff -ur libsoup-2.51.3/configure.ac libsoup.patch/configure.ac 2 | --- libsoup-2.51.3/configure.ac 2015-06-22 22:27:08.000000000 +0100 3 | +++ libsoup.patch/configure.ac 2015-09-12 15:25:02.359825640 +0100 4 | @@ -94,7 +94,13 @@ 5 | AC_SUBST(XML_CFLAGS) 6 | AC_SUBST(XML_LIBS) 7 | 8 | -PKG_CHECK_MODULES(SQLITE, sqlite3) 9 | +AC_ARG_WITH([sqlite], AS_HELP_STRING([--with-sqlite], [Build with sqlite cookies DB])) 10 | + 11 | +PKG_CHECK_MODULES([SQLITE], [sqlite3], 12 | + have_sqlite=yes, 13 | + have_sqlite=no] 14 | +) 15 | +AM_CONDITIONAL(HAVE_SQLITE, test $have_sqlite = yes) 16 | AC_SUBST(SQLITE_CFLAGS) 17 | AC_SUBST(SQLITE_LIBS) 18 | 19 | diff -ur libsoup-2.51.3/libsoup/Makefile.am libsoup.patch/libsoup/Makefile.am 20 | --- libsoup-2.51.3/libsoup/Makefile.am 2015-06-21 16:08:31.000000000 +0100 21 | +++ libsoup.patch/libsoup/Makefile.am 2015-09-12 15:20:27.379821571 +0100 22 | @@ -134,7 +134,6 @@ 23 | soup-converter-wrapper.c \ 24 | soup-cookie.c \ 25 | soup-cookie-jar.c \ 26 | - soup-cookie-jar-db.c \ 27 | soup-cookie-jar-text.c \ 28 | soup-date.c \ 29 | soup-directory-input-stream.h \ 30 | @@ -194,6 +193,10 @@ 31 | soup-websocket-connection.c \ 32 | soup-xmlrpc.c 33 | 34 | +if HAVE_SQLITE 35 | +libsoup_2_4_la_SOURCES += soup-cookie-jar-db.c 36 | +endif 37 | + 38 | # TLD rules 39 | EXTRA_DIST += tld-parser.py 40 | 41 | -------------------------------------------------------------------------------- /conf/patches/libtalloc-make/Makefile: -------------------------------------------------------------------------------- 1 | # Replacement for garbage 'waf' 2 | 3 | all: libtalloc.la 4 | 5 | LIBTOOL ?= libtool 6 | INSTALL ?= install 7 | DESTDIR ?= /tmp 8 | LIBDIR ?= $(DESTDIR)/usr/lib 9 | INCDIR ?= $(DESTDIR)/usr/include 10 | CFLAGS += -I. -Wall -fPIC 11 | #CC = gcc 12 | 13 | VERSION=${shell grep '^VERSION' wscript | sed "s/[A-Z =']//g"} 14 | 15 | talloc.lo : talloc.c talloc.h replace.h 16 | $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) -c $< -o $@ 17 | 18 | libtalloc.la : talloc.lo 19 | @echo libtalloc VERSION $(VERSION) 20 | $(LIBTOOL) --tag=CC --mode=link $(CC) -release $(VERSION) -rpath $(LIBDIR) -o $@ $^ 21 | 22 | install: 23 | mkdir -p $(INCDIR) $(LIBDIR)/pkgconfig 24 | $(INSTALL) -c talloc.h $(INCDIR)/talloc.h 25 | $(LIBTOOL) --mode=install $(INSTALL) -c libtalloc.la $(LIBDIR)/libtalloc.la 26 | $(INSTALL) -c talloc.pc $(LIBDIR)/pkgconfig/talloc.pc 27 | 28 | clean: 29 | rm -rf *.la *.a *.o *.lo .libs 30 | -------------------------------------------------------------------------------- /conf/patches/libtalloc-make/configure: -------------------------------------------------------------------------------- 1 | # empty replacement for shit 'waf' 2 | -------------------------------------------------------------------------------- /conf/patches/libtalloc-make/replace.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef __REPLACE_H__ 3 | #define __REPLACE_H__ 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | typedef char bool; 14 | #define true 1 15 | #define false 0 16 | 17 | #define _PUBLIC_ 18 | #define HAVE_VA_COPY 19 | 20 | #define MIN(a,b) ((a)<(b)?(a):(b)) 21 | #define PTR_DIFF(p1,p2) ((((const char *)(p1)) - (const char *)(p2))) 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /conf/patches/libtalloc-make/talloc.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: talloc 7 | Description: A hierarchical pool based memory system with destructors 8 | Version: 2.0.6 9 | Libs: -L${libdir} -ltalloc 10 | Cflags: -I${includedir} 11 | URL: http://talloc.samba.org/ 12 | -------------------------------------------------------------------------------- /conf/patches/libtermbox-make/Makefile: -------------------------------------------------------------------------------- 1 | # Replacement for garbage 'waf' 2 | 3 | TARGET=termbox 4 | LIBTARGET=lib$(TARGET) 5 | 6 | all: $(LIBTARGET).la 7 | 8 | LIBTOOL ?= libtool 9 | INSTALL ?= install 10 | DESTDIR ?= /tmp 11 | LIBDIR ?= $(DESTDIR)/usr/lib 12 | INCDIR ?= $(DESTDIR)/usr/include 13 | CFLAGS += -I. -Wall -fPIC 14 | 15 | VERSION=1.1.2 16 | 17 | SRC = ${wildcard *.c} 18 | OBJ = ${SRC:.c=.lo} 19 | 20 | %.lo : %.c 21 | $(LIBTOOL) --tag=CC --mode=compile $(CC) $(CFLAGS) -c $^ -o $@ 22 | 23 | $(LIBTARGET).la : ${OBJ} 24 | @echo $(PACKAGE) VERSION $(VERSION) 25 | $(LIBTOOL) --tag=CC --mode=link $(CC) -release $(VERSION) -o $@ $^ -rpath $(LIBDIR) 26 | 27 | install: 28 | mkdir -p $(INCDIR) $(LIBDIR)/pkgconfig 29 | $(INSTALL) -c $(TARGET).h $(INCDIR)/$(TARGET).h 30 | $(LIBTOOL) --mode=install $(INSTALL) -c $(LIBTARGET).la $(LIBDIR)/ 31 | $(INSTALL) -c *.pc $(LIBDIR)/pkgconfig/$(TARGET).pc 32 | 33 | clean: 34 | rm -rf *.la *.a *.o *.lo .libs 35 | -------------------------------------------------------------------------------- /conf/patches/libtermbox-make/configure: -------------------------------------------------------------------------------- 1 | # empty replacement for shit 'waf' 2 | -------------------------------------------------------------------------------- /conf/patches/libtermbox-make/termbox.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr 2 | exec_prefix=${prefix} 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: termbox 7 | Description: Libncurses alternative 8 | Version: 1.1.2 9 | Libs: -L${libdir} -ltermbox 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /conf/patches/libusb/configure.patch: -------------------------------------------------------------------------------- 1 | diff -ur libusb-0.1.12/config.sub libusb.new/config.sub 2 | --- libusb-0.1.12/config.sub 2004-04-12 03:01:57.000000000 +0100 3 | +++ libusb.new/config.sub 2010-02-20 17:34:19.000000000 +0000 4 | @@ -152,6 +152,10 @@ 5 | os= 6 | basic_machine=$1 7 | ;; 8 | + -uclibc*) 9 | + basic_machine=`echo $1 | sed 's/-.*//' ` 10 | + os=`echo $1 | sed 's/-/ /g'|awk '{print "-" $3}' ` 11 | + ;; 12 | -scout) 13 | ;; 14 | -wrs) 15 | esac 16 | -------------------------------------------------------------------------------- /conf/patches/mDNSResponder/cflags.patch: -------------------------------------------------------------------------------- 1 | diff -urw mDNSResponder-107.6.orig/mDNSPosix/Makefile mDNSResponder-107.6/mDNSPosix/Makefile 2 | --- mDNSResponder-107.6.orig/mDNSPosix/Makefile 2006-06-21 00:07:04.000000000 +0100 3 | +++ mDNSResponder-107.6/mDNSPosix/Makefile 2010-02-10 16:41:04.000000000 +0000 4 | @@ -431,7 +431,7 @@ 5 | endif 6 | endif 7 | 8 | -CFLAGS = $(CFLAGS_COMMON) $(CFLAGS_OS) $(CFLAGS_DEBUG) 9 | +CFLAGS = $(CFLAGS_CROSS) $(CFLAGS_COMMON) $(CFLAGS_OS) $(CFLAGS_DEBUG) 10 | 11 | ############################################################################# 12 | 13 | -------------------------------------------------------------------------------- /conf/patches/node/0001-uclibc.patch: -------------------------------------------------------------------------------- 1 | diff -ru node-v0.8.15/deps/v8/src/platform-linux.cc node/deps/v8/src/platform-linux.cc 2 | --- node-v0.8.15/deps/v8/src/platform-linux.cc 2012-11-26 15:51:39.000000000 +0000 3 | +++ node/deps/v8/src/platform-linux.cc 2012-12-04 12:01:38.614992770 +0000 4 | @@ -1033,7 +1033,7 @@ 5 | sample->fp = reinterpret_cast
(mcontext.gregs[REG_RBP]); 6 | #elif V8_HOST_ARCH_ARM 7 | // An undefined macro evaluates to 0, so this applies to Android's Bionic also. 8 | -#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3)) 9 | +#if (__GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ <= 3)) && !defined(__UCLIBC__) 10 | sample->pc = reinterpret_cast
(mcontext.gregs[R15]); 11 | sample->sp = reinterpret_cast
(mcontext.gregs[R13]); 12 | sample->fp = reinterpret_cast
(mcontext.gregs[R11]); 13 | -------------------------------------------------------------------------------- /conf/patches/pam/0002-include_paths_header.patch: -------------------------------------------------------------------------------- 1 | This patch adds missing include for paths.h which should provide 2 | _PATH_LASTLOG definition 3 | 4 | Upstream-Status: Pending 5 | 6 | Signed-off-by: Khem Raj 7 | Index: Linux-PAM-1.1.6/modules/pam_lastlog/pam_lastlog.c 8 | =================================================================== 9 | --- Linux-PAM-1.1.6.orig/modules/pam_lastlog/pam_lastlog.c 10 | +++ Linux-PAM-1.1.6/modules/pam_lastlog/pam_lastlog.c 11 | @@ -23,9 +23,11 @@ 12 | #include 13 | #include 14 | #include 15 | +#include 16 | #include 17 | #include 18 | #include 19 | +#include 20 | 21 | #if defined(hpux) || defined(sunos) || defined(solaris) 22 | # ifndef _PATH_LASTLOG 23 | @@ -332,6 +334,23 @@ last_login_read(pam_handle_t *pamh, int 24 | return retval; 25 | } 26 | 27 | +#ifndef __GLIBC__ 28 | +static void logwtmp(const char * line, const char * name, const char * host) 29 | +{ 30 | + struct utmp u; 31 | + memset(&u, 0, sizeof(u)); 32 | + 33 | + u.ut_pid = getpid(); 34 | + u.ut_type = name[0] ? USER_PROCESS : DEAD_PROCESS; 35 | + strncpy(u.ut_line, line, sizeof(u.ut_line)); 36 | + strncpy(u.ut_name, name, sizeof(u.ut_name)); 37 | + strncpy(u.ut_host, host, sizeof(u.ut_host)); 38 | + gettimeofday(&(u.ut_tv), NULL); 39 | + 40 | + updwtmp(_PATH_WTMP, &u); 41 | +} 42 | +#endif /* __GLIBC__ */ 43 | + 44 | static int 45 | last_login_write(pam_handle_t *pamh, int announce, int last_fd, 46 | uid_t uid, const char *user) 47 | Index: Linux-PAM-1.1.6/modules/Makefile.am 48 | =================================================================== 49 | --- Linux-PAM-1.1.6.orig/modules/Makefile.am 50 | +++ Linux-PAM-1.1.6/modules/Makefile.am 51 | @@ -7,7 +7,7 @@ SUBDIRS = pam_access pam_cracklib pam_de 52 | pam_group pam_issue pam_keyinit pam_lastlog pam_limits \ 53 | pam_listfile pam_localuser pam_loginuid pam_mail \ 54 | pam_mkhomedir pam_motd pam_namespace pam_nologin \ 55 | - pam_permit pam_pwhistory pam_rhosts pam_rootok pam_securetty \ 56 | + pam_permit pam_pwhistory pam_rootok pam_securetty \ 57 | pam_selinux pam_sepermit pam_shells pam_stress \ 58 | pam_succeed_if pam_tally pam_tally2 pam_time pam_timestamp \ 59 | pam_tty_audit pam_umask \ 60 | -------------------------------------------------------------------------------- /conf/patches/pam/fix-have-getdomainname.patch: -------------------------------------------------------------------------------- 1 | diff -ru Linux-PAM-1.3.0/modules/pam_access/pam_access.c Linux-PAM-1.3.0-ARM/modules/pam_access/pam_access.c 2 | --- Linux-PAM-1.3.0/modules/pam_access/pam_access.c 2016-03-24 07:50:21.000000000 -0400 3 | +++ Linux-PAM-1.3.0-ARM/modules/pam_access/pam_access.c 2017-01-24 16:24:00.221273618 -0500 4 | @@ -469,6 +469,8 @@ 5 | char *mydomain = NULL; 6 | char domainname_res[256]; 7 | 8 | +#if defined(HAVE_GETDOMAINNAME) 9 | + 10 | if (getdomainname (domainname_res, sizeof (domainname_res)) == 0) 11 | { 12 | if (domainname_res[0] != '\0' && strcmp (domainname_res, "(none)") != 0) 13 | @@ -476,6 +478,7 @@ 14 | mydomain = domainname_res; 15 | } 16 | } 17 | +#endif 18 | 19 | #ifdef HAVE_INNETGR 20 | retval = innetgr (netgroup, machine, user, mydomain); 21 | diff -ru Linux-PAM-1.3.0/modules/pam_issue/pam_issue.c Linux-PAM-1.3.0-ARM/modules/pam_issue/pam_issue.c 22 | --- Linux-PAM-1.3.0/modules/pam_issue/pam_issue.c 2016-03-24 07:50:21.000000000 -0400 23 | +++ Linux-PAM-1.3.0-ARM/modules/pam_issue/pam_issue.c 2017-01-24 16:25:09.157942017 -0500 24 | @@ -201,10 +201,15 @@ 25 | { 26 | char domainname[256]; 27 | 28 | +#if defined(HAVE_GETDOMAINNAME) 29 | + 30 | if (getdomainname(domainname, sizeof(domainname)) >= 0) { 31 | domainname[sizeof(domainname)-1] = '\0'; 32 | strncat(buf, domainname, sizeof(buf) - 1); 33 | } 34 | +#else 35 | + strncat(buf, "local", sizeof(buf) - 1); 36 | +#endif 37 | } 38 | break; 39 | case 'd': 40 | -------------------------------------------------------------------------------- /conf/patches/screen-4.0.3/0003-sched.patch: -------------------------------------------------------------------------------- 1 | diff -urN screen-4.0.3-orig/sched.h screen-4.0.3/sched.h 2 | --- screen-4.0.3-orig/sched.h 2002-01-08 16:42:43.000000000 +0100 3 | +++ screen-4.0.3/sched.h 2009-01-13 14:53:15.000000000 +0100 4 | @@ -22,6 +22,10 @@ 5 | * $Id: sched.h,v 1.1.1.1 1993/06/16 23:51:13 jnweiger Exp $ FAU 6 | */ 7 | 8 | +#ifndef _SCHED_H_ 9 | +#define _SCHED_H_ 1 10 | +#include 11 | + 12 | struct event 13 | { 14 | struct event *next; 15 | @@ -41,3 +45,4 @@ 16 | #define EV_READ 1 17 | #define EV_WRITE 2 18 | #define EV_ALWAYS 3 19 | +#endif 20 | 21 | -------------------------------------------------------------------------------- /conf/patches/screen-4.0.3/0004-no-stropts.patch: -------------------------------------------------------------------------------- 1 | Index: screen-4.0.3/pty.c 2 | =================================================================== 3 | --- screen-4.0.3.orig/pty.c 2009-09-11 15:44:44.881250800 -0700 4 | +++ screen-4.0.3/pty.c 2009-09-11 15:45:28.077862097 -0700 5 | @@ -34,7 +34,7 @@ 6 | #endif 7 | 8 | /* for solaris 2.1, Unixware (SVR4.2) and possibly others */ 9 | -#ifdef HAVE_SVR4_PTYS 10 | +#if defined HAVE_SVR4_PTYS && !defined __UCLIBC__ 11 | # include 12 | #endif 13 | 14 | -------------------------------------------------------------------------------- /conf/patches/screen-4.0.3/0005-no-utempter.patch: -------------------------------------------------------------------------------- 1 | Index: screen-4.0.3/configure.in 2 | =================================================================== 3 | --- screen-4.0.3.orig/configure.in 2009-09-11 18:42:08.338231443 -0700 4 | +++ screen-4.0.3/configure.in 2009-09-11 18:43:39.378663533 -0700 5 | @@ -1243,12 +1243,6 @@ 6 | #include 7 | #endif 8 | ],[struct utmp u; u.ut_host[0] = 0;], AC_DEFINE(UTHOST)) 9 | -AH_TEMPLATE([HAVE_UTEMPTER]) 10 | -AC_CHECK_HEADER(utempter.h, have_utempter=yes, have_utempter=no) 11 | -if test "$have_utempter" = yes; then 12 | - AC_DEFINE(HAVE_UTEMPTER) 13 | - LIBS="$LIBS -lutempter" 14 | -fi 15 | 16 | dnl 17 | dnl **** loadav **** 18 | -------------------------------------------------------------------------------- /conf/patches/shairport-sync/Makefile: -------------------------------------------------------------------------------- 1 | # Replaces the pile of shit that is autotools with this. It works 2 | 3 | SRC = ${wildcard *.c} 4 | 5 | SRC := ${filter-out audio_sndio.c, ${SRC}} 6 | SRC := ${filter-out audio_pulse.c, ${SRC}} 7 | SRC := ${filter-out audio_ao.c, ${SRC}} 8 | SRC := ${filter-out mdns_dns_sd.c, ${SRC}} 9 | 10 | DEPS = libdaemon alsa openssl avahi-client dbus-1 libconfig popt 11 | ECPPFLAGS += ${shell pkg-config --cflags $(DEPS)} 12 | ECPPFLAGS += -Wno-multichar 13 | ELDFLAGS += ${shell pkg-config --libs $(DEPS)} \ 14 | -lrt -lm -lpthread -lintl -liconv 15 | 16 | all: shairport 17 | 18 | config.h: 19 | (echo '#define CONFIG_ALSA 1' ;\ 20 | echo '#define CONFIG_AVAHI 1' ;\ 21 | echo '#define CONFIG_METADATA 1' ;\ 22 | echo '#define HAVE_LIBSSL 1' ;\ 23 | echo '#define SYSCONFDIR "/etc"' ;\ 24 | echo '#define PACKAGE_VERSION "minifs"' ;\ 25 | )>$@ 26 | 27 | shairport: config.h ${SRC} *.h 28 | $(CC) $(CPPFLAGS) $(ECPPFLAGS) $(CFLAGS) $(ECFLAGS) \ 29 | ${filter %.c,$(^)} -o $@ \ 30 | $(LDFLAGS) $(ELDFLAGS) \ 31 | || rm -f $@ 32 | 33 | clean: 34 | rm -f shairport config.h 35 | 36 | install: 37 | mkdir -p $(DESTDIR)/bin 38 | cp shairport $(DESTDIR)/bin/ 39 | -------------------------------------------------------------------------------- /conf/patches/toluapp/0001-makefile.patch: -------------------------------------------------------------------------------- 1 | diff --git a/.gitignore b/.gitignore 2 | new file mode 100644 3 | index 0000000..2111183 4 | --- /dev/null 5 | +++ b/.gitignore 6 | @@ -0,0 +1,4 @@ 7 | +*.o 8 | +bin 9 | +lib 10 | +.sconsign.dblite 11 | diff --git a/Makefile b/Makefile 12 | index 92ded6c..4f5dd7a 100644 13 | --- a/Makefile 14 | +++ b/Makefile 15 | @@ -1,5 +1,25 @@ 16 | # makefile for tolua hierarchy 17 | 18 | -all: 19 | - @echo "Makefile is deprecated ;)" 20 | - @echo "see INSTALL for details on how to build tolua++" 21 | +all: lib/libtolua++.a 22 | + 23 | +DESTDIR=/usr/local/${CROSS_COMPILE:-=}/ 24 | + 25 | +CFLAGS += -O2 \ 26 | + -I${DESTDIR}include \ 27 | + -Iinclude 28 | +LDFLAGS = \ 29 | + -L${DESTDIR}lib 30 | + 31 | + 32 | +lib/libtolua++.a: src/lib/tolua_event.o src/lib/tolua_is.o src/lib/tolua_map.o src/lib/tolua_push.o src/lib/tolua_to.o 33 | + $(AR) rc $@ $^ 34 | + ranlib $@ 35 | + 36 | +install: all 37 | + mkdir -p ${DESTDIR}/bin ${DESTDIR}/lib ${DESTDIR}/include 38 | + cp lib/* ${DESTDIR}/lib/ 39 | + cp include/* ${DESTDIR}/include/ 40 | + cp bin/* ${DESTDIR}/bin/ || true 41 | + 42 | +clean: 43 | + rm -f lib/* src/lib/*.o 44 | diff --git a/custom.py b/custom.py 45 | new file mode 100644 46 | index 0000000..5af4470 47 | --- /dev/null 48 | +++ b/custom.py 49 | @@ -0,0 +1,10 @@ 50 | +# Added by Michel 51 | + 52 | +CCFLAGS = ['-I/usr/local/include', '-O2'] 53 | +LIBPATH = ['/usr/local/lib'] 54 | +LIBS = ['lua', 'dl', 'm'] 55 | +tolua_bin = 'tolua++' 56 | +tolua_lib = 'tolua++' 57 | +TOLUAPP = 'tolua++' 58 | + 59 | +prefix = '/usr/local' 60 | -------------------------------------------------------------------------------- /conf/patches/urjtag/00-fix-reg0.patch: -------------------------------------------------------------------------------- 1 | diff -uwr urjtag/urjtag/include/urjtag/bfin.h urjtag.new/urjtag/include/urjtag/bfin.h 2 | --- urjtag/urjtag/include/urjtag/bfin.h 2013-05-14 12:28:32.000000000 +0100 3 | +++ urjtag.new/urjtag/include/urjtag/bfin.h 2013-08-21 11:34:21.824711245 +0100 4 | @@ -37,7 +37,9 @@ 5 | 6 | enum core_regnum 7 | { 8 | +#ifndef REG_R0 9 | REG_R0 = T_REG_R, REG_R1, REG_R2, REG_R3, REG_R4, REG_R5, REG_R6, REG_R7, 10 | +#endif 11 | REG_P0 = T_REG_P, REG_P1, REG_P2, REG_P3, REG_P4, REG_P5, REG_SP, REG_FP, 12 | REG_I0 = T_REG_I, REG_I1, REG_I2, REG_I3, 13 | REG_M0 = T_REG_M, REG_M1, REG_M2, REG_M3, 14 | -------------------------------------------------------------------------------- /conf/patches/wpa-supplicant/firmware/rt2860.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/patches/wpa-supplicant/firmware/rt2860.bin -------------------------------------------------------------------------------- /conf/patches/wpa-supplicant/firmware/rt2870.bin: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/patches/wpa-supplicant/firmware/rt2870.bin -------------------------------------------------------------------------------- /conf/patches/xkbcomp/001-corss-compile.patch: -------------------------------------------------------------------------------- 1 | diff -cwr xkbcomp.orig//configure.ac xkbcomp/configure.ac 2 | *** xkbcomp.orig//configure.ac Sun Mar 27 22:42:32 2011 3 | --- xkbcomp/configure.ac Tue Mar 29 11:41:34 2011 4 | *************** 5 | *** 36,43 **** 6 | 7 | AC_PROG_YACC 8 | AC_PATH_PROG([YACC_INST], $YACC) 9 | - AC_CHECK_FILE([$srcdir/xkbparse.c], [], 10 | - [test -z "$YACC_INST" && AC_MSG_ERROR([yacc not found - unable to compile xkbparse.y])]) 11 | 12 | 13 | AC_CHECK_FUNCS([strdup strcasecmp]) 14 | --- 36,41 ---- 15 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/group: -------------------------------------------------------------------------------- 1 | root:x:0: 2 | daemon:x:1: 3 | bin:x:2: 4 | sys:x:3: 5 | adm:x:4: 6 | tty:x:5: 7 | disk:x:6: 8 | wheel:x:10:root 9 | dialout:x:20: 10 | audio:x:29:root 11 | utmp:x:43: 12 | staff:x:50: 13 | haldaemon:x:68: 14 | dbus:x:81: 15 | netdev:x:82: 16 | nobody:x:99: 17 | nogroup:x:99: 18 | users:x:100: 19 | 20 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/hosts: -------------------------------------------------------------------------------- 1 | 127.0.0.1 localhost 2 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/init.d/rcS: -------------------------------------------------------------------------------- 1 | #!/bin/hush 2 | 3 | echo "* Mounting filesystems..." 4 | mount -t proc /proc /proc 5 | mount -t devtmpfs devtmpfs /dev 6 | mount -t sysfs none /sys 7 | mkdir -p /dev/pts /dev/shm 8 | mount -t devpts devpts /dev/pts 9 | mount -t tmpfs none /dev/shm 10 | # MOUNT FS -- do not delete this line 11 | mount / / -o remount,noatime >/dev/null 2>&1 12 | 13 | echo "* Starting system loggers..." 14 | syslogd -C16 15 | klogd 16 | 17 | echo /sbin/mdev >/proc/sys/kernel/hotplug 18 | # LOAD MODULES -- do not delete this line 19 | echo "* Creating devices..." 20 | /sbin/mdev -s 21 | 22 | echo -n "* Setting hostname: " 23 | hostname $(cat /etc/hostname) && hostname 24 | 25 | echo "* Configuring loopback interface..." 26 | ifconfig lo 127.0.0.1 up 27 | 28 | up=$(ifconfig eth0|grep addr:) 29 | if [ "$up" != "" ]; then 30 | echo "* eth0:$up" 31 | else 32 | echo "* Configuring network with DHCP..." 33 | ifconfig eth0 up 34 | udhcpc -b -T 1 35 | fi 36 | 37 | # LAUNCH APPS -- do not delete this line 38 | if [ -f /etc/dropbear/dropbear_dss_host_key ]; then 39 | echo "* Starting dropbear..." 40 | dropbear 41 | else 42 | echo "* Starting telnetd..." 43 | telnetd -l /bin/sh 44 | fi 45 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/inittab: -------------------------------------------------------------------------------- 1 | 2 | ::sysinit:/etc/init.d/rcS 3 | #::respawn:/bin/sh 4 | #::respawn:/sbin/getty -L ttyS0 115200 vt100 5 | ::askfirst:-/bin/hush 6 | ::restart:/sbin/init 7 | ::shutdown:/bin/umount -a -r 8 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/mdev.conf: -------------------------------------------------------------------------------- 1 | # 2 | # Create ALSA devices in /dev/snd 3 | # 4 | pcm.* root:audio 0660 =snd/ 5 | control.* root:audio 0660 =snd/ 6 | midi.* root:audio 0660 =snd/ 7 | seq root:audio 0660 =snd/ 8 | timer root:audio 0660 =snd/ 9 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/network-up.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buserror/minifs/0cff27d52dc540e12db6e0e1ca9f3ec0c96c3305/conf/rootfs-base/etc/network-up.sh -------------------------------------------------------------------------------- /conf/rootfs-base/etc/passwd: -------------------------------------------------------------------------------- 1 | root:$1$472n1BCK$mFqWCOzN6oKKR2Qhd9F5V0:0:0:root:/root:/bin/hush 2 | daemon:x:1:1:daemon:/usr/sbin:/bin/sh 3 | bin:x:2:2:bin:/bin:/bin/sh 4 | sys:x:3:3:sys:/dev:/bin/sh 5 | sync:x:4:100:sync:/bin:/bin/sync 6 | mail:x:8:8:mail:/var/spool/mail:/bin/sh 7 | proxy:x:13:13:proxy:/bin:/bin/sh 8 | www-data:x:33:33:www-data:/var/www:/bin/sh 9 | backup:x:34:34:backup:/var/backups:/bin/sh 10 | operator:x:37:37:Operator:/var:/bin/sh 11 | haldaemon:x:68:68:hald:/:/bin/sh 12 | dbus:x:81:81:dbus:/var/run/dbus:/bin/sh 13 | nobody:x:99:99:nobody:/home:/bin/sh 14 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/resolv.conf: -------------------------------------------------------------------------------- 1 | nameserver 8.8.8.8 2 | -------------------------------------------------------------------------------- /conf/rootfs-base/etc/shells: -------------------------------------------------------------------------------- 1 | /bin/sh 2 | /bin/ash 3 | /bin/hush 4 | -------------------------------------------------------------------------------- /conf/rootfs-base/usr/share/udhcpc/default.script: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # udhcpc script edited by Tim Riker 4 | 5 | [ -z "$1" ] && echo "Error: This script must be called from udhcpc" && exit 1 6 | 7 | RESOLV_CONF="/etc/resolv.conf" 8 | [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" 9 | [ -n "$subnet" ] && NETMASK="netmask $subnet" 10 | 11 | case "$1" in 12 | deconfig) 13 | /sbin/ifconfig $interface 0.0.0.0 14 | ;; 15 | 16 | renew|bound) 17 | /sbin/ifconfig $interface $ip $BROADCAST $NETMASK 18 | 19 | if [ -n "$router" ] ; then 20 | echo "Deleting routers" 21 | while route del default gw 0.0.0.0 dev $interface 2> /dev/null ; do 22 | : 23 | done 24 | 25 | for i in $router ; do 26 | route add default gw $i dev $interface 27 | done 28 | fi 29 | 30 | echo '#' > $RESOLV_CONF 31 | [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF 32 | for i in $dns ; do 33 | echo Adding DNS $i 34 | echo nameserver $i >> $RESOLV_CONF 35 | done 36 | [ -f /etc/network-up.sh ] && sh /etc/network-up.sh 37 | ;; 38 | esac 39 | 40 | exit 0 41 | 42 | -------------------------------------------------------------------------------- /conf/target-tools/.gitignore: -------------------------------------------------------------------------------- 1 | uboot_env_*.h 2 | -------------------------------------------------------------------------------- /conf/target-tools/Makefile: -------------------------------------------------------------------------------- 1 | 2 | EXTRA_CFLAGS += --std=gnu99 -Wall 3 | EXTRA_CFLAGS += -ffunction-sections -fdata-sections 4 | LDF = $(LDFLAGS) -Wl,--relax,--gc-sections 5 | 6 | STAGING ?= /tmp/minifs 7 | 8 | TOOLS ?= all 9 | TOOLS_SRC = ${wildcard *.c} 10 | ifeq ($(TOOLS),all) 11 | TOOLS_DST := ${patsubst %.c, %, ${TOOLS_SRC}} 12 | else 13 | TOOLS_DST := $(TOOLS) 14 | endif 15 | # remove uboot_env in case it's not needed 16 | ifneq ($(MINIFS_BOARD),) 17 | UBOOT = $(wildcard ../../build-$(MINIFS_BOARD)/staging/uboot-obj/) 18 | ifeq ($(UBOOT),) 19 | TOOLS_DST := ${patsubst uboot_env,,${TOOLS_DST}} 20 | endif 21 | endif 22 | 23 | TOOLS_BIN := ${patsubst %, $(STAGING)/bin/%, ${TOOLS_DST}} 24 | 25 | all: $(STAGING)/bin $(TOOLS_BIN) 26 | 27 | waitfor_uevent: $(STAGING)/bin/waitfor_uevent 28 | i2ctalk: $(STAGING)/bin/i2ctalk 29 | kmem: $(STAGING)/bin/kmem 30 | fbtest: $(STAGING)/bin/fbtest 31 | spitalk: $(STAGING)/bin/spitalk 32 | fat_find: $(STAGING)/bin/fat_find 33 | 34 | $(STAGING)/bin: 35 | mkdir -p $@ 36 | 37 | $(STAGING)/bin/% : %.c 38 | $(CC) $(CFLAGS) $(EXTRA_CFLAGS) $(MY_CFLAGS) -o $@ $^ $(LDF) 39 | 40 | LIBFAT = $(BUILD)/syslinux/libfat/ 41 | LIBFAT_SRC = ${wildcard ${LIBFAT}/*.c} 42 | 43 | $(STAGING)/bin/fat_find : EXTRA_CFLAGS += -I$(LIBFAT) 44 | $(STAGING)/bin/fat_find : $(LIBFAT_SRC) 45 | 46 | $(STAGING)/bin/i2ctalk : LDF += -lm 47 | 48 | # if a uboot exists, we can compile the environment tool for it 49 | ifneq ($(MINIFS_BOARD),) 50 | #UBOOT = $(wildcard ../../build-$(MINIFS_BOARD)/uboot/) 51 | ifneq ($(UBOOT),) 52 | include $(UBOOT)/include/autoconf.mk 53 | MY_CFLAGS += -DCONFIG_ENV_SIZE=$(CONFIG_ENV_SIZE) 54 | MY_CFLAGS += -DCONFIG_MINIFS_BOARD=$(MINIFS_BOARD) 55 | MY_CFLAGS += -DCONFIG_H="\"uboot_env_$(MINIFS_BOARD).h\"" 56 | 57 | uboot_env_$(MINIFS_BOARD).h: ${UBOOT}/u-boot 58 | ./uboot_env_extract.sh $^ >$@ 59 | 60 | $(STAGING)/bin/uboot_env : lib/crc32.c 61 | $(STAGING)/bin/uboot_env : uboot_env_$(MINIFS_BOARD).h 62 | $(STAGING)/bin/uboot_env : MY_CFLAGS += -std=gnu99 63 | uboot_env: $(STAGING)/bin/uboot_env 64 | endif 65 | endif 66 | 67 | clean: 68 | rm -f $(TOOLS_BIN) 69 | 70 | deploy: 71 | cp $(TOOLS_BIN) $(ROOT)/bin/ 72 | -------------------------------------------------------------------------------- /conf/target-tools/uboot_env_extract.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo \#if 0 4 | uboot_binary=$1 5 | 6 | echo // u-boot filename: $uboot_binary 7 | 8 | sym=($(objdump -t $uboot_binary | grep default_environment)) 9 | 10 | echo // symbol section ${sym[3]} addr ${sym[0]} size ${sym[4]} 11 | 12 | section=($(objdump -h $uboot_binary |grep ${sym[3]})) 13 | 14 | echo // section base ${section[3]} offset ${section[5]} 15 | 16 | sym_addr=$((0x${sym[0]})) 17 | sym_size=$((0x${sym[4]})) 18 | section_addr=$((0x${section[3]})) 19 | 20 | offset_in_section=$((sym_addr - section_addr)) 21 | section_file_offset=$((0x${section[5]})) 22 | 23 | offset_in_file=$((section_file_offset + offset_in_section)) 24 | 25 | dd if=$uboot_binary of=uboot_environment bs=1 \ 26 | skip=$offset_in_file count=$sym_size >/dev/null 2>&1 || exit 1 27 | 28 | hexdump -C uboot_environment 29 | echo \#endif 30 | xxd -i uboot_environment | sed 's/^unsigned/static const unsigned/' 31 | 32 | rm -f uboot_environment 33 | 34 | exit 0 35 | 36 | # $ objdump -t u-boot|grep default_environment 37 | # 04018d01 g O .rodata 000000ec default_environment 38 | # $ objdump -h u-boot|grep .rodata 39 | # 1 .rodata 00008b3b 04016598 04016598 0001e598 2**3 40 | --------------------------------------------------------------------------------