Compare commits
72 Commits
2013.05_rc
...
2013.05_rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cfcbfa2c60 | ||
|
|
a517092fa3 | ||
|
|
867aa7f987 | ||
|
|
dc8b8c868a | ||
|
|
13c367f827 | ||
|
|
b193c1264a | ||
|
|
cf81029c01 | ||
|
|
bed1490d0f | ||
|
|
90e7cdd28c | ||
|
|
5fa49a6c0f | ||
|
|
9b273ea860 | ||
|
|
32a2f502c6 | ||
|
|
f8a6a1b94a | ||
|
|
376c3aad61 | ||
|
|
8d34e073c0 | ||
|
|
5691446961 | ||
|
|
9947ee9fbb | ||
|
|
b1c2bed547 | ||
|
|
13d91f18a3 | ||
|
|
0651830447 | ||
|
|
8e384dcb8f | ||
|
|
7c58258e21 | ||
|
|
7c6232658a | ||
|
|
671bd04685 | ||
|
|
61232f8060 | ||
|
|
48ac24985c | ||
|
|
d6ae18cccc | ||
|
|
a5d5b097a4 | ||
|
|
3dfbf65760 | ||
|
|
0cc701cf73 | ||
|
|
aed08f8bd9 | ||
|
|
0a7ea9465c | ||
|
|
a8d55430c4 | ||
|
|
83944af154 | ||
|
|
07a2ec3e0e | ||
|
|
5b0c6f024c | ||
|
|
1c0d1949c6 | ||
|
|
40ccd2122e | ||
|
|
cb97a23b5d | ||
|
|
e7dce165ab | ||
|
|
cf82c300e0 | ||
|
|
fd234bebae | ||
|
|
92cd8a5273 | ||
|
|
e5726eb498 | ||
|
|
6a77344162 | ||
|
|
4624567df1 | ||
|
|
d6fa07ffae | ||
|
|
401a3d98e1 | ||
|
|
c27b71bccb | ||
|
|
e8008c961c | ||
|
|
13cdffe529 | ||
|
|
e5ef6f7f71 | ||
|
|
df8d52fb02 | ||
|
|
31002cb403 | ||
|
|
4fabcd28ca | ||
|
|
603293f5ff | ||
|
|
d131f75019 | ||
|
|
12fafd0c31 | ||
|
|
0a442d05cf | ||
|
|
e2e8bb3580 | ||
|
|
e074805b5c | ||
|
|
8c87152fe8 | ||
|
|
2e040c6310 | ||
|
|
88587d5b14 | ||
|
|
06e5c7a111 | ||
|
|
9988d3f780 | ||
|
|
9b34cc0bcd | ||
|
|
ff24e7f040 | ||
|
|
2c1a1bb1cd | ||
|
|
ecd0f65af9 | ||
|
|
ee377acd87 | ||
|
|
f787cd2085 |
60
CHANGES
60
CHANGES
@@ -1,3 +1,63 @@
|
||||
2013.05-rc2, Released May 15th, 2013:
|
||||
|
||||
Fixes all over the tree.
|
||||
|
||||
Default number of parallel jobs is now number of CPUs + 1.
|
||||
|
||||
Defconfigs: Add Telit EVK-PRO3, AT91SAM9260-EK Nand flash.
|
||||
|
||||
Updated/fixed packages: aircrack-ng, busybox, cairo,
|
||||
classpath, curlftpfs, czmq, dbus, f2fs-tools, fan-ctrl,
|
||||
filemq, gst-plugin-bad, gutenprint, hplip, json-c,
|
||||
libatomic_ops, libcurl, libdrm, libglib2, libnspr, libnss,
|
||||
libsha1, libsigsegv, libxcb, linknx, linux-pam, lttng-modules,
|
||||
lttng-tools, matchbox-lib, mcookie, mesa3d, neon, pixman,
|
||||
pulseaudio, python-nfc, qt5imageformats, quota, openssl,
|
||||
sconeserver, strace, sylpheed, wvstreams,
|
||||
xapp_{appres,bdftopcf,beforelight,bitmap,edires,fonttosfnt},
|
||||
xapp_{fslsfonts,fstobdf,iceauth,ico,listres,luit,mkfontdir},
|
||||
xapp_{mkfontscale,oclock,rgb,rstart,scripts,sessreg,setxkbmap},
|
||||
xapp_{showfont,smproxy,twm,viewres,x11perf,xauth,xbacklight},
|
||||
xapp_x{biff,calc,clipboard,clock,cmsdb,cursorgen,dbedizzy,ditview},
|
||||
xapp_x{dm,dpyinfo,driinfo,edit,ev,eyes,f86dga,fd,fontsel,fs,fsinfo},
|
||||
xapp_x{gamma,gc,host,input-calibrator,input,kbcomp,kbevd,kbprint},
|
||||
xapp_x{kbutils,kill,load,logo,lsatoms,lsclients,lsfonts,mag,man},
|
||||
xapp_x{message,mh,modmap,more,pr,prop,randr,rdb,refresh,set,setmode},
|
||||
xapp_x{setpointer,setroot,sm,stdcmap,vidtune,vinfo,wd,wininfo,wud},
|
||||
xcb-util, xcursor-transparent-theme, xdata_xbitmaps,
|
||||
xdata_xcursor-themes,
|
||||
xdriver_xf86-input-{evdev,joystick,keyboard,mouse,synaptics},
|
||||
xdriver_xf86-input-{tslib,vmmouse,void},
|
||||
xdriver_xf86-video-{ark,ast,ati,cirrus,dummy,fbdev,geode,glide},
|
||||
xdriver_xf86-video-{glint,i128,intel,mach64,mga,neomagic,newport},
|
||||
xdriver_xf86-video-{nv,openchrome,r128,savage,siliconmotion,sis},
|
||||
xdriver_xf86-video-{tdfx,tga,trident,v4l,vesa,vmware,voodoo,wsfb},
|
||||
xfont_encodings, xfont_font-adobe-{100,75}dpi,
|
||||
xfont_font-utopia-{100dpi,75dpi,type1},
|
||||
xfont_font-{alias,arabic-misc,bh-100dpi,bh-75dpi},
|
||||
xfont_font-bh-lucidatypewriter-{100,75}dpi, xfont_font-bh-{ttf,type1},
|
||||
xfont_font-bitstream-{100dpi,75dpi,type1}, xfont_font-cronyx-cyrillic,
|
||||
xfont_font-{cursor,daewoo,dec,isas,jis,micro}-misc,
|
||||
xfont_font-ibm-type1, xfont_font-misc-{cyrillic,ethiopic,meltho,misc},
|
||||
xfont_font-{mutt,schumacher}-misc,
|
||||
xfont_font-{screen-cyrillic,sony-misc,sun-misc,util},
|
||||
xfont_font-winitzki-cyrillic, xfont_font-xfree86-type1,
|
||||
xlib_lib{FS,ICE,SM,X11,XScrnSaver,Xau,Xaw,Xcomposite,Xcursor},
|
||||
xlib_libX{damage,dmcp,ext,fixes,font,ft,i,inerama,mu,pm,randr},
|
||||
xlib_libX{render,res,t,tst,v,vMC,xf86dga,xf86vm},
|
||||
xlib_lib{dmx,fontenc,pciaccess,pthread-stubs,xkbfile}, xlib_xtrans,
|
||||
xproto_{applewm,bigreqs,composite,damage,dmx,dri2,fixes}proto,
|
||||
xproto_{fontcache,font,gl,input,kb,randr,record,render}proto,
|
||||
xproto_{resource,scrnsaver,video,windowswm,xcmisc,xext}proto,
|
||||
xproto_{xf86bigfont,xf86dga,xf86dri,xf86vidmode,xinerama,x}proto,
|
||||
xserver_xorg-server, xutil_{makedepend,util-macros}
|
||||
|
||||
Readded Packages: xapp_xinit
|
||||
|
||||
Issues resolved (http://bugs.uclibc.org):
|
||||
|
||||
#5054: amd64: cannot find init - due to missing /lib64 folder
|
||||
|
||||
2013.05-rc1, Released May 8th, 2013:
|
||||
|
||||
Architectures: ARC support, Blackfin support, FLAT binary
|
||||
|
||||
2
Makefile
2
Makefile
@@ -24,7 +24,7 @@
|
||||
#--------------------------------------------------------------
|
||||
|
||||
# Set and export the version string
|
||||
export BR2_VERSION:=2013.05-rc1
|
||||
export BR2_VERSION:=2013.05-rc2
|
||||
|
||||
# Check for minimal make version (note: this check will break at make 10.x)
|
||||
MIN_MAKE_VERSION=3.81
|
||||
|
||||
98
board/atmel/at91sam9260ek/linux-3.9.config
Normal file
98
board/atmel/at91sam9260ek/linux-3.9.config
Normal file
@@ -0,0 +1,98 @@
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
# CONFIG_LOCALVERSION_AUTO is not set
|
||||
CONFIG_KERNEL_LZO=y
|
||||
# CONFIG_SWAP is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_LOG_BUF_SHIFT=14
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_SLAB=y
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
# CONFIG_BLK_DEV_BSG is not set
|
||||
# CONFIG_IOSCHED_DEADLINE is not set
|
||||
# CONFIG_IOSCHED_CFQ is not set
|
||||
CONFIG_ARCH_AT91=y
|
||||
CONFIG_ARCH_AT91SAM9260=y
|
||||
CONFIG_ARCH_AT91SAM9260_SAM9XE=y
|
||||
CONFIG_MACH_AT91SAM9260EK=y
|
||||
CONFIG_MACH_CAM60=y
|
||||
CONFIG_MACH_SAM9_L9260=y
|
||||
CONFIG_MACH_AFEB9260=y
|
||||
CONFIG_MACH_USB_A9260=y
|
||||
CONFIG_MACH_QIL_A9260=y
|
||||
CONFIG_MACH_CPU9260=y
|
||||
CONFIG_MACH_FLEXIBITY=y
|
||||
CONFIG_MACH_SNAPPER_9260=y
|
||||
CONFIG_MACH_AT91SAM_DT=y
|
||||
CONFIG_AT91_PROGRAMMABLE_CLOCKS=y
|
||||
# CONFIG_ARM_THUMB is not set
|
||||
CONFIG_ZBOOT_ROM_TEXT=0x0
|
||||
CONFIG_ZBOOT_ROM_BSS=0x0
|
||||
CONFIG_ARM_APPENDED_DTB=y
|
||||
CONFIG_ARM_ATAG_DTB_COMPAT=y
|
||||
CONFIG_CMDLINE="mem=64M console=ttyS0,115200 initrd=0x21100000,3145728 root=/dev/ram0 rw"
|
||||
CONFIG_FPE_NWFPE=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_PNP=y
|
||||
CONFIG_IP_PNP_BOOTP=y
|
||||
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||
# CONFIG_INET_LRO is not set
|
||||
# CONFIG_IPV6 is not set
|
||||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_CMDLINE_PARTS=y
|
||||
CONFIG_MTD_NAND=y
|
||||
CONFIG_MTD_NAND_ATMEL=y
|
||||
CONFIG_MTD_UBI=y
|
||||
CONFIG_BLK_DEV_RAM=y
|
||||
CONFIG_BLK_DEV_RAM_SIZE=8192
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_SCSI_MULTI_LUN=y
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_MACB=y
|
||||
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||
# CONFIG_INPUT_KEYBOARD is not set
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
# CONFIG_SERIO is not set
|
||||
CONFIG_SERIAL_ATMEL=y
|
||||
CONFIG_SERIAL_ATMEL_CONSOLE=y
|
||||
# CONFIG_HW_RANDOM is not set
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_CHARDEV=y
|
||||
CONFIG_I2C_GPIO=y
|
||||
# CONFIG_HWMON is not set
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_WATCHDOG_NOWAYOUT=y
|
||||
CONFIG_AT91SAM9X_WATCHDOG=y
|
||||
# CONFIG_USB_HID is not set
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_DEVICEFS=y
|
||||
CONFIG_USB_MON=y
|
||||
CONFIG_USB_OHCI_HCD=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_STORAGE_DEBUG=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_ZERO=m
|
||||
CONFIG_USB_GADGETFS=m
|
||||
CONFIG_USB_MASS_STORAGE=m
|
||||
CONFIG_USB_G_SERIAL=m
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_AT91SAM9=y
|
||||
CONFIG_EXT2_FS=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_UBIFS_FS=y
|
||||
CONFIG_CRAMFS=y
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_CODEPAGE_850=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_DEBUG_KERNEL=y
|
||||
CONFIG_DEBUG_USER=y
|
||||
CONFIG_DEBUG_LL=y
|
||||
@@ -0,0 +1,88 @@
|
||||
From b5e57a9f158a293b1151638336478af8a5aad0f0 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||
Date: Wed, 14 Nov 2012 19:16:35 +0800
|
||||
Subject: [PATCH 1/5] watchdog: add keep alive support
|
||||
|
||||
this will allow to ping the watchdog via poller
|
||||
|
||||
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||
---
|
||||
drivers/watchdog/Kconfig | 1 +
|
||||
drivers/watchdog/wd_core.c | 21 +++++++++++++++++++++
|
||||
include/watchdog.h | 2 ++
|
||||
3 files changed, 24 insertions(+)
|
||||
|
||||
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
|
||||
index 2e2900c..0b4dc84 100644
|
||||
--- a/drivers/watchdog/Kconfig
|
||||
+++ b/drivers/watchdog/Kconfig
|
||||
@@ -4,6 +4,7 @@ config WATCHDOG_IMX_RESET_SOURCE
|
||||
|
||||
menuconfig WATCHDOG
|
||||
bool "Watchdog support"
|
||||
+ select GENERIC_POLLER
|
||||
help
|
||||
Many platforms support a watchdog to keep track of a working machine.
|
||||
This framework provides routines to handle these watchdogs.
|
||||
diff --git a/drivers/watchdog/wd_core.c b/drivers/watchdog/wd_core.c
|
||||
index 3d0cfc6..a1b9e28 100644
|
||||
--- a/drivers/watchdog/wd_core.c
|
||||
+++ b/drivers/watchdog/wd_core.c
|
||||
@@ -17,18 +17,39 @@
|
||||
#include <errno.h>
|
||||
#include <linux/ctype.h>
|
||||
#include <watchdog.h>
|
||||
+#include <poller.h>
|
||||
|
||||
/*
|
||||
* Note: this simple framework supports one watchdog only.
|
||||
*/
|
||||
static struct watchdog *watchdog;
|
||||
|
||||
+static void watchdog_poller_func(struct poller_struct *poller)
|
||||
+{
|
||||
+ watchdog->keep_alive(watchdog);
|
||||
+}
|
||||
+
|
||||
+static struct poller_struct watchdog_poller = {
|
||||
+ .func = watchdog_poller_func,
|
||||
+};
|
||||
+
|
||||
int watchdog_register(struct watchdog *wd)
|
||||
{
|
||||
if (watchdog != NULL)
|
||||
return -EBUSY;
|
||||
|
||||
watchdog = wd;
|
||||
+
|
||||
+ if (watchdog->keep_alive) {
|
||||
+ int ret;
|
||||
+
|
||||
+ ret = poller_register(&watchdog_poller);
|
||||
+ if (ret) {
|
||||
+ watchdog = NULL;
|
||||
+ return ret;
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(watchdog_register);
|
||||
diff --git a/include/watchdog.h b/include/watchdog.h
|
||||
index 3e2d08e..d5ecf2f 100644
|
||||
--- a/include/watchdog.h
|
||||
+++ b/include/watchdog.h
|
||||
@@ -13,8 +13,10 @@
|
||||
#ifndef INCLUDE_WATCHDOG_H
|
||||
# define INCLUDE_WATCHDOG_H
|
||||
|
||||
+
|
||||
struct watchdog {
|
||||
int (*set_timeout)(struct watchdog *, unsigned);
|
||||
+ void (*keep_alive)(struct watchdog *);
|
||||
};
|
||||
|
||||
int watchdog_register(struct watchdog *);
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
@@ -0,0 +1,228 @@
|
||||
From e1d54ffb987c346c45c20968be34c50c62a91c07 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||
Date: Wed, 14 Nov 2012 19:17:47 +0800
|
||||
Subject: [PATCH 2/5] watchdog: add at91sam9 watchdog support
|
||||
|
||||
with keep alive support
|
||||
|
||||
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||
---
|
||||
drivers/watchdog/Kconfig | 7 +++
|
||||
drivers/watchdog/Makefile | 1 +
|
||||
drivers/watchdog/at91sam9_wdt.c | 131 ++++++++++++++++++++++++++++++++++++++++
|
||||
drivers/watchdog/at91sam9_wdt.h | 38 ++++++++++++
|
||||
4 files changed, 177 insertions(+)
|
||||
create mode 100644 drivers/watchdog/at91sam9_wdt.c
|
||||
create mode 100644 drivers/watchdog/at91sam9_wdt.h
|
||||
|
||||
diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig
|
||||
index 0b4dc84..98a21d7 100644
|
||||
--- a/drivers/watchdog/Kconfig
|
||||
+++ b/drivers/watchdog/Kconfig
|
||||
@@ -11,6 +11,13 @@ menuconfig WATCHDOG
|
||||
|
||||
if WATCHDOG
|
||||
|
||||
+config WATCHDOG_AT91SAM9X
|
||||
+ tristate "AT91SAM9X / AT91CAP9 watchdog"
|
||||
+ depends on ARCH_AT91
|
||||
+ help
|
||||
+ Watchdog timer embedded into AT91SAM9X and AT91CAP9 chips. This will
|
||||
+ reboot your system when the timeout is reached.
|
||||
+
|
||||
config WATCHDOG_MXS28
|
||||
bool "i.MX28"
|
||||
depends on ARCH_IMX28
|
||||
diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile
|
||||
index f522b88..3d15d52 100644
|
||||
--- a/drivers/watchdog/Makefile
|
||||
+++ b/drivers/watchdog/Makefile
|
||||
@@ -1,3 +1,4 @@
|
||||
obj-$(CONFIG_WATCHDOG) += wd_core.o
|
||||
+obj-$(CONFIG_WATCHDOG_AT91SAM9X) += at91sam9_wdt.o
|
||||
obj-$(CONFIG_WATCHDOG_MXS28) += im28wd.o
|
||||
obj-$(CONFIG_WATCHDOG_IMX_RESET_SOURCE) += imxwd.o
|
||||
diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c
|
||||
new file mode 100644
|
||||
index 0000000..203d83a
|
||||
--- /dev/null
|
||||
+++ b/drivers/watchdog/at91sam9_wdt.c
|
||||
@@ -0,0 +1,131 @@
|
||||
+/*
|
||||
+ * (c) 2012 Juergen Beisert <kernel@pengutronix.de>
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License as published by
|
||||
+ * the Free Software Foundation; either version 2 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ *
|
||||
+ * This program is distributed in the hope that it will be useful,
|
||||
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
+ * GNU General Public License for more details.
|
||||
+ *
|
||||
+ * Note: this driver works for the i.MX28 SoC. It might work for the
|
||||
+ * i.MX23 Soc as well, but is not tested yet.
|
||||
+ */
|
||||
+
|
||||
+#include <common.h>
|
||||
+#include <init.h>
|
||||
+#include <io.h>
|
||||
+#include <errno.h>
|
||||
+#include <malloc.h>
|
||||
+#include <watchdog.h>
|
||||
+
|
||||
+#include "at91sam9_wdt.h"
|
||||
+
|
||||
+struct at91sam9_wdt {
|
||||
+ struct watchdog wdt;
|
||||
+ void __iomem *base;
|
||||
+};
|
||||
+
|
||||
+#define to_at91sam9_wdt(h) container_of(h, struct at91sam9_wdt, wdt)
|
||||
+
|
||||
+#define wdt_read(at91wdt, field) \
|
||||
+ __raw_readl(at91wdt->base + field)
|
||||
+#define wdt_write(at91wdt, field, val) \
|
||||
+ __raw_writel((val), at91wdt->base + field)
|
||||
+
|
||||
+static void at91sam9_wdt_keep_alive(struct watchdog *wdt)
|
||||
+{
|
||||
+ struct at91sam9_wdt *at91wdt = to_at91sam9_wdt(wdt);
|
||||
+
|
||||
+ wdt_write(at91wdt, AT91_WDT_CR, AT91_WDT_KEY | AT91_WDT_WDRSTT);
|
||||
+}
|
||||
+
|
||||
+static int at91sam9_wdt_settimeout(struct watchdog *wdt, unsigned int timeout)
|
||||
+{
|
||||
+ struct at91sam9_wdt *at91wdt = to_at91sam9_wdt(wdt);
|
||||
+ unsigned int reg;
|
||||
+ unsigned int mr;
|
||||
+
|
||||
+ /* Check if disabled */
|
||||
+ mr = wdt_read(at91wdt, AT91_WDT_MR);
|
||||
+ if (mr & AT91_WDT_WDDIS) {
|
||||
+ pr_err("sorry, watchdog is disabled\n");
|
||||
+ return -EIO;
|
||||
+ }
|
||||
+
|
||||
+ if (!timeout) {
|
||||
+ wdt_write(at91wdt, AT91_WDT_MR, AT91_WDT_WDDIS);
|
||||
+ return 0;
|
||||
+ }
|
||||
+
|
||||
+ /*
|
||||
+ * All counting occurs at SLOW_CLOCK / 128 = 256 Hz
|
||||
+ *
|
||||
+ * Since WDV is a 12-bit counter, the maximum period is
|
||||
+ * 4096 / 256 = 16 seconds.
|
||||
+ */
|
||||
+ reg = AT91_WDT_WDRSTEN /* causes watchdog reset */
|
||||
+ /* | AT91_WDT_WDRPROC causes processor reset only */
|
||||
+ | AT91_WDT_WDDBGHLT /* disabled in debug mode */
|
||||
+ | AT91_WDT_WDD /* restart at any time */
|
||||
+ | (timeout & AT91_WDT_WDV); /* timer value */
|
||||
+ wdt_write(at91wdt, AT91_WDT_MR, reg);
|
||||
+
|
||||
+ return 0;
|
||||
+}
|
||||
+
|
||||
+static int at91sam9_wdt_probe(struct device_d *dev)
|
||||
+{
|
||||
+ struct at91sam9_wdt *priv;
|
||||
+ struct watchdog *wdt;
|
||||
+ int ret;
|
||||
+ unsigned int mr;
|
||||
+
|
||||
+ priv = xzalloc(sizeof(struct at91sam9_wdt));
|
||||
+ priv->base = dev_request_mem_region(dev, 0);
|
||||
+ wdt = &priv->wdt;
|
||||
+
|
||||
+ wdt->set_timeout = at91sam9_wdt_settimeout;
|
||||
+ wdt->keep_alive = at91sam9_wdt_keep_alive;
|
||||
+
|
||||
+ /* Check if disabled */
|
||||
+ mr = wdt_read(priv, AT91_WDT_MR);
|
||||
+ if (mr & AT91_WDT_WDDIS) {
|
||||
+ dev_err(dev, "sorry, watchdog is disabled\n");
|
||||
+ ret = -EIO;
|
||||
+ goto err;
|
||||
+ }
|
||||
+
|
||||
+ ret = watchdog_register(wdt);
|
||||
+ if (ret != 0)
|
||||
+ goto err;
|
||||
+
|
||||
+ dev->priv = priv;
|
||||
+ return 0;
|
||||
+
|
||||
+err:
|
||||
+ free(priv);
|
||||
+ return ret;
|
||||
+}
|
||||
+
|
||||
+static void at91sam9_wdt_remove(struct device_d *dev)
|
||||
+{
|
||||
+ struct at91sam9_wdt *priv= dev->priv;
|
||||
+ watchdog_deregister(&priv->wdt);
|
||||
+ free(priv);
|
||||
+}
|
||||
+
|
||||
+static struct driver_d at91sam9_wdt_driver = {
|
||||
+ .name = "at91sam9_wdt",
|
||||
+ .probe = at91sam9_wdt_probe,
|
||||
+ .remove = at91sam9_wdt_remove,
|
||||
+};
|
||||
+
|
||||
+static int at91sam9_wdt_init(void)
|
||||
+{
|
||||
+ return platform_driver_register(&at91sam9_wdt_driver);
|
||||
+}
|
||||
+coredevice_initcall(at91sam9_wdt_init);
|
||||
diff --git a/drivers/watchdog/at91sam9_wdt.h b/drivers/watchdog/at91sam9_wdt.h
|
||||
new file mode 100644
|
||||
index 0000000..2b68c1a
|
||||
--- /dev/null
|
||||
+++ b/drivers/watchdog/at91sam9_wdt.h
|
||||
@@ -0,0 +1,38 @@
|
||||
+/*
|
||||
+ * drivers/watchdog/at91sam9_wdt.h
|
||||
+ *
|
||||
+ * Copyright (C) 2007 Andrew Victor
|
||||
+ * Copyright (C) 2007 Atmel Corporation.
|
||||
+ *
|
||||
+ * Watchdog Timer (WDT) - System peripherals regsters.
|
||||
+ * Based on AT91SAM9261 datasheet revision D.
|
||||
+ *
|
||||
+ * This program is free software; you can redistribute it and/or modify
|
||||
+ * it under the terms of the GNU General Public License as published by
|
||||
+ * the Free Software Foundation; either version 2 of the License, or
|
||||
+ * (at your option) any later version.
|
||||
+ */
|
||||
+
|
||||
+#ifndef AT91_WDT_H
|
||||
+#define AT91_WDT_H
|
||||
+
|
||||
+#define AT91_WDT_CR 0x00 /* Watchdog Control Register */
|
||||
+#define AT91_WDT_WDRSTT (1 << 0) /* Restart */
|
||||
+#define AT91_WDT_KEY (0xa5 << 24) /* KEY Password */
|
||||
+
|
||||
+#define AT91_WDT_MR 0x04 /* Watchdog Mode Register */
|
||||
+#define AT91_WDT_WDV (0xfff << 0) /* Counter Value */
|
||||
+#define AT91_WDT_WDFIEN (1 << 12) /* Fault Interrupt Enable */
|
||||
+#define AT91_WDT_WDRSTEN (1 << 13) /* Reset Processor */
|
||||
+#define AT91_WDT_WDRPROC (1 << 14) /* Timer Restart */
|
||||
+#define AT91_WDT_WDDIS (1 << 15) /* Watchdog Disable */
|
||||
+#define AT91_WDT_WDD (0xfff << 16) /* Delta Value */
|
||||
+#define AT91_WDT_WDDBGHLT (1 << 28) /* Debug Halt */
|
||||
+#define AT91_WDT_WDIDLEHLT (1 << 29) /* Idle Halt */
|
||||
+
|
||||
+#define AT91_WDT_SR 0x08 /* Watchdog Status Register */
|
||||
+#define AT91_WDT_WDUNF (1 << 0) /* Watchdog Underflow */
|
||||
+#define AT91_WDT_WDERR (1 << 1) /* Watchdog Error */
|
||||
+
|
||||
+
|
||||
+#endif
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
From 3338bcb05479f1149420d4a0ea3904cb9e42eef5 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||
Date: Wed, 14 Nov 2012 19:18:22 +0800
|
||||
Subject: [PATCH 3/5] at91sam9260/9g20: add wathdog support
|
||||
|
||||
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
|
||||
---
|
||||
arch/arm/mach-at91/at91sam9260_devices.c | 12 ++++++++++++
|
||||
1 file changed, 12 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
|
||||
index 1c375ee..5885f91 100644
|
||||
--- a/arch/arm/mach-at91/at91sam9260_devices.c
|
||||
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
|
||||
@@ -10,6 +10,7 @@
|
||||
*
|
||||
*/
|
||||
#include <common.h>
|
||||
+#include <init.h>
|
||||
#include <sizes.h>
|
||||
#include <asm/armlinux.h>
|
||||
#include <asm/hardware.h>
|
||||
@@ -397,3 +398,14 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data)
|
||||
#else
|
||||
void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) {}
|
||||
#endif
|
||||
+
|
||||
+#ifdef CONFIG_WATCHDOG_AT91SAM9X
|
||||
+static int at91_add_device_watchdog(void)
|
||||
+{
|
||||
+ add_generic_device("at91sam9_wdt", DEVICE_ID_SINGLE, NULL,
|
||||
+ AT91_WDT + AT91_BASE_SYS, 16, IORESOURCE_MEM, NULL);
|
||||
+
|
||||
+ return 0;
|
||||
+}
|
||||
+coredevice_initcall(at91_add_device_watchdog);
|
||||
+#endif
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From e03bf0e3ad24898019b89eb9a6935d159c60268f Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Porcedda <fabio.porcedda@gmail.com>
|
||||
Date: Thu, 17 Jan 2013 11:32:35 +0100
|
||||
Subject: [PATCH 4/5] at91sam9260/9g20: fix wathdog support
|
||||
|
||||
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
|
||||
---
|
||||
arch/arm/mach-at91/at91sam9260_devices.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
|
||||
index 5885f91..df675d2 100644
|
||||
--- a/arch/arm/mach-at91/at91sam9260_devices.c
|
||||
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
|
||||
@@ -403,7 +403,7 @@ void at91_add_device_mci(short mmc_id, struct atmel_mci_platform_data *data) {}
|
||||
static int at91_add_device_watchdog(void)
|
||||
{
|
||||
add_generic_device("at91sam9_wdt", DEVICE_ID_SINGLE, NULL,
|
||||
- AT91_WDT + AT91_BASE_SYS, 16, IORESOURCE_MEM, NULL);
|
||||
+ AT91_BASE_WDT, 16, IORESOURCE_MEM, NULL);
|
||||
|
||||
return 0;
|
||||
}
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
From 98c96ea36a4b3bb9b92dde849db5e8d6918b5168 Mon Sep 17 00:00:00 2001
|
||||
From: Fabio Porcedda <fabio.porcedda@gmail.com>
|
||||
Date: Thu, 17 Jan 2013 11:32:59 +0100
|
||||
Subject: [PATCH 5/5] watchdog: enable for evk-pro3
|
||||
|
||||
Signed-off-by: Fabio Porcedda <fabio.porcedda@gmail.com>
|
||||
---
|
||||
arch/arm/configs/telit_evk_pro3_defconfig | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/arch/arm/configs/telit_evk_pro3_defconfig b/arch/arm/configs/telit_evk_pro3_defconfig
|
||||
index 050d176..436cecf 100644
|
||||
--- a/arch/arm/configs/telit_evk_pro3_defconfig
|
||||
+++ b/arch/arm/configs/telit_evk_pro3_defconfig
|
||||
@@ -68,6 +68,8 @@ CONFIG_MCI_ATMEL=y
|
||||
CONFIG_LED=y
|
||||
CONFIG_LED_GPIO=y
|
||||
CONFIG_LED_TRIGGERS=y
|
||||
+CONFIG_WATCHDOG=y
|
||||
+CONFIG_WATCHDOG_AT91SAM9X=y
|
||||
CONFIG_FS_TFTP=y
|
||||
CONFIG_FS_FAT=y
|
||||
CONFIG_FS_FAT_LFN=y
|
||||
--
|
||||
1.8.1.4
|
||||
|
||||
201
board/telit/evk-pro3/linux-3.9.config
Normal file
201
board/telit/evk-pro3/linux-3.9.config
Normal file
@@ -0,0 +1,201 @@
|
||||
CONFIG_EXPERIMENTAL=y
|
||||
# CONFIG_LOCALVERSION_AUTO is not set
|
||||
CONFIG_KERNEL_LZO=y
|
||||
# CONFIG_SWAP is not set
|
||||
CONFIG_SYSVIPC=y
|
||||
CONFIG_LOG_BUF_SHIFT=14
|
||||
CONFIG_BLK_DEV_INITRD=y
|
||||
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||
CONFIG_KALLSYMS_ALL=y
|
||||
CONFIG_EMBEDDED=y
|
||||
CONFIG_SLAB=y
|
||||
CONFIG_MODULES=y
|
||||
CONFIG_MODULE_UNLOAD=y
|
||||
# CONFIG_LBDAF is not set
|
||||
# CONFIG_BLK_DEV_BSG is not set
|
||||
# CONFIG_IOSCHED_DEADLINE is not set
|
||||
# CONFIG_IOSCHED_CFQ is not set
|
||||
CONFIG_ARCH_AT91=y
|
||||
CONFIG_SOC_AT91SAM9260=y
|
||||
CONFIG_SOC_AT91SAM9263=y
|
||||
CONFIG_SOC_AT91SAM9G45=y
|
||||
CONFIG_SOC_AT91SAM9X5=y
|
||||
CONFIG_SOC_AT91SAM9N12=y
|
||||
CONFIG_MACH_AT91SAM_DT=y
|
||||
CONFIG_AT91_PROGRAMMABLE_CLOCKS=y
|
||||
CONFIG_AT91_TIMER_HZ=128
|
||||
CONFIG_AEABI=y
|
||||
# CONFIG_OABI_COMPAT is not set
|
||||
CONFIG_LEDS=y
|
||||
CONFIG_LEDS_CPU=y
|
||||
CONFIG_UACCESS_WITH_MEMCPY=y
|
||||
CONFIG_ZBOOT_ROM_TEXT=0x0
|
||||
CONFIG_ZBOOT_ROM_BSS=0x0
|
||||
CONFIG_ARM_APPENDED_DTB=y
|
||||
CONFIG_ARM_ATAG_DTB_COMPAT=y
|
||||
CONFIG_CMDLINE="console=ttyS0,115200 initrd=0x21100000,25165824 root=/dev/ram0 rw"
|
||||
CONFIG_KEXEC=y
|
||||
CONFIG_AUTO_ZRELADDR=y
|
||||
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_PNP=y
|
||||
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET_XFRM_MODE_BEET is not set
|
||||
# CONFIG_INET_DIAG is not set
|
||||
CONFIG_IPV6=y
|
||||
# CONFIG_INET6_XFRM_MODE_TRANSPORT is not set
|
||||
# CONFIG_INET6_XFRM_MODE_TUNNEL is not set
|
||||
# CONFIG_INET6_XFRM_MODE_BEET is not set
|
||||
CONFIG_IPV6_SIT_6RD=y
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
# CONFIG_STANDALONE is not set
|
||||
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_CMDLINE_PARTS=y
|
||||
CONFIG_MTD_CHAR=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_NAND=y
|
||||
CONFIG_MTD_NAND_ATMEL=y
|
||||
CONFIG_MTD_UBI=y
|
||||
CONFIG_MTD_UBI_GLUEBI=y
|
||||
CONFIG_PROC_DEVICETREE=y
|
||||
CONFIG_BLK_DEV_LOOP=y
|
||||
CONFIG_BLK_DEV_RAM=y
|
||||
CONFIG_BLK_DEV_RAM_COUNT=4
|
||||
CONFIG_BLK_DEV_RAM_SIZE=8192
|
||||
CONFIG_ATMEL_PWM=y
|
||||
CONFIG_ATMEL_TCLIB=y
|
||||
CONFIG_EEPROM_93CX6=m
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_SCSI_MULTI_LUN=y
|
||||
# CONFIG_SCSI_LOWLEVEL is not set
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_MII=y
|
||||
CONFIG_MACB=y
|
||||
# CONFIG_NET_VENDOR_BROADCOM is not set
|
||||
# CONFIG_NET_VENDOR_CHELSIO is not set
|
||||
# CONFIG_NET_VENDOR_FARADAY is not set
|
||||
# CONFIG_NET_VENDOR_INTEL is not set
|
||||
# CONFIG_NET_VENDOR_MARVELL is not set
|
||||
# CONFIG_NET_VENDOR_MICREL is not set
|
||||
# CONFIG_NET_VENDOR_NATSEMI is not set
|
||||
# CONFIG_NET_VENDOR_SEEQ is not set
|
||||
# CONFIG_NET_VENDOR_SMSC is not set
|
||||
# CONFIG_NET_VENDOR_STMICRO is not set
|
||||
CONFIG_DAVICOM_PHY=y
|
||||
CONFIG_MICREL_PHY=y
|
||||
# CONFIG_WLAN is not set
|
||||
CONFIG_INPUT_POLLDEV=y
|
||||
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||
CONFIG_INPUT_MOUSEDEV_SCREEN_X=480
|
||||
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=272
|
||||
CONFIG_INPUT_JOYDEV=y
|
||||
CONFIG_INPUT_EVDEV=y
|
||||
# CONFIG_KEYBOARD_ATKBD is not set
|
||||
CONFIG_KEYBOARD_GPIO=y
|
||||
# CONFIG_INPUT_MOUSE is not set
|
||||
CONFIG_INPUT_TOUCHSCREEN=y
|
||||
# CONFIG_SERIO is not set
|
||||
CONFIG_LEGACY_PTY_COUNT=4
|
||||
CONFIG_SERIAL_ATMEL=y
|
||||
CONFIG_SERIAL_ATMEL_CONSOLE=y
|
||||
CONFIG_HW_RANDOM=y
|
||||
CONFIG_I2C=y
|
||||
CONFIG_I2C_GPIO=y
|
||||
CONFIG_SPI=y
|
||||
CONFIG_SPI_ATMEL=y
|
||||
CONFIG_PINCTRL_AT91=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
# CONFIG_HWMON is not set
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_AT91SAM9X_WATCHDOG=y
|
||||
CONFIG_SSB=m
|
||||
CONFIG_FB=y
|
||||
CONFIG_FB_MODE_HELPERS=y
|
||||
CONFIG_FB_ATMEL=y
|
||||
CONFIG_BACKLIGHT_LCD_SUPPORT=y
|
||||
# CONFIG_LCD_CLASS_DEVICE is not set
|
||||
CONFIG_BACKLIGHT_CLASS_DEVICE=y
|
||||
CONFIG_BACKLIGHT_ATMEL_LCDC=y
|
||||
# CONFIG_BACKLIGHT_GENERIC is not set
|
||||
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||
CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y
|
||||
CONFIG_FONTS=y
|
||||
CONFIG_FONT_8x8=y
|
||||
CONFIG_FONT_ACORN_8x8=y
|
||||
CONFIG_FONT_MINI_4x6=y
|
||||
CONFIG_LOGO=y
|
||||
# CONFIG_HID_SUPPORT is not set
|
||||
CONFIG_USB=y
|
||||
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
|
||||
CONFIG_USB_DEVICEFS=y
|
||||
# CONFIG_USB_DEVICE_CLASS is not set
|
||||
CONFIG_USB_EHCI_HCD=y
|
||||
CONFIG_USB_OHCI_HCD=y
|
||||
CONFIG_USB_ACM=y
|
||||
CONFIG_USB_STORAGE=y
|
||||
CONFIG_USB_SERIAL=y
|
||||
CONFIG_USB_SERIAL_GENERIC=y
|
||||
CONFIG_USB_SERIAL_FTDI_SIO=y
|
||||
CONFIG_USB_SERIAL_PL2303=y
|
||||
CONFIG_USB_GADGET=y
|
||||
CONFIG_USB_AT91=m
|
||||
CONFIG_USB_ATMEL_USBA=m
|
||||
CONFIG_USB_ETH=m
|
||||
CONFIG_USB_GADGETFS=m
|
||||
CONFIG_USB_CDC_COMPOSITE=m
|
||||
CONFIG_USB_G_ACM_MS=m
|
||||
CONFIG_USB_G_MULTI=m
|
||||
CONFIG_USB_G_MULTI_CDC=y
|
||||
CONFIG_MMC=y
|
||||
CONFIG_MMC_ATMELMCI=y
|
||||
CONFIG_NEW_LEDS=y
|
||||
CONFIG_LEDS_CLASS=y
|
||||
CONFIG_LEDS_GPIO=y
|
||||
CONFIG_LEDS_TRIGGERS=y
|
||||
CONFIG_LEDS_TRIGGER_TIMER=y
|
||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=y
|
||||
CONFIG_LEDS_TRIGGER_GPIO=y
|
||||
CONFIG_RTC_CLASS=y
|
||||
CONFIG_RTC_DRV_AT91RM9200=y
|
||||
CONFIG_RTC_DRV_AT91SAM9=y
|
||||
CONFIG_DMADEVICES=y
|
||||
# CONFIG_IOMMU_SUPPORT is not set
|
||||
CONFIG_EXT2_FS=y
|
||||
CONFIG_FANOTIFY=y
|
||||
CONFIG_VFAT_FS=y
|
||||
CONFIG_TMPFS=y
|
||||
CONFIG_UBIFS_FS=y
|
||||
CONFIG_NFS_FS=y
|
||||
CONFIG_NFS_V3=y
|
||||
CONFIG_ROOT_NFS=y
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_CODEPAGE_850=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_STRIP_ASM_SYMS=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
# CONFIG_SCHED_DEBUG is not set
|
||||
# CONFIG_DEBUG_BUGVERBOSE is not set
|
||||
# CONFIG_FTRACE is not set
|
||||
CONFIG_DEBUG_USER=y
|
||||
CONFIG_CRYPTO=y
|
||||
CONFIG_CRYPTO_ECB=y
|
||||
CONFIG_CRYPTO_AES=y
|
||||
CONFIG_CRYPTO_ARC4=y
|
||||
# CONFIG_CRYPTO_ANSI_CPRNG is not set
|
||||
CONFIG_CRYPTO_USER_API_HASH=m
|
||||
CONFIG_CRYPTO_USER_API_SKCIPHER=m
|
||||
# CONFIG_CRYPTO_HW is not set
|
||||
CONFIG_CRC_CCITT=m
|
||||
CONFIG_CRC_ITU_T=m
|
||||
CONFIG_CRC7=m
|
||||
CONFIG_AVERAGE=y
|
||||
28
board/telit/evk-pro3/readme.txt
Normal file
28
board/telit/evk-pro3/readme.txt
Normal file
@@ -0,0 +1,28 @@
|
||||
Buildroot board support for Telit EVK-PRO3 with Telit GE863-PRO3
|
||||
|
||||
Official site:
|
||||
http://www.telit.com/en/products.php?p_id=3&p_ac=show&p=10
|
||||
|
||||
Build images:
|
||||
make telit_evk_pro3_defconfig
|
||||
make
|
||||
|
||||
images built:
|
||||
- output/images/barebox.bin
|
||||
- output/images/zImage
|
||||
- output/images/rootfs.ubi
|
||||
|
||||
|
||||
Flash built images:
|
||||
The first time you need to bootstrap from Telit Official Release 221.07.1007,
|
||||
at the U-Boot prompt type:
|
||||
U-Boot> loadb
|
||||
send buildroot/output/images/barebox.bin
|
||||
U-Boot> go 0x20200000
|
||||
|
||||
flash updated images using barebox through tftp:
|
||||
barebox:/ erase dev/self0; cp /mnt/tftp/barebox.bin /dev/self0
|
||||
barebox:/ erase /dev/nand0.kernel.bb; cp /mnt/tftp/zImage /dev/nand0.kernel.bb
|
||||
barebox:/ erase /dev/nand0.rootfs.bb; cp /mnt/tftp/rootfs.ubi /dev/nand0.rootfs.bb
|
||||
barebox:/ erase dev/env0
|
||||
barebox:/ reset
|
||||
32
configs/at91sam9260eknf_defconfig
Normal file
32
configs/at91sam9260eknf_defconfig
Normal file
@@ -0,0 +1,32 @@
|
||||
# Architecture
|
||||
BR2_arm=y
|
||||
BR2_arm926t=y
|
||||
|
||||
# Toolchain
|
||||
BR2_KERNEL_HEADERS_VERSION=y
|
||||
BR2_DEFAULT_KERNEL_VERSION="3.9.1"
|
||||
|
||||
# System
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
|
||||
|
||||
# Packages
|
||||
BR2_PACKAGE_HOST_SAM_BA=y
|
||||
|
||||
# Filesystem
|
||||
BR2_TARGET_ROOTFS_UBIFS=y
|
||||
BR2_TARGET_ROOTFS_UBI=y
|
||||
|
||||
# Bootloaders
|
||||
BR2_TARGET_AT91BOOTSTRAP=y
|
||||
BR2_TARGET_AT91BOOTSTRAP_BOARD="at91sam9260ek"
|
||||
BR2_TARGET_AT91BOOTSTRAP_NANDFLASH=y
|
||||
BR2_TARGET_BAREBOX=y
|
||||
BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="at91sam9260ek"
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/atmel/at91sam9260ek/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_ZIMAGE=y
|
||||
@@ -20,6 +20,6 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="exynos4"
|
||||
BR2_LINUX_KERNEL_ZIMAGE=y
|
||||
|
||||
@@ -16,7 +16,7 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_ZIMAGE=y
|
||||
|
||||
@@ -20,6 +20,6 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="vexpress"
|
||||
BR2_LINUX_KERNEL_ZIMAGE=y
|
||||
|
||||
@@ -19,7 +19,7 @@ BR2_TARGET_ROOTFS_INITRAMFS=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/microblazebe-mmu/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_LINUX_BIN=y
|
||||
|
||||
@@ -19,7 +19,7 @@ BR2_TARGET_ROOTFS_INITRAMFS=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/microblazeel-mmu/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_LINUX_BIN=y
|
||||
|
||||
@@ -16,7 +16,7 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/mips64-malta/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_VMLINUX=y
|
||||
|
||||
@@ -12,7 +12,7 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/mips-malta/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_VMLINUX=y
|
||||
|
||||
@@ -12,7 +12,7 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/mipsel-malta/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_VMLINUX=y
|
||||
|
||||
@@ -12,7 +12,7 @@ BR2_KERNEL_HEADERS_3_8=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.8.10"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.8.13"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/powerpc-g3beige/linux-3.8.config"
|
||||
BR2_LINUX_KERNEL_VMLINUX=y
|
||||
|
||||
@@ -12,7 +12,7 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="mpc85xx"
|
||||
BR2_LINUX_KERNEL_VMLINUX=y
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ BR2_SOFT_FLOAT=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_DEFCONFIG="44x/virtex5"
|
||||
BR2_LINUX_KERNEL_VMLINUX=y
|
||||
BR2_LINUX_KERNEL_DTS_SUPPORT=y
|
||||
|
||||
@@ -15,6 +15,6 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86_64/linux-3.9.config"
|
||||
|
||||
@@ -16,6 +16,6 @@ BR2_KERNEL_HEADERS_3_9=y
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9"
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.2"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86/linux-3.9.config"
|
||||
|
||||
33
configs/telit_evk_pro3_defconfig
Normal file
33
configs/telit_evk_pro3_defconfig
Normal file
@@ -0,0 +1,33 @@
|
||||
# Architecture
|
||||
BR2_arm=y
|
||||
BR2_arm926t=y
|
||||
|
||||
# Toolchain
|
||||
BR2_KERNEL_HEADERS_VERSION=y
|
||||
BR2_DEFAULT_KERNEL_VERSION="3.9.1"
|
||||
|
||||
# System
|
||||
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_DEVTMPFS=y
|
||||
|
||||
# Watchdog is armed by the first stage bootloader
|
||||
BR2_PACKAGE_BUSYBOX_WATCHDOG=y
|
||||
|
||||
# Filesystem
|
||||
BR2_TARGET_ROOTFS_UBIFS=y
|
||||
BR2_TARGET_ROOTFS_UBI=y
|
||||
|
||||
# Bootloader
|
||||
BR2_TARGET_BAREBOX=y
|
||||
BR2_TARGET_BAREBOX_CUSTOM_VERSION=y
|
||||
BR2_TARGET_BAREBOX_CUSTOM_VERSION_VALUE="2013.04.0"
|
||||
BR2_TARGET_BAREBOX_CUSTOM_PATCH_DIR="board/telit/evk-pro3"
|
||||
BR2_TARGET_BAREBOX_BOARD_DEFCONFIG="telit_evk_pro3"
|
||||
|
||||
# Kernel
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.9.1"
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/telit/evk-pro3/linux-3.9.config"
|
||||
BR2_LINUX_KERNEL_APPENDED_ZIMAGE=y
|
||||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="evk-pro3"
|
||||
@@ -14,12 +14,12 @@ or
|
||||
<a href="/downloads/buildroot-2013.02.tar.bz2">buildroot-2013.02.tar.bz2</a>.
|
||||
|
||||
<p>
|
||||
The latest release candidate is <b>2013.05-rc1</b>, which can be
|
||||
The latest release candidate is <b>2013.05-rc2</b>, which can be
|
||||
downloaded here:<p>
|
||||
|
||||
<a href="/downloads/buildroot-2013.05-rc1.tar.gz">buildroot-2013.05-rc1.tar.gz</a>
|
||||
<a href="/downloads/buildroot-2013.05-rc2.tar.gz">buildroot-2013.05-rc2.tar.gz</a>
|
||||
or
|
||||
<a href="/downloads/buildroot-2013.05-rc1.tar.bz2">buildroot-2013.05-rc1.tar.bz2</a>.
|
||||
<a href="/downloads/buildroot-2013.05-rc2.tar.bz2">buildroot-2013.05-rc2.tar.bz2</a>.
|
||||
<p>
|
||||
|
||||
This and earlier releases can always be downloaded from
|
||||
|
||||
@@ -5,12 +5,26 @@
|
||||
<p>
|
||||
|
||||
<ul>
|
||||
<li><b>15 May 2013 -- 2013.05-rc2 released</b>
|
||||
|
||||
<p>Another week, another release candidate with more cleanups and
|
||||
build fixes. See the <a
|
||||
href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2013.05_rc2">CHANGES</a>
|
||||
file for details.</p>
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2013.05-rc2.tar.bz2">2013.05-rc2
|
||||
release candidate</a>, and report any problems found to the <a
|
||||
href="lists.html">mailing list</a> or <a
|
||||
href="https://bugs.uclibc.org">bug tracker</a>.</p>
|
||||
|
||||
<li><b>8 May 2013 -- 2013.05-rc1 released</b>
|
||||
|
||||
<p>We have a new release candidate! Lots of changes all over the
|
||||
tree, see the <a
|
||||
href="http://git.buildroot.net/buildroot/plain/CHANGES?id=2013.05_rc1">CHANGES</a>
|
||||
file for details.</p>
|
||||
file for details, and read the
|
||||
<a href="http://lists.busybox.net/pipermail/buildroot/2013-May/071737.html">announcement</a>.</p>
|
||||
|
||||
<p>Head to the <a href="/downloads/">downloads page</a> to pick up the
|
||||
<a href="/downloads/buildroot-2013.05-rc1.tar.bz2">2013.05-rc1
|
||||
|
||||
@@ -21,7 +21,7 @@ choice
|
||||
prompt "Kernel version"
|
||||
|
||||
config BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
bool "3.9.1"
|
||||
bool "3.9.2"
|
||||
|
||||
config BR2_LINUX_KERNEL_SAME_AS_HEADERS
|
||||
bool "Same as toolchain kernel headers"
|
||||
@@ -76,7 +76,7 @@ config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
|
||||
|
||||
config BR2_LINUX_KERNEL_VERSION
|
||||
string
|
||||
default "3.9.1" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default "3.9.2" if BR2_LINUX_KERNEL_LATEST_VERSION
|
||||
default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
|
||||
default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
|
||||
default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
|
||||
|
||||
@@ -34,7 +34,7 @@ endif
|
||||
LINUX_PATCHES = $(call qstrip,$(BR2_LINUX_KERNEL_PATCH))
|
||||
|
||||
LINUX_INSTALL_IMAGES = YES
|
||||
LINUX_DEPENDENCIES += host-module-init-tools
|
||||
LINUX_DEPENDENCIES += host-module-init-tools host-lzop
|
||||
|
||||
ifeq ($(BR2_LINUX_KERNEL_UBOOT_IMAGE),y)
|
||||
LINUX_DEPENDENCIES += host-uboot-tools
|
||||
|
||||
@@ -7,11 +7,12 @@ endif
|
||||
HOSTMAKE :=$(shell which $(HOSTMAKE) || type -p $(HOSTMAKE) || echo make)
|
||||
|
||||
# If BR2_LEVEL is 0, scale the maximum concurrency with the number of
|
||||
# CPUs. A coefficient of 2 is used in order to keep processors busy
|
||||
# CPUs. An additional job is used in order to keep processors busy
|
||||
# while waiting on I/O.
|
||||
# If the number of processors is not available, assume one.
|
||||
ifeq ($(BR2_JLEVEL),0)
|
||||
PARALLEL_JOBS:=$(shell echo \
|
||||
$$((2 * `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`)))
|
||||
$$((1 + `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`)))
|
||||
else
|
||||
PARALLEL_JOBS:=$(BR2_JLEVEL)
|
||||
endif
|
||||
|
||||
@@ -20,9 +20,12 @@ else
|
||||
AIRCRACK_NG_MAKE_OPTS = sqlite=false
|
||||
endif
|
||||
|
||||
AIRCRACK_NG_LDFLAGS = -lz \
|
||||
$(if $(BR2_PREFER_STATIC_LIB),-ldl -lpthread)
|
||||
|
||||
define AIRCRACK_NG_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE1) CC="$(TARGET_CC)" LD="$(TARGET_LD)" \
|
||||
LDFLAGS="$(TARGET_LDFLAGS) -lz" \
|
||||
LDFLAGS="$(AIRCRACK_NG_LDFLAGS)" \
|
||||
-C $(@D) $(AIRCRACK_NG_MAKE_OPTS) all
|
||||
endef
|
||||
|
||||
|
||||
@@ -3,10 +3,13 @@
|
||||
# atk
|
||||
#
|
||||
#############################################################
|
||||
|
||||
ATK_VERSION_MAJOR = 1.33
|
||||
ATK_VERSION = $(ATK_VERSION_MAJOR).6
|
||||
ATK_SOURCE = atk-$(ATK_VERSION).tar.bz2
|
||||
ATK_SITE = http://ftp.gnome.org/pub/gnome/sources/atk/$(ATK_VERSION_MAJOR)/
|
||||
ATK_LICENSE = LGPLv2+
|
||||
ATK_LICENSE_FILES = COPYING
|
||||
ATK_INSTALL_STAGING = YES
|
||||
ATK_INSTALL_STAGING_OPT = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
|
||||
|
||||
|
||||
@@ -68,20 +68,24 @@
|
||||
} FIX_ALIASING;
|
||||
#define G (*(struct globals*)&bb_common_bufsiz1)
|
||||
#define INIT_G() do { \
|
||||
@@ -270,13 +298,6 @@ struct globals {
|
||||
/* We use additional 64+ bytes in make_device() */
|
||||
#define SCRATCH_SIZE 80
|
||||
@@ -267,15 +295,8 @@ struct globals {
|
||||
/* Prevent infinite loops in /sys symlinks */
|
||||
#define MAX_SYSFS_DEPTH 3
|
||||
|
||||
-/* We use additional 64+ bytes in make_device() */
|
||||
-#define SCRATCH_SIZE 80
|
||||
-
|
||||
-#if 0
|
||||
-# define dbg(...) bb_error_msg(__VA_ARGS__)
|
||||
-#else
|
||||
-# define dbg(...) ((void)0)
|
||||
-#endif
|
||||
-
|
||||
-
|
||||
+/* We use additional bytes in make_device() */
|
||||
+#define SCRATCH_SIZE 128
|
||||
|
||||
#if ENABLE_FEATURE_MDEV_CONF
|
||||
|
||||
static void make_default_cur_rule(void)
|
||||
@@ -288,14 +309,65 @@ static void make_default_cur_rule(void)
|
||||
|
||||
static void clean_up_cur_rule(void)
|
||||
@@ -233,37 +237,91 @@
|
||||
#else
|
||||
|
||||
# define next_rule() (&G.cur_rule)
|
||||
@@ -479,9 +569,6 @@ static void make_device(char *device_nam
|
||||
@@ -468,7 +558,7 @@ static char *build_alias(char *alias, co
|
||||
|
||||
/* mknod in /dev based on a path like "/sys/block/hda/hda1"
|
||||
* NB1: path parameter needs to have SCRATCH_SIZE scratch bytes
|
||||
- * after NUL, but we promise to not mangle (IOW: to restore if needed)
|
||||
+ * after NUL, but we promise to not mangle (IOW: to restore NUL if needed)
|
||||
* path string.
|
||||
* NB2: "mdev -s" may call us many times, do not leak memory/fds!
|
||||
*
|
||||
@@ -478,9 +568,7 @@ static char *build_alias(char *alias, co
|
||||
static void make_device(char *device_name, char *path, int operation)
|
||||
{
|
||||
int major, minor, type, len;
|
||||
|
||||
-
|
||||
- if (G.verbose)
|
||||
- bb_error_msg("device: %s, %s", device_name, path);
|
||||
-
|
||||
+ char *path_end = path + strlen(path);
|
||||
|
||||
/* Try to read major/minor string. Note that the kernel puts \n after
|
||||
* the data, so we don't need to worry about null terminating the string
|
||||
* because sscanf() will stop at the first nondigit, which \n is.
|
||||
@@ -500,8 +587,7 @@ static void make_device(char *device_nam
|
||||
@@ -489,29 +577,51 @@ static void make_device(char *device_nam
|
||||
*/
|
||||
major = -1;
|
||||
if (operation == OP_add) {
|
||||
- char *dev_maj_min = path + strlen(path);
|
||||
-
|
||||
- strcpy(dev_maj_min, "/dev");
|
||||
- len = open_read_close(path, dev_maj_min + 1, 64);
|
||||
- *dev_maj_min = '\0';
|
||||
+ strcpy(path_end, "/dev");
|
||||
+ len = open_read_close(path, path_end + 1, SCRATCH_SIZE - 1);
|
||||
+ *path_end = '\0';
|
||||
if (len < 1) {
|
||||
if (!ENABLE_FEATURE_MDEV_EXEC)
|
||||
return;
|
||||
/* no "dev" file, but we can still run scripts
|
||||
* based on device name */
|
||||
} else if (sscanf(++dev_maj_min, "%u:%u", &major, &minor) == 2) {
|
||||
- } else if (sscanf(++dev_maj_min, "%u:%u", &major, &minor) == 2) {
|
||||
- if (G.verbose)
|
||||
- bb_error_msg("maj,min: %u,%u", major, minor);
|
||||
+ } else if (sscanf(path_end + 1, "%u:%u", &major, &minor) == 2) {
|
||||
+ dbg1("dev %u,%u", major, minor);
|
||||
} else {
|
||||
major = -1;
|
||||
}
|
||||
@@ -511,7 +597,8 @@ static void make_device(char *device_nam
|
||||
/* Determine device name, type, major and minor */
|
||||
if (!device_name)
|
||||
device_name = (char*) bb_basename(path);
|
||||
}
|
||||
/* else: for delete, -1 still deletes the node, but < -1 suppresses that */
|
||||
|
||||
- /* Determine device name, type, major and minor */
|
||||
- if (!device_name)
|
||||
- device_name = (char*) bb_basename(path);
|
||||
- /* http://kernel.org/doc/pending/hotplug.txt says that only
|
||||
+ /* Determine device name */
|
||||
+ if (!device_name) {
|
||||
+ /*
|
||||
+ * There was no $DEVNAME envvar (for example, mdev -s never has).
|
||||
+ * But it is very useful: it contains the *path*, not only basename,
|
||||
+ * Thankfully, uevent file has it.
|
||||
+ * Example of .../sound/card0/controlC0/uevent file on Linux-3.7.7:
|
||||
+ * MAJOR=116
|
||||
+ * MINOR=7
|
||||
+ * DEVNAME=snd/controlC0
|
||||
+ */
|
||||
+ strcpy(path_end, "/uevent");
|
||||
+ len = open_read_close(path, path_end + 1, SCRATCH_SIZE - 1);
|
||||
+ if (len < 0)
|
||||
+ len = 0;
|
||||
+ *path_end = '\0';
|
||||
+ path_end[1 + len] = '\0';
|
||||
+ device_name = strstr(path_end + 1, "\nDEVNAME=");
|
||||
+ if (device_name) {
|
||||
+ device_name += sizeof("\nDEVNAME=")-1;
|
||||
+ strchrnul(device_name, '\n')[0] = '\0';
|
||||
+ } else {
|
||||
+ /* Fall back to just basename */
|
||||
+ device_name = (char*) bb_basename(path);
|
||||
+ }
|
||||
+ }
|
||||
+ /* Determine device type */
|
||||
+ /*
|
||||
+ * http://kernel.org/doc/pending/hotplug.txt says that only
|
||||
* "/sys/block/..." is for block devices. "/sys/bus" etc is not.
|
||||
* But since 2.6.25 block devices are also in /sys/class/block.
|
||||
* We use strstr("/block/") to forestall future surprises.
|
||||
@@ -537,6 +624,8 @@ static void make_device(char *device_nam
|
||||
@@ -537,6 +647,8 @@ static void make_device(char *device_nam
|
||||
rule = next_rule();
|
||||
|
||||
#if ENABLE_FEATURE_MDEV_CONF
|
||||
@@ -272,7 +330,7 @@
|
||||
if (rule->maj >= 0) { /* @maj,min rule */
|
||||
if (major != rule->maj)
|
||||
continue;
|
||||
@@ -547,7 +636,7 @@ static void make_device(char *device_nam
|
||||
@@ -547,7 +659,7 @@ static void make_device(char *device_nam
|
||||
}
|
||||
if (rule->envvar) { /* $envvar=regex rule */
|
||||
str_to_match = getenv(rule->envvar);
|
||||
@@ -281,7 +339,7 @@
|
||||
if (!str_to_match)
|
||||
continue;
|
||||
}
|
||||
@@ -555,7 +644,7 @@ static void make_device(char *device_nam
|
||||
@@ -555,7 +667,7 @@ static void make_device(char *device_nam
|
||||
|
||||
if (rule->regex_compiled) {
|
||||
int regex_match = regexec(&rule->match, str_to_match, ARRAY_SIZE(off), off, 0);
|
||||
@@ -290,7 +348,7 @@
|
||||
//bb_error_msg("matches:");
|
||||
//for (int i = 0; i < ARRAY_SIZE(off); i++) {
|
||||
// if (off[i].rm_so < 0) continue;
|
||||
@@ -574,9 +663,8 @@ static void make_device(char *device_nam
|
||||
@@ -574,9 +686,8 @@ static void make_device(char *device_nam
|
||||
}
|
||||
/* else: it's final implicit "match-all" rule */
|
||||
rule_matches:
|
||||
@@ -301,7 +359,7 @@
|
||||
/* Build alias name */
|
||||
alias = NULL;
|
||||
if (ENABLE_FEATURE_MDEV_RENAME && rule->ren_mov) {
|
||||
@@ -619,34 +707,30 @@ static void make_device(char *device_nam
|
||||
@@ -619,34 +730,30 @@ static void make_device(char *device_nam
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -344,7 +402,7 @@
|
||||
}
|
||||
|
||||
if (operation == OP_add && major >= 0) {
|
||||
@@ -656,8 +740,17 @@ static void make_device(char *device_nam
|
||||
@@ -656,8 +763,17 @@ static void make_device(char *device_nam
|
||||
mkdir_recursive(node_name);
|
||||
*slash = '/';
|
||||
}
|
||||
@@ -364,7 +422,7 @@
|
||||
if (mknod(node_name, rule->mode | type, makedev(major, minor)) && errno != EEXIST)
|
||||
bb_perror_msg("can't create '%s'", node_name);
|
||||
if (ENABLE_FEATURE_MDEV_CONF) {
|
||||
@@ -671,8 +764,7 @@ static void make_device(char *device_nam
|
||||
@@ -671,8 +787,7 @@ static void make_device(char *device_nam
|
||||
//TODO: on devtmpfs, device_name already exists and symlink() fails.
|
||||
//End result is that instead of symlink, we have two nodes.
|
||||
//What should be done?
|
||||
@@ -374,7 +432,7 @@
|
||||
symlink(node_name, device_name);
|
||||
}
|
||||
}
|
||||
@@ -681,27 +773,21 @@ static void make_device(char *device_nam
|
||||
@@ -681,27 +796,21 @@ static void make_device(char *device_nam
|
||||
if (ENABLE_FEATURE_MDEV_EXEC && command) {
|
||||
/* setenv will leak memory, use putenv/unsetenv/free */
|
||||
char *s = xasprintf("%s=%s", "MDEV", node_name);
|
||||
@@ -405,7 +463,7 @@
|
||||
unlink(node_name);
|
||||
}
|
||||
|
||||
@@ -746,9 +832,16 @@ static int FAST_FUNC dirAction(const cha
|
||||
@@ -746,9 +855,16 @@ static int FAST_FUNC dirAction(const cha
|
||||
* under /sys/class/ */
|
||||
if (1 == depth) {
|
||||
free(G.subsystem);
|
||||
@@ -423,7 +481,7 @@
|
||||
}
|
||||
|
||||
return (depth >= MAX_SYSFS_DEPTH ? SKIP : TRUE);
|
||||
@@ -813,12 +906,107 @@ static void load_firmware(const char *fi
|
||||
@@ -813,12 +929,107 @@ static void load_firmware(const char *fi
|
||||
full_write(loading_fd, "-1", 2);
|
||||
|
||||
out:
|
||||
@@ -531,7 +589,7 @@
|
||||
int mdev_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
|
||||
int mdev_main(int argc UNUSED_PARAM, char **argv)
|
||||
{
|
||||
@@ -840,8 +1028,8 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
@@ -840,8 +1051,8 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
xchdir("/dev");
|
||||
|
||||
if (argv[1] && strcmp(argv[1], "-s") == 0) {
|
||||
@@ -542,7 +600,7 @@
|
||||
*/
|
||||
struct stat st;
|
||||
|
||||
@@ -853,6 +1041,8 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
@@ -853,6 +1064,8 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
G.root_major = major(st.st_dev);
|
||||
G.root_minor = minor(st.st_dev);
|
||||
|
||||
@@ -551,7 +609,7 @@
|
||||
/* ACTION_FOLLOWLINKS is needed since in newer kernels
|
||||
* /sys/block/loop* (for example) are symlinks to dirs,
|
||||
* not real directories.
|
||||
@@ -878,11 +1068,13 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
@@ -878,11 +1091,13 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
char *action;
|
||||
char *env_devname;
|
||||
char *env_devpath;
|
||||
@@ -566,7 +624,7 @@
|
||||
* DEVPATH is like "/block/sda" or "/class/input/mice"
|
||||
*/
|
||||
action = getenv("ACTION");
|
||||
@@ -893,39 +1085,20 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
@@ -893,39 +1108,20 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
if (!action || !env_devpath /*|| !G.subsystem*/)
|
||||
bb_show_usage();
|
||||
fw = getenv("FIRMWARE");
|
||||
@@ -618,7 +676,7 @@
|
||||
|
||||
snprintf(temp, PATH_MAX, "/sys%s", env_devpath);
|
||||
if (op == OP_remove) {
|
||||
@@ -935,16 +1108,18 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
@@ -935,16 +1131,18 @@ int mdev_main(int argc UNUSED_PARAM, cha
|
||||
if (!fw)
|
||||
make_device(env_devname, temp, op);
|
||||
}
|
||||
|
||||
11
package/busybox/1.21.0/busybox-1.21.0-ntfs.patch
Normal file
11
package/busybox/1.21.0/busybox-1.21.0-ntfs.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- busybox-1.21.0/util-linux/volume_id/ntfs.c
|
||||
+++ busybox-1.21.0-ntfs/util-linux/volume_id/ntfs.c
|
||||
@@ -150,7 +150,7 @@ int FAST_FUNC volume_id_probe_ntfs(struc
|
||||
|
||||
attr = (struct file_attribute*) &buf[attr_off];
|
||||
attr_type = le32_to_cpu(attr->type);
|
||||
- attr_len = le16_to_cpu(attr->len);
|
||||
+ attr_len = le32_to_cpu(attr->len);
|
||||
val_off = le16_to_cpu(attr->value_offset);
|
||||
val_len = le32_to_cpu(attr->value_len);
|
||||
attr_off += attr_len;
|
||||
@@ -36,6 +36,10 @@ CAIRO_CONF_ENV = ac_cv_func_posix_getpwuid_r=yes glib_cv_stack_grows=no \
|
||||
ac_cv_func_working_mktime=yes jm_cv_func_working_re_compile_pattern=yes \
|
||||
ac_use_included_regex=no gl_cv_c_restrict=no
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
CAIRO_CONF_ENV += CPPFLAGS="$(TARGET_CPPFLAGS) -DCAIRO_NO_MUTEX=1"
|
||||
endif
|
||||
|
||||
CAIRO_CONF_OPT = \
|
||||
--enable-trace=no \
|
||||
--enable-interpreter=no
|
||||
|
||||
@@ -8,6 +8,10 @@ CLASSPATH_CONF_OPT = \
|
||||
--disable-gconf-peer \
|
||||
--disable-tools
|
||||
|
||||
# classpath assumes qt runs on top of X11, but we
|
||||
# don't support qt4 on X11
|
||||
CLASSPATH_CONF_OPT += --disable-qt-peer
|
||||
|
||||
CLASSPATH_DEPENDENCIES = host-pkgconf
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
||||
@@ -39,13 +43,6 @@ else
|
||||
CLASSPATH_CONF_OPT += --disable-gtk-peer --disable-gstreamer-peer
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_QT),y)
|
||||
CLASSPATH_CONF_OPT += --enable-qt-peer
|
||||
CLASSPATH_DEPENDENCIES += qt
|
||||
else
|
||||
CLASSPATH_CONF_OPT += --disable-qt-peer
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2)$(BR2_PACKAGE_LIBXSLT),yy)
|
||||
CLASSPATH_CONF_OPT += --enable-xmlj
|
||||
CLASSPATH_DEPENDENCIES += libxml2 libxslt
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
CURLFTPFS_VERSION = 0.9.2
|
||||
CURLFTPFS_SITE = http://downloads.sourceforge.net/project/curlftpfs/curlftpfs/$(CURLFTPFS_VERSION)
|
||||
CURLFTPFS_CONF_ENV = ac_cv_path__libcurl_config=$(STAGING_DIR)/usr/bin/curl-config
|
||||
CURLFTPFS_DEPENDENCIES = \
|
||||
libglib2 libfuse openssl libcurl \
|
||||
$(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) \
|
||||
|
||||
@@ -14,6 +14,10 @@ CZMQ_DEPENDENCIES = zeromq
|
||||
CZMQ_LICENSE = LGPLv3+ with exceptions
|
||||
CZMQ_LICENSE_FILES = COPYING COPYING.LESSER
|
||||
|
||||
# asciidoc is a python script that imports unicodedata, which is not in
|
||||
# host-python, so disable asciidoc entirely.
|
||||
CZMQ_CONF_ENV = ac_cv_prog_czmq_have_asciidoc=no
|
||||
|
||||
define CZMQ_CREATE_CONFIG_DIR
|
||||
mkdir -p $(@D)/config
|
||||
endef
|
||||
|
||||
@@ -3,8 +3,11 @@
|
||||
# dbus
|
||||
#
|
||||
#############################################################
|
||||
|
||||
DBUS_VERSION = 1.4.24
|
||||
DBUS_SITE = http://dbus.freedesktop.org/releases/dbus/
|
||||
DBUS_LICENSE = AFLv2.1 GPLv2+
|
||||
DBUS_LICENSE_FILES = COPYING
|
||||
DBUS_INSTALL_STAGING = YES
|
||||
|
||||
DBUS_DEPENDENCIES = host-pkgconf
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
#
|
||||
#############################################################
|
||||
|
||||
F2FS_TOOLS_VERSION = e3eadd686ed1da1828f32977a36b694bc0090f4e
|
||||
F2FS_TOOLS_VERSION = fef98ebdf3a7728017cb3d0ae4ffedc5405e531d
|
||||
F2FS_TOOLS_SITE = http://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
|
||||
F2FS_TOOLS_SITE_METHOD = git
|
||||
F2FS_TOOLS_CONF_ENV = ac_cv_file__git=no
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
config BR2_PACKAGE_FAN_CTRL
|
||||
bool "fan-ctrl"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
help
|
||||
Fan-ctrl is a little daemon that controls the speed of one
|
||||
or more system or CPU fans. It does so by monitoring
|
||||
|
||||
@@ -8,6 +8,7 @@ FILEMQ_VERSION = 8fac5140dd
|
||||
FILEMQ_SITE = git://github.com/zeromq/filemq.git
|
||||
|
||||
FILEMQ_AUTORECONF = YES
|
||||
FILEMQ_CONF_ENV = fmq_have_asciidoc=no
|
||||
FILEMQ_INSTALL_STAGING = YES
|
||||
FILEMQ_DEPENDENCIES = czmq openssl zeromq
|
||||
FILEMQ_LICENSE = LGPLv3+ with exceptions
|
||||
|
||||
@@ -21,8 +21,11 @@ GUTENPRINT_DEPENDENCIES = cups host-pkgconf \
|
||||
# so we need to build both a host package and a target package
|
||||
GUTENPRINT_DEPENDENCIES += host-gutenprint
|
||||
|
||||
GUTENPRINT_CONF_ENV = ac_cv_path_CUPS_CONFIG=$(STAGING_DIR)/usr/bin/cups-config
|
||||
|
||||
GUTENPRINT_CONF_OPT = --disable-libgutenprintui2 \
|
||||
--disable-samples \
|
||||
--without-doc \
|
||||
--without-gimp2 \
|
||||
--without-foomatic \
|
||||
--without-foomatic3 \
|
||||
@@ -41,6 +44,13 @@ HOST_GUTENPRINT_DEPENDENCIES =
|
||||
# The host-gutenprint shall create the required header
|
||||
HOST_GUTENPRINT_MAKE_ENV =
|
||||
|
||||
# Even with --without-cups, gutenprint will still add the output of
|
||||
# cups-config --cflags / --ldflags to it's compiler/linker flags if
|
||||
# available on host.
|
||||
# Notice: Because of the configure logic, it needs to be set to the
|
||||
# empty string to to disable this, not just to /bin/false like elsewhere.
|
||||
HOST_GUTENPRINT_CONF_ENV = ac_cv_path_CUPS_CONFIG=''
|
||||
|
||||
HOST_GUTENPRINT_CONF_OPT = --disable-libgutenprintui2 \
|
||||
--disable-samples \
|
||||
--without-gimp2 \
|
||||
@@ -51,7 +61,8 @@ HOST_GUTENPRINT_CONF_OPT = --disable-libgutenprintui2 \
|
||||
--without-foomatic3 \
|
||||
--disable-escputil \
|
||||
--disable-test \
|
||||
--disable-testpattern
|
||||
--disable-testpattern \
|
||||
--without-cups
|
||||
|
||||
# Needed by autoreconf
|
||||
define GUTENPRINT_CREATE_M4_DIR
|
||||
|
||||
@@ -2,6 +2,7 @@ config BR2_PACKAGE_HPLIP
|
||||
bool "hplip"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_PACKAGE_CUPS
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
select BR2_PACKAGE_JPEG
|
||||
help
|
||||
@@ -14,5 +15,5 @@ config BR2_PACKAGE_HPLIP
|
||||
|
||||
http://hplipopensource.com/
|
||||
|
||||
comment "hplip requires a toolchain with C++ support enabled"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP
|
||||
comment "hplip requires a toolchain with C++ and thread support enabled"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
From 2ab6524ca0cfaab7feb42f7c328db8fca7b111fc Mon Sep 17 00:00:00 2001
|
||||
From: Gilles Talis <gilles.talis@gmail.com>
|
||||
Date: Tue, 5 Mar 2013 21:59:11 -0800
|
||||
Subject: [PATCH] Add json_object_iterator.h to installed headers
|
||||
|
||||
Backported from: 4154c55edae6f6b34d6ef4fcc331055fdf8e1a23
|
||||
|
||||
In addition to original patch, applied the same change to Makefile.in
|
||||
to avoid having the package to be autoreconfigured.
|
||||
|
||||
Signed-off-by: Gilles Talis <gilles.talis@gmail.com>
|
||||
---
|
||||
Makefile.am | 1 +
|
||||
Makefile.in | 1 +
|
||||
2 files changed, 2 insertions(+)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index d4a7bbb..8f09ca8 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -17,6 +17,7 @@ libjsoninclude_HEADERS = \
|
||||
json_config.h \
|
||||
json_inttypes.h \
|
||||
json_object.h \
|
||||
+ json_object_iterator.h \
|
||||
json_object_private.h \
|
||||
json_tokener.h \
|
||||
json_util.h \
|
||||
diff --git a/Makefile.in b/Makefile.in
|
||||
index c06db3e..9d924cd 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -278,6 +278,7 @@ libjsoninclude_HEADERS = \
|
||||
json_config.h \
|
||||
json_inttypes.h \
|
||||
json_object.h \
|
||||
+ json_object_iterator.h \
|
||||
json_object_private.h \
|
||||
json_tokener.h \
|
||||
json_util.h \
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -13,19 +13,32 @@ Index: b/Makefile.am.inc
|
||||
--- a/Makefile.am.inc
|
||||
+++ b/Makefile.am.inc
|
||||
@@ -1,2 +1,2 @@
|
||||
-AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
||||
+AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
|
||||
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
||||
+AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
|
||||
|
||||
Index: b/Makefile.in
|
||||
===================================================================
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -263,7 +263,7 @@
|
||||
@@ -274,7 +274,7 @@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
-AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
||||
+AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
|
||||
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
||||
+AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
|
||||
EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
|
||||
SUBDIRS = . tests
|
||||
lib_LTLIBRARIES = libjson.la
|
||||
lib_LTLIBRARIES = libjson-c.la $(am__append_1)
|
||||
Index: b/tests/Makefile.in
|
||||
===================================================================
|
||||
--- a/tests/Makefile.in
|
||||
+++ b/tests/Makefile.in
|
||||
@@ -228,7 +228,7 @@
|
||||
top_build_prefix = @top_build_prefix@
|
||||
top_builddir = @top_builddir@
|
||||
top_srcdir = @top_srcdir@
|
||||
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
||||
+AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
|
||||
LIBJSON_LA = $(top_builddir)/libjson-c.la
|
||||
test1_LDADD = $(LIBJSON_LA)
|
||||
test1Formatted_LDADD = $(LIBJSON_LA)
|
||||
|
||||
@@ -4,8 +4,10 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
JSON_C_VERSION = 0.10
|
||||
JSON_C_SITE = https://github.com/downloads/json-c/json-c
|
||||
JSON_C_VERSION = 0.11
|
||||
JSON_C_SITE = https://s3.amazonaws.com/json-c_releases/releases/
|
||||
JSON_C_INSTALL_STAGING = YES
|
||||
JSON_C_MAKE = $(MAKE1)
|
||||
JSON_C_CONF_OPT = --disable-oldname-compat
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,16 @@
|
||||
LIBATOMIC_OPS_VERSION = 7.2
|
||||
LIBATOMIC_OPS_SOURCE = libatomic_ops-$(LIBATOMIC_OPS_VERSION).tar.gz
|
||||
LIBATOMIC_OPS_SITE = http://www.hpl.hp.com/research/linux/atomic_ops/download
|
||||
|
||||
# From doc/LICENSING.txt: "Our intent is to make it easy to use
|
||||
# libatomic_ops, in both free and proprietary software. Hence most
|
||||
# code that we expect to be linked into a client application is
|
||||
# covered by an MIT-style license. A few library routines are covered
|
||||
# by the GNU General Public License. These are put into a separate
|
||||
# library, libatomic_ops_gpl.a."
|
||||
LIBATOMIC_OPS_LICENSE = MIT (main library) / GPLv2+ (gpl extension)
|
||||
LIBATOMIC_OPS_LICENSE_FILES = doc/LICENSING.txt doc/COPYING
|
||||
|
||||
LIBATOMIC_OPS_INSTALL_STAGING = YES
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
57
package/libcurl/libcurl-02-CVE-2013-1944.patch
Normal file
57
package/libcurl/libcurl-02-CVE-2013-1944.patch
Normal file
@@ -0,0 +1,57 @@
|
||||
From 3604fde3d3c9b0d0e389e079aecf470d123ba180 Mon Sep 17 00:00:00 2001
|
||||
From: YAMADA Yasuharu <yasuharu.yamada@access-company.com>
|
||||
Date: Thu, 11 Apr 2013 00:17:15 +0200
|
||||
Subject: [PATCH] cookie: fix tailmatching to prevent cross-domain leakage
|
||||
|
||||
Cookies set for 'example.com' could accidentaly also be sent by libcurl
|
||||
to the 'bexample.com' (ie with a prefix to the first domain name).
|
||||
|
||||
This is a security vulnerabilty, CVE-2013-1944.
|
||||
|
||||
Bug: http://curl.haxx.se/docs/adv_20130412.html
|
||||
---
|
||||
lib/cookie.c | 24 +++++++++++++++++++-----
|
||||
1 file changed, 19 insertions(+), 5 deletions(-)
|
||||
|
||||
diff --git a/lib/cookie.c b/lib/cookie.c
|
||||
index 4b9ec0b..a67204e 100644
|
||||
--- a/lib/cookie.c
|
||||
+++ b/lib/cookie.c
|
||||
@@ -118,15 +118,29 @@ static void freecookie(struct Cookie *co)
|
||||
free(co);
|
||||
}
|
||||
|
||||
-static bool tailmatch(const char *little, const char *bigone)
|
||||
+static bool tailmatch(const char *cooke_domain, const char *hostname)
|
||||
{
|
||||
- size_t littlelen = strlen(little);
|
||||
- size_t biglen = strlen(bigone);
|
||||
+ size_t cookie_domain_len = strlen(cooke_domain);
|
||||
+ size_t hostname_len = strlen(hostname);
|
||||
|
||||
- if(littlelen > biglen)
|
||||
+ if(hostname_len < cookie_domain_len)
|
||||
return FALSE;
|
||||
|
||||
- return Curl_raw_equal(little, bigone+biglen-littlelen) ? TRUE : FALSE;
|
||||
+ if(!Curl_raw_equal(cooke_domain, hostname+hostname_len-cookie_domain_len))
|
||||
+ return FALSE;
|
||||
+
|
||||
+ /* A lead char of cookie_domain is not '.'.
|
||||
+ RFC6265 4.1.2.3. The Domain Attribute says:
|
||||
+ For example, if the value of the Domain attribute is
|
||||
+ "example.com", the user agent will include the cookie in the Cookie
|
||||
+ header when making HTTP requests to example.com, www.example.com, and
|
||||
+ www.corp.example.com.
|
||||
+ */
|
||||
+ if(hostname_len == cookie_domain_len)
|
||||
+ return TRUE;
|
||||
+ if('.' == *(hostname + hostname_len - cookie_domain_len - 1))
|
||||
+ return TRUE;
|
||||
+ return FALSE;
|
||||
}
|
||||
|
||||
/*
|
||||
--
|
||||
1.7.10.4
|
||||
|
||||
@@ -3,9 +3,12 @@
|
||||
# libdrm
|
||||
#
|
||||
#############################################################
|
||||
|
||||
LIBDRM_VERSION = 2.4.38
|
||||
LIBDRM_SOURCE = libdrm-$(LIBDRM_VERSION).tar.bz2
|
||||
LIBDRM_SITE = http://dri.freedesktop.org/libdrm/
|
||||
LIBDRM_LICENSE = MIT
|
||||
|
||||
LIBDRM_INSTALL_STAGING = YES
|
||||
|
||||
LIBDRM_DEPENDENCIES = \
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
Fix gio/gcancellable.c build when thread support is disabled
|
||||
|
||||
Signed-off-by: "Samuel Martin" <s.martin49@gmail.com>
|
||||
---
|
||||
--- a/gio/gcancellable.c 2013-05-14 23:08:25.514461348 +0200
|
||||
+++ b/gio/gcancellable.c 2013-05-14 23:10:23.347789625 +0200
|
||||
@@ -270,8 +270,10 @@ g_cancellable_reset (GCancellable *cance
|
||||
while (priv->cancelled_running)
|
||||
{
|
||||
priv->cancelled_running_waiting = TRUE;
|
||||
+#if defined(G_THREADS_ENABLED)
|
||||
g_cond_wait (cancellable_cond,
|
||||
g_static_mutex_get_mutex (& G_LOCK_NAME (cancellable)));
|
||||
+#endif
|
||||
}
|
||||
|
||||
if (priv->cancelled)
|
||||
@@ -619,8 +621,10 @@ g_cancellable_disconnect (GCancellable
|
||||
while (priv->cancelled_running)
|
||||
{
|
||||
priv->cancelled_running_waiting = TRUE;
|
||||
+#if defined(G_THREADS_ENABLED)
|
||||
g_cond_wait (cancellable_cond,
|
||||
g_static_mutex_get_mutex (& G_LOCK_NAME (cancellable)));
|
||||
+#endif
|
||||
}
|
||||
|
||||
g_signal_handler_disconnect (cancellable, handler_id);
|
||||
@@ -67,6 +67,9 @@ HOST_LIBGLIB2_CONF_OPT = \
|
||||
--disable-tests
|
||||
|
||||
LIBGLIB2_CONF_OPT += --disable-tests
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),)
|
||||
LIBGLIB2_CONF_OPT += --with-threads=none --disable-threads
|
||||
endif
|
||||
|
||||
LIBGLIB2_DEPENDENCIES = host-pkgconf host-libglib2 libffi zlib $(if $(BR2_NEEDS_GETTEXT),gettext) host-gettext
|
||||
|
||||
|
||||
@@ -11,4 +11,4 @@ config BR2_PACKAGE_LIBNSPR
|
||||
http://www.mozilla.org/projects/nspr/
|
||||
|
||||
comment "libnspr requires a toolchain with LARGEFILE and threads support"
|
||||
depends on !BR2_LARGEFILE && !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
@@ -15,5 +15,5 @@ config BR2_PACKAGE_LIBNSS
|
||||
http://www.mozilla.org/projects/security/pki/nss/
|
||||
|
||||
comment "libnss requires a toolchain with LARGEFILE and thread support"
|
||||
depends on !BR2_LARGEFILE && !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
|
||||
@@ -6,6 +6,9 @@
|
||||
|
||||
LIBSHA1_VERSION = 0.3
|
||||
LIBSHA1_SITE = http://github.com/dottedmag/libsha1/tarball/$(LIBSHA1_VERSION)
|
||||
LIBSHA1_LICENSE = BSD-3c or GPL
|
||||
LIBSHA1_LICENSE_FILES = COPYING
|
||||
|
||||
LIBSHA1_INSTALL_STAGING = YES
|
||||
|
||||
# We're getting the source code from Github, so there is no generated
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
LIBSIGSEGV_VERSION = 2.6
|
||||
LIBSIGSEGV_SITE = $(BR2_GNU_MIRROR)/libsigsegv
|
||||
LIBSIGSEGV_INSTALL_STAGING = YES
|
||||
LIBSIGSEGV_CONF_ENV = sv_cv_fault_posix=yes
|
||||
LIBSIGSEGV_LICENSE = GPLv2+
|
||||
LIBSIGSEGV_LICENSE_FILES = COPYING
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ LINKNX_DEPENDENCIES = libpthsem
|
||||
|
||||
ifeq ($(BR2_PACKAGE_MYSQL_CLIENT),y)
|
||||
LINKNX_CONF_OPT += --with-mysql=$(STAGING_DIR)/usr/bin/mysql_config
|
||||
LINKNX_DEPENDENCIES = mysql_client
|
||||
LINKNX_DEPENDENCIES += mysql_client
|
||||
else
|
||||
LINKNX_CONF_OPT += --without-mysql
|
||||
endif
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
Date: Mon, 9 Jul 2012 09:43:11 +0200
|
||||
Subject: [PATCH] RLIMIT_* variables are no longer defined unless you
|
||||
explicitly include sys/resource.h.
|
||||
|
||||
Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
|
||||
|
||||
modules/pam_unix/pam_unix_acct.c: Include sys/resource.h.
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
[This patch is in linux-pam 1.1.6]
|
||||
---
|
||||
modules/pam_unix/pam_unix_acct.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/modules/pam_unix/pam_unix_acct.c b/modules/pam_unix/pam_unix_acct.c
|
||||
index 8e90cc9..4a362f8 100644
|
||||
--- a/modules/pam_unix/pam_unix_acct.c
|
||||
+++ b/modules/pam_unix/pam_unix_acct.c
|
||||
@@ -41,6 +41,7 @@
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/types.h>
|
||||
+#include <sys/resource.h>
|
||||
#include <syslog.h>
|
||||
#include <pwd.h>
|
||||
#include <shadow.h>
|
||||
--
|
||||
1.8.2.1
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
From: "Dmitry V. Levin" <ldv@altlinux.org>
|
||||
Date: Wed, 10 Oct 2012 18:13:07 +0000
|
||||
Subject: [PATCH] pam_unix: fix build in --enable-selinux mode
|
||||
|
||||
glibc's <sys/wait.h> starting with commit
|
||||
http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=glibc-2.15-231-gd94a467
|
||||
does not include <sys/resource.h> for POSIX 2008 conformance reasons, so
|
||||
when pam is being built with SELinux support enabled, pam_unix_passwd.c
|
||||
uses getrlimit(2) and therefore should include <sys/resource.h> without
|
||||
relying on other headers.
|
||||
|
||||
* modules/pam_unix/pam_unix_passwd.c: Include <sys/resource.h>.
|
||||
|
||||
Reported-by: Guido Trentalancia <guido@trentalancia.com>
|
||||
Reported-by: "Jory A. Pratt" <anarchy@gentoo.org>
|
||||
Reported-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
[This patch is in linux-pam 1.1.6]
|
||||
---
|
||||
modules/pam_unix/pam_unix_passwd.c | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/modules/pam_unix/pam_unix_passwd.c b/modules/pam_unix/pam_unix_passwd.c
|
||||
index 9e1302d..94bc3ec 100644
|
||||
--- a/modules/pam_unix/pam_unix_passwd.c
|
||||
+++ b/modules/pam_unix/pam_unix_passwd.c
|
||||
@@ -58,6 +58,7 @@
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
#include <sys/wait.h>
|
||||
+#include <sys/resource.h>
|
||||
|
||||
#include <security/_pam_macros.h>
|
||||
|
||||
--
|
||||
1.8.2.1
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_LTRACE
|
||||
bool "ltrace"
|
||||
depends on !(BR2_avr32 || BR2_mips || BR2_sh || BR2_sh64 || BR2_xtensa || BR2_aarch64)
|
||||
depends on !(BR2_avr32 || BR2_mips || BR2_sh || BR2_sh64 || BR2_xtensa || BR2_aarch64 || BR2_arc)
|
||||
select BR2_PACKAGE_LIBELF
|
||||
help
|
||||
Debugging program which runs a specified command until it exits.
|
||||
|
||||
@@ -16,3 +16,6 @@ config BR2_PACKAGE_LTTNG_MODULES
|
||||
http://lttng.org/files/bundles/20111214/README.compatible.kernels.txt
|
||||
|
||||
http://lttng.org
|
||||
|
||||
comment "lttng-modules requires a linux kernel to be built"
|
||||
depends on !BR2_LINUX_KERNEL
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
config BR2_PACKAGE_LTTNG_TOOLS
|
||||
bool "lttng-tools"
|
||||
depends on BR2_PACKAGE_LTTNG_MODULES
|
||||
select BR2_PACKAGE_LIBURCU
|
||||
select BR2_PACKAGE_POPT
|
||||
# liburcu only works on some architectures and requires thread support
|
||||
depends on BR2_arm || BR2_armeb || BR2_i386 || BR2_powerpc || BR2_x86_64
|
||||
depends on BR2_LARGEFILE
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
help
|
||||
Userspace utilities for the LTTng 2.0 tracing
|
||||
@@ -24,6 +24,6 @@ config BR2_PACKAGE_LTTNG_TOOLS
|
||||
|
||||
http://lttng.org
|
||||
|
||||
comment "lttng-tools needs threads support"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
comment "lttng-tools needs LARGEFILE and threads support"
|
||||
depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ else
|
||||
MATCHBOX_LIB_CONF_OPT+=--disable-png
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_PANGO),y)
|
||||
ifeq ($(BR2_PACKAGE_PANGO)$(BR2_PACKAGE_XLIB_LIBXFT)$(BR2_PACKAGE_XLIB_LIBXRENDER),yyy)
|
||||
MATCHBOX_LIB_CONF_OPT+=--enable-pango
|
||||
MATCHBOX_LIB_DEPENDENCIES+=pango
|
||||
else
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
Fix dfb-example
|
||||
|
||||
Order of inclusion gives a strange effect on the definition of
|
||||
gst_debug_log. Swapping the include statements solve it.
|
||||
|
||||
Not upstreamed since there will be no more updates to this version
|
||||
of gst-plugins-bad.
|
||||
|
||||
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
|
||||
---
|
||||
diff -rup gst-plugins-bad-0.10.23/ext/directfb/dfb-example.c gst-plugins-bad-0.10.23.fixed/ext/directfb/dfb-example.c
|
||||
--- gst-plugins-bad-0.10.23/ext/directfb/dfb-example.c 2011-12-11 19:49:11.000000000 +0100
|
||||
+++ gst-plugins-bad-0.10.23.fixed/ext/directfb/dfb-example.c 2013-05-13 00:32:00.507469138 +0200
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
-#include <directfb.h>
|
||||
#include <stdio.h>
|
||||
#include <gst/gst.h>
|
||||
+#include <directfb.h>
|
||||
|
||||
static IDirectFB *dfb = NULL;
|
||||
static IDirectFBSurface *primary = NULL;
|
||||
@@ -0,0 +1,26 @@
|
||||
From 759c0bc6f990240287a14fa6dec029ecea581463 Mon Sep 17 00:00:00 2001
|
||||
From: Arun Raghavan <arun.raghavan@collabora.co.uk>
|
||||
Date: Sat, 27 Apr 2013 03:27:05 +0000
|
||||
Subject: build-sys: json-c changed everything :(
|
||||
|
||||
json-c 0.11 ships a pkg-config file with a different name, and changes
|
||||
the name of its library as well.
|
||||
---
|
||||
(limited to 'configure.ac')
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index c8161a4..b1bd21a 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -624,7 +624,8 @@ AM_CONDITIONAL([HAVE_TESTS], [test "x$HAVE_LIBCHECK" = x1])
|
||||
|
||||
#### json parsing ####
|
||||
|
||||
-PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])
|
||||
+PKG_CHECK_MODULES(LIBJSON, [ json-c >= 0.11 ], [],
|
||||
+ [PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])])
|
||||
AC_SUBST(LIBJSON_CFLAGS)
|
||||
AC_SUBST(LIBJSON_LIBS)
|
||||
|
||||
--
|
||||
cgit v0.9.0.2-2-gbebe
|
||||
@@ -28,10 +28,23 @@ PULSEAUDIO_DEPENDENCIES = \
|
||||
$(if $(BR2_PACKAGE_UDEV),udev) \
|
||||
$(if $(BR2_PACKAGE_OPENSSL),openssl) \
|
||||
$(if $(BR2_PACKAGE_FFTW),fftw) \
|
||||
$(if $(BR2_PACKAGE_ORC),orc) \
|
||||
$(if $(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),webrtc-audio-processing) \
|
||||
$(if $(BR2_PACKAGE_SYSTEMD),systemd)
|
||||
|
||||
# One patch touches configure.ac. We unconditionnally need libglib2
|
||||
# because configure.ac uses AM_GLIB_GNU_GETTEXT. This unconditionnal
|
||||
# dependency can be removed once the patch is removed.
|
||||
PULSEAUDIO_AUTORECONF = YES
|
||||
PULSEAUDIO_DEPENDENCIES += libglib2
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ORC),y)
|
||||
PULSEAUDIO_DEPENDENCIES += orc
|
||||
PULSEAUDIO_CONF_ENV += ORCC=$(HOST_DIR)/usr/bin/orcc
|
||||
PULSEAUDIO_CONF_OPT += --enable-orc
|
||||
else
|
||||
PULSEAUDIO_CONF_OPT += --disable-orc
|
||||
endif
|
||||
|
||||
ifneq ($(BR2_INSTALL_LIBSTDCPP),y)
|
||||
# The optional webrtc echo canceller is written in C++, causing auto* to want
|
||||
# to link module-echo-cancel.so with CXX even if webrtc ISN'T used.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
NEON_VERSION = 0.29.6
|
||||
NEON_SITE = http://www.webdav.org/neon/
|
||||
NEON_LICENSE = LGPLv2+ (library), GPLv2+ (manual and tests)
|
||||
NEON_LICENSE_FILES = src/COPYING.LIB src/COPYING README
|
||||
NEON_LICENSE_FILES = src/COPYING.LIB test/COPYING README
|
||||
NEON_INSTALL_STAGING = YES
|
||||
NEON_CONF_OPT = --without-gssapi --disable-rpath
|
||||
NEON_CONFIG_SCRIPTS = neon-config
|
||||
|
||||
@@ -10,6 +10,7 @@ OPENSSL_LICENSE = OpenSSL or SSLeay
|
||||
OPENSSL_LICENSE_FILES = LICENSE
|
||||
OPENSSL_INSTALL_STAGING = YES
|
||||
OPENSSL_DEPENDENCIES = zlib
|
||||
HOST_OPENSSL_DEPENDENCIES = host-zlib
|
||||
OPENSSL_TARGET_ARCH = generic32
|
||||
OPENSSL_CFLAGS = $(TARGET_CFLAGS)
|
||||
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
################################################################################
|
||||
PIXMAN_VERSION = 0.28.2
|
||||
PIXMAN_SITE = http://xorg.freedesktop.org/releases/individual/lib
|
||||
PIXMAN_LICENSE = MIT
|
||||
PIXMAN_LICENSE_FILES = COPYING
|
||||
|
||||
PIXMAN_INSTALL_STAGING = YES
|
||||
PIXMAN_DEPENDENCIES = host-pkgconf
|
||||
# don't build gtk based demos
|
||||
|
||||
@@ -508,9 +508,7 @@ ifeq ($(call qstrip,$$($(2)_LICENSE_FILES)),)
|
||||
@$(call legal-license-nofiles,$$($(2)_RAWNAME))
|
||||
@$(call legal-warning-pkg,$$($(2)_RAWNAME),cannot save license ($(2)_LICENSE_FILES not defined))
|
||||
else
|
||||
@for F in $$($(2)_LICENSE_FILES); do \
|
||||
$(call legal-license-file,$$($(2)_RAWNAME),$$$${F},$$($(2)_DIR)/$$$${F}); \
|
||||
done
|
||||
@$(foreach F,$($(2)_LICENSE_FILES),$(call legal-license-file,$$($(2)_RAWNAME),$(F),$$($(2)_DIR)/$(F))$$(sep))
|
||||
endif
|
||||
ifeq ($$($(2)_REDISTRIBUTE),YES)
|
||||
# Copy the source tarball (just hardlink if possible)
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
config BR2_PACKAGE_PYTHON_NFC
|
||||
bool "python-nfc"
|
||||
depends on BR2_PACKAGE_PYTHON
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libusb
|
||||
select BR2_PACKAGE_LIBUSB
|
||||
select BR2_PACKAGE_LIBUSB_COMPAT
|
||||
help
|
||||
Python module for near field communication.
|
||||
|
||||
https://launchpad.net/nfcpy
|
||||
|
||||
comment "python-nfc requires a toolchain with threads support"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_QT5IMAGEFORMATS
|
||||
bool "qt5imageformats"
|
||||
select BR2_PACKAGE_QT5BASE
|
||||
select BR2_PACKAGE_QT5BASE_GUI
|
||||
help
|
||||
Qt is a cross-platform application and UI framework for
|
||||
developers using C++.
|
||||
|
||||
@@ -14,7 +14,7 @@ QUOTA_CFLAGS = $(TARGET_CFLAGS)
|
||||
QUOTA_LDFLAGS = $(TARGET_LDFLAGS)
|
||||
|
||||
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
||||
QUOTA_DEPENDENCIES = gettext
|
||||
QUOTA_DEPENDENCIES += gettext
|
||||
QUOTA_LDFLAGS += -lintl
|
||||
endif
|
||||
|
||||
|
||||
@@ -3,25 +3,23 @@
|
||||
# sconeserver
|
||||
#
|
||||
#############################################################
|
||||
|
||||
# Release 0.6.0 doesn't build cleanly, so use a recent
|
||||
# Subversion trunk snapshot.
|
||||
SCONESERVER_VERSION = 183
|
||||
SCONESERVER_SITE = \
|
||||
https://sconeserver.svn.sourceforge.net/svnroot/sconeserver/trunk
|
||||
SCONESERVER_VERSION = 211
|
||||
SCONESERVER_SITE = svn://svn.code.sf.net/p/sconeserver/code/trunk
|
||||
SCONESERVER_SITE_METHOD = svn
|
||||
|
||||
SCONESERVER_LICENSE = GPLv2+
|
||||
SCONESERVER_LICENSE_FILES = COPYING
|
||||
|
||||
SCONESERVER_AUTORECONF = YES
|
||||
SCONESERVER_DEPENDENCIES += pcre
|
||||
SCONESERVER_CONF_OPT += --with-ip --with-local
|
||||
|
||||
SCONESERVER_CONF_OPT += CXXFLAGS="$(TARGET_CXXFLAGS) $(SCONESERVER_CXXFLAGS)"
|
||||
SCONESERVER_CONF_OPT += LDFLAGS="$(TARGET_LDFLAGS) $(SCONESERVER_LDFLAGS)"
|
||||
|
||||
# Sconeserver configure script fails to find the libxml2 headers.
|
||||
ifeq ($(BR2_PACKAGE_LIBXML2),y)
|
||||
SCONESERVER_CXXFLAGS += -I$(STAGING_DIR)/usr/include/libxml2
|
||||
SCONESERVER_CONF_OPT += \
|
||||
--with-xml2-config="$(STAGING_DIR)/usr/bin/xml2-config"
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_INET_IPV6),y)
|
||||
@@ -52,16 +50,17 @@ endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_HTTP_SCONESITE_IMAGE),y)
|
||||
SCONESERVER_DEPENDENCIES += imagemagick host-pkgconf
|
||||
SCONESERVER_CONF_OPT += --with-sconesite-image
|
||||
SCONESERVER_CONF_OPT += \
|
||||
--with-sconesite-image \
|
||||
--with-Magick++-config="$(STAGING_DIR)/usr/bin/Magick++-config"
|
||||
else
|
||||
SCONESERVER_CONF_OPT += --without-sconesite-image
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SCONESERVER_MYSQL),y)
|
||||
SCONESERVER_DEPENDENCIES += mysql_client
|
||||
SCONESERVER_CONF_OPT += --with-mysql
|
||||
SCONESERVER_CXXFLAGS += -I$(STAGING_DIR)/usr/include/mysql
|
||||
SCONESERVER_LDFLAGS += -L$(STAGING_DIR)/usr/lib/mysql
|
||||
SCONESERVER_CONF_OPT += --with-mysql \
|
||||
--with-mysql_config="$(STAGING_DIR)/usr/bin/mysql_config"
|
||||
else
|
||||
SCONESERVER_CONF_OPT += --without-mysql
|
||||
endif
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
config BR2_PACKAGE_STRACE
|
||||
bool "strace"
|
||||
depends on !BR2_xtensa
|
||||
depends on !(BR2_xtensa || BR2_aarch64 || BR2_arc)
|
||||
help
|
||||
A useful diagnostic, instructional, and debugging tool.
|
||||
Allows you to track what system calls a program makes
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# sylpheed
|
||||
#
|
||||
#############################################################
|
||||
|
||||
SYLPHEED_VERSION_MAJOR = 3.2
|
||||
SYLPHEED_VERSION_MINOR = 0
|
||||
SYLPHEED_VERSION = $(SYLPHEED_VERSION_MAJOR).$(SYLPHEED_VERSION_MINOR)
|
||||
@@ -10,9 +11,7 @@ SYLPHEED_SOURCE = sylpheed-$(SYLPHEED_VERSION).tar.bz2
|
||||
SYLPHEED_SITE = http://sylpheed.sraoss.jp/sylpheed/v$(SYLPHEED_VERSION_MAJOR)
|
||||
SYLPHEED_LICENSE = GPLv2+ (executables), LGPLv2.1+ (library, attachment plugin)
|
||||
SYLPHEED_LICENSE_FILES = COPYING COPYING.LIB
|
||||
|
||||
SYLPHEED_CONF_OPT = --disable-gtkspell
|
||||
|
||||
SYLPHEED_CONF_OPT = --disable-gtkspell --disable-gpgme
|
||||
SYLPHEED_DEPENDENCIES = host-pkgconf libgtk2
|
||||
|
||||
# Remove the -I$(includedir) from the Makefiles
|
||||
|
||||
40
package/wvstreams/wvstreams-0004-build-fixes.patch
Normal file
40
package/wvstreams/wvstreams-0004-build-fixes.patch
Normal file
@@ -0,0 +1,40 @@
|
||||
Add missing includes for proper build on Linux/glibc
|
||||
|
||||
The current wvstreams code doesn't build on Linux/glibc, with error
|
||||
about chmod() not being available (for wvunixdgsocket.cc) or umask()
|
||||
not being available (for wvatomicfile.cc). Those errors turn out to be
|
||||
missing includes. Those includes were in fact already done, but
|
||||
conditionally for MacOS. We make them unconditional (it probably
|
||||
breaks other platforms, but since Buildroot is Linux only, we don't
|
||||
care).
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
|
||||
Index: b/ipstreams/wvunixdgsocket.cc
|
||||
===================================================================
|
||||
--- a/ipstreams/wvunixdgsocket.cc
|
||||
+++ b/ipstreams/wvunixdgsocket.cc
|
||||
@@ -1,8 +1,6 @@
|
||||
#include "wvunixdgsocket.h"
|
||||
-#ifdef MACOS
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
-#endif
|
||||
|
||||
WvUnixDGSocket::WvUnixDGSocket(WvStringParm filename, bool _server, int perms)
|
||||
: socketfile(filename)
|
||||
Index: b/streams/wvatomicfile.cc
|
||||
===================================================================
|
||||
--- a/streams/wvatomicfile.cc
|
||||
+++ b/streams/wvatomicfile.cc
|
||||
@@ -10,10 +10,7 @@
|
||||
#include "wvatomicfile.h"
|
||||
#include "wvfileutils.h"
|
||||
#include "wvstrutils.h"
|
||||
-
|
||||
-#ifdef MACOS
|
||||
#include <sys/stat.h>
|
||||
-#endif
|
||||
|
||||
WvAtomicFile::WvAtomicFile(WvStringParm filename, int flags, mode_t create_mode)
|
||||
: tmp_file(WvString::null)
|
||||
25
package/wvstreams/wvstreams-0005-getuid.patch
Normal file
25
package/wvstreams/wvstreams-0005-getuid.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
[PATCH] wvuid.cc: getuid needs sys/types.h + unistd.h
|
||||
|
||||
Otherwise the build fails with:
|
||||
|
||||
utils/wvuid.cc: In function 'wvuid_t wvgetuid()':
|
||||
utils/wvuid.cc:63:19: error: 'getuid' was not declared in this scope
|
||||
|
||||
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||
---
|
||||
utils/wvuid.cc | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
Index: wvstreams-4.6.1/utils/wvuid.cc
|
||||
===================================================================
|
||||
--- wvstreams-4.6.1.orig/utils/wvuid.cc
|
||||
+++ wvstreams-4.6.1/utils/wvuid.cc
|
||||
@@ -33,6 +33,8 @@
|
||||
|
||||
#else // not WIN32
|
||||
|
||||
+#include <unistd.h>
|
||||
+#include <sys/types.h>
|
||||
|
||||
WvString wv_username_from_uid(wvuid_t uid)
|
||||
{
|
||||
@@ -18,7 +18,11 @@ WVSTREAMS_MAKE = $(MAKE1)
|
||||
# Needed to work around problem with wvassert.h
|
||||
WVSTREAMS_CONF_OPT += CPPFLAGS=-DNDEBUG
|
||||
|
||||
WVSTREAMS_CONF_OPT += --with-openssl --with-zlib --without-pam
|
||||
WVSTREAMS_CONF_OPT += \
|
||||
--with-openssl \
|
||||
--with-zlib \
|
||||
--without-pam \
|
||||
--disable-warnings
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DBUS),y)
|
||||
WVSTREAMS_DEPENDENCIES += dbus
|
||||
|
||||
@@ -103,6 +103,7 @@ if BR2_PACKAGE_XORG7
|
||||
source package/x11r7/xapp_xgamma/Config.in
|
||||
source package/x11r7/xapp_xgc/Config.in
|
||||
source package/x11r7/xapp_xhost/Config.in
|
||||
source package/x11r7/xapp_xinit/Config.in
|
||||
source package/x11r7/xapp_xinput/Config.in
|
||||
source package/x11r7/xapp_xinput-calibrator/Config.in
|
||||
source package/x11r7/xapp_xkbcomp/Config.in
|
||||
|
||||
@@ -6,6 +6,8 @@
|
||||
LIBXCB_VERSION = 1.8.1
|
||||
LIBXCB_SOURCE = libxcb-$(LIBXCB_VERSION).tar.bz2
|
||||
LIBXCB_SITE = http://xcb.freedesktop.org/dist/
|
||||
LIBXCB_LICENSE = MIT
|
||||
LIBXCB_LICENSE_FILES = COPYING
|
||||
|
||||
LIBXCB_INSTALL_STAGING = YES
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
# Source included in Buildroot
|
||||
MCOOKIE_SOURCE =
|
||||
MCOOKIE_LICENSE = Public Domain
|
||||
|
||||
define MCOOKIE_EXTRACT_CMDS
|
||||
cp package/x11r7/mcookie/mcookie.c $(@D)/
|
||||
|
||||
@@ -7,6 +7,9 @@
|
||||
MESA3D_VERSION = 7.10.3
|
||||
MESA3D_SOURCE = MesaLib-$(MESA3D_VERSION).tar.gz
|
||||
MESA3D_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION)
|
||||
MESA3D_LICENSE = MIT, SGI, Khronos
|
||||
MESA3D_LICENSE_FILES = docs/license.html
|
||||
|
||||
MESA3D_AUTORECONF = YES
|
||||
MESA3D_INSTALL_STAGING = YES
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_APPRES_VERSION = 1.0.1
|
||||
XAPP_APPRES_SOURCE = appres-$(XAPP_APPRES_VERSION).tar.bz2
|
||||
XAPP_APPRES_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_APPRES_LICENSE = MIT
|
||||
XAPP_APPRES_LICENSE_FILES = COPYING
|
||||
XAPP_APPRES_DEPENDENCIES = xlib_libX11 xlib_libXt
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_BDFTOPCF_VERSION = 1.0.3
|
||||
XAPP_BDFTOPCF_SOURCE = bdftopcf-$(XAPP_BDFTOPCF_VERSION).tar.bz2
|
||||
XAPP_BDFTOPCF_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_BDFTOPCF_LICENSE = MIT
|
||||
XAPP_BDFTOPCF_LICENSE_FILES = COPYING
|
||||
XAPP_BDFTOPCF_DEPENDENCIES = xlib_libXfont
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_BEFORELIGHT_VERSION = 1.0.2
|
||||
XAPP_BEFORELIGHT_SOURCE = beforelight-$(XAPP_BEFORELIGHT_VERSION).tar.bz2
|
||||
XAPP_BEFORELIGHT_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_BEFORELIGHT_LICENSE = MIT
|
||||
XAPP_BEFORELIGHT_LICENSE_FILES = COPYING
|
||||
XAPP_BEFORELIGHT_DEPENDENCIES = xlib_libX11 xlib_libXScrnSaver xlib_libXaw xlib_libXt
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_BITMAP_VERSION = 1.0.6
|
||||
XAPP_BITMAP_SOURCE = bitmap-$(XAPP_BITMAP_VERSION).tar.bz2
|
||||
XAPP_BITMAP_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_BITMAP_LICENSE = MIT
|
||||
XAPP_BITMAP_LICENSE_FILES = COPYING
|
||||
XAPP_BITMAP_DEPENDENCIES = xlib_libX11 xlib_libXaw xlib_libXmu xdata_xbitmaps
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_EDITRES_VERSION = 1.0.5
|
||||
XAPP_EDITRES_SOURCE = editres-$(XAPP_EDITRES_VERSION).tar.bz2
|
||||
XAPP_EDITRES_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_EDITRES_LICENSE = MIT
|
||||
XAPP_EDITRES_LICENSE_FILES = COPYING
|
||||
XAPP_EDITRES_DEPENDENCIES = xlib_libX11 xlib_libXaw xlib_libXmu xlib_libXt
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_FONTTOSFNT_VERSION = 1.0.3
|
||||
XAPP_FONTTOSFNT_SOURCE = fonttosfnt-$(XAPP_FONTTOSFNT_VERSION).tar.bz2
|
||||
XAPP_FONTTOSFNT_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_FONTTOSFNT_LICENSE = MIT
|
||||
XAPP_FONTTOSFNT_LICENSE_FILES = COPYING
|
||||
XAPP_FONTTOSFNT_DEPENDENCIES = freetype xlib_libX11 xlib_libfontenc
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_FSLSFONTS_VERSION = 1.0.1
|
||||
XAPP_FSLSFONTS_SOURCE = fslsfonts-$(XAPP_FSLSFONTS_VERSION).tar.bz2
|
||||
XAPP_FSLSFONTS_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_FSLSFONTS_LICENSE = MIT
|
||||
XAPP_FSLSFONTS_LICENSE_FILES = COPYING
|
||||
XAPP_FSLSFONTS_DEPENDENCIES = xlib_libFS xlib_libX11
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_FSTOBDF_VERSION = 1.0.2
|
||||
XAPP_FSTOBDF_SOURCE = fstobdf-$(XAPP_FSTOBDF_VERSION).tar.bz2
|
||||
XAPP_FSTOBDF_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_FSTOBDF_LICENSE = MIT
|
||||
XAPP_FSTOBDF_LICENSE_FILES = COPYING
|
||||
XAPP_FSTOBDF_DEPENDENCIES = xlib_libFS xlib_libX11
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_ICEAUTH_VERSION = 1.0.5
|
||||
XAPP_ICEAUTH_SOURCE = iceauth-$(XAPP_ICEAUTH_VERSION).tar.bz2
|
||||
XAPP_ICEAUTH_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_ICEAUTH_LICENSE = MIT
|
||||
XAPP_ICEAUTH_LICENSE_FILES = COPYING
|
||||
XAPP_ICEAUTH_DEPENDENCIES = xlib_libICE xlib_libX11
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_ICO_VERSION = 1.0.2
|
||||
XAPP_ICO_SOURCE = ico-$(XAPP_ICO_VERSION).tar.bz2
|
||||
XAPP_ICO_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_ICO_LICENSE = MIT
|
||||
XAPP_ICO_LICENSE_FILES = COPYING
|
||||
XAPP_ICO_DEPENDENCIES = xlib_libX11
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_LISTRES_VERSION = 1.0.3
|
||||
XAPP_LISTRES_SOURCE = listres-$(XAPP_LISTRES_VERSION).tar.bz2
|
||||
XAPP_LISTRES_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_LISTRES_LICENSE = MIT
|
||||
XAPP_LISTRES_LICENSE_FILES = COPYING
|
||||
XAPP_LISTRES_DEPENDENCIES = xlib_libX11 xlib_libXaw xlib_libXmu xlib_libXt
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_LUIT_VERSION = 1.1.1
|
||||
XAPP_LUIT_SOURCE = luit-$(XAPP_LUIT_VERSION).tar.bz2
|
||||
XAPP_LUIT_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_LUIT_LICENSE = MIT
|
||||
XAPP_LUIT_LICENSE_FILES = COPYING
|
||||
XAPP_LUIT_DEPENDENCIES = xlib_libX11 xlib_libfontenc
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_MKFONTDIR_VERSION = 1.0.7
|
||||
XAPP_MKFONTDIR_SOURCE = mkfontdir-$(XAPP_MKFONTDIR_VERSION).tar.bz2
|
||||
XAPP_MKFONTDIR_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_MKFONTDIR_LICENSE = MIT
|
||||
XAPP_MKFONTDIR_LICENSE_FILES = COPYING
|
||||
XAPP_MKFONTDIR_DEPENDENCIES = xapp_mkfontscale
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_MKFONTSCALE_VERSION = 1.1.0
|
||||
XAPP_MKFONTSCALE_SOURCE = mkfontscale-$(XAPP_MKFONTSCALE_VERSION).tar.bz2
|
||||
XAPP_MKFONTSCALE_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_MKFONTSCALE_LICENSE = MIT
|
||||
XAPP_MKFONTSCALE_LICENSE_FILES = COPYING
|
||||
XAPP_MKFONTSCALE_DEPENDENCIES = zlib freetype xlib_libfontenc xproto_xproto
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_OCLOCK_VERSION = 1.0.1
|
||||
XAPP_OCLOCK_SOURCE = oclock-$(XAPP_OCLOCK_VERSION).tar.bz2
|
||||
XAPP_OCLOCK_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_OCLOCK_LICENSE = MIT
|
||||
XAPP_OCLOCK_LICENSE_FILES = COPYING
|
||||
XAPP_OCLOCK_DEPENDENCIES = xlib_libX11 xlib_libXext xlib_libXmu
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
XAPP_RGB_VERSION = 1.0.1
|
||||
XAPP_RGB_SOURCE = rgb-$(XAPP_RGB_VERSION).tar.bz2
|
||||
XAPP_RGB_SITE = http://xorg.freedesktop.org/releases/individual/app
|
||||
XAPP_RGB_LICENSE = MIT
|
||||
XAPP_RGB_LICENSE_FILES = COPYING
|
||||
XAPP_RGB_DEPENDENCIES = xproto_xproto
|
||||
|
||||
$(eval $(autotools-package))
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user