Remove useless recipes
devmem2: recipe in meta-openembedded vs static C file gettext: 0.19.8.1 in meta-openembedded vs 0.19.7 keyutils: not used libxcrypt: useless dependency
This commit is contained in:
parent
4123626a3d
commit
44701bdfdf
|
|
@ -1,22 +0,0 @@
|
||||||
SUMMARY = "Memory access tool"
|
|
||||||
DESCRIPTION = "Development tool to access memory addresses via /dev/mem."
|
|
||||||
AUTHOR = "Jan-Derk Bakker (jdb@lartmaker.nl)"
|
|
||||||
HOMEPAGE = "http://www.lartmaker.nl/lartware/port/devmem2.c"
|
|
||||||
|
|
||||||
SECTION = "developement"
|
|
||||||
LICENSE = "GPLv2+"
|
|
||||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
|
||||||
PR = "r0"
|
|
||||||
|
|
||||||
SRC_URI = "file://devmem2.c"
|
|
||||||
|
|
||||||
S = "${WORKDIR}"
|
|
||||||
|
|
||||||
do_compile() {
|
|
||||||
${CC} devmem2.c -o devmem2
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install () {
|
|
||||||
install -d ${D}${bindir}
|
|
||||||
install -m 0755 devmem2 ${D}${bindir}
|
|
||||||
}
|
|
||||||
|
|
@ -1,132 +0,0 @@
|
||||||
/*
|
|
||||||
* devmem2.c: Simple program to read/write from/to any location in memory.
|
|
||||||
*
|
|
||||||
* Copyright (C) 2000, Jan-Derk Bakker (J.D.Bakker@its.tudelft.nl)
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* This software has been developed for the LART computing board
|
|
||||||
* (http://www.lart.tudelft.nl/). The development has been sponsored by
|
|
||||||
* the Mobile MultiMedia Communications (http://www.mmc.tudelft.nl/)
|
|
||||||
* and Ubiquitous Communications (http://www.ubicom.tudelft.nl/)
|
|
||||||
* projects.
|
|
||||||
*
|
|
||||||
* The author can be reached at:
|
|
||||||
*
|
|
||||||
* Jan-Derk Bakker
|
|
||||||
* Information and Communication Theory Group
|
|
||||||
* Faculty of Information Technology and Systems
|
|
||||||
* Delft University of Technology
|
|
||||||
* P.O. Box 5031
|
|
||||||
* 2600 GA Delft
|
|
||||||
* The Netherlands
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <unistd.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <errno.h>
|
|
||||||
#include <signal.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <termios.h>
|
|
||||||
#include <sys/types.h>
|
|
||||||
#include <sys/mman.h>
|
|
||||||
|
|
||||||
#define FATAL do { fprintf(stderr, "Error at line %d, file %s (%d) [%s]\n", \
|
|
||||||
__LINE__, __FILE__, errno, strerror(errno)); exit(1); } while(0)
|
|
||||||
|
|
||||||
#define MAP_SIZE 4096UL
|
|
||||||
#define MAP_MASK (MAP_SIZE - 1)
|
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
|
||||||
int fd;
|
|
||||||
void *map_base, *virt_addr;
|
|
||||||
unsigned long read_result, writeval;
|
|
||||||
off_t target;
|
|
||||||
int access_type = 'w';
|
|
||||||
|
|
||||||
if(argc < 2) {
|
|
||||||
fprintf(stderr, "\nUsage:\t%s { address } [ type [ data ] ]\n"
|
|
||||||
"\taddress : memory address to act upon\n"
|
|
||||||
"\ttype : access operation type : [b]yte, [h]alfword, [w]ord\n"
|
|
||||||
"\tdata : data to be written\n\n",
|
|
||||||
argv[0]);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
target = strtoul(argv[1], 0, 0);
|
|
||||||
|
|
||||||
if(argc > 2)
|
|
||||||
access_type = tolower(argv[2][0]);
|
|
||||||
|
|
||||||
|
|
||||||
if((fd = open("/dev/mem", O_RDWR | O_SYNC)) == -1) FATAL;
|
|
||||||
printf("/dev/mem opened.\n");
|
|
||||||
fflush(stdout);
|
|
||||||
|
|
||||||
/* Map one page */
|
|
||||||
map_base = mmap(0, MAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, target & ~MAP_MASK);
|
|
||||||
if(map_base == (void *) -1) FATAL;
|
|
||||||
printf("Memory mapped at address %p.\n", map_base);
|
|
||||||
fflush(stdout);
|
|
||||||
|
|
||||||
virt_addr = map_base + (target & MAP_MASK);
|
|
||||||
switch(access_type) {
|
|
||||||
case 'b':
|
|
||||||
read_result = *((unsigned char *) virt_addr);
|
|
||||||
break;
|
|
||||||
case 'h':
|
|
||||||
read_result = *((unsigned short *) virt_addr);
|
|
||||||
break;
|
|
||||||
case 'w':
|
|
||||||
read_result = *((unsigned long *) virt_addr);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
fprintf(stderr, "Illegal data type '%c'.\n", access_type);
|
|
||||||
exit(2);
|
|
||||||
}
|
|
||||||
printf("Value at address 0x%lX (%p): 0x%lX\n", target, virt_addr, read_result);
|
|
||||||
fflush(stdout);
|
|
||||||
|
|
||||||
if(argc > 3) {
|
|
||||||
writeval = strtoul(argv[3], 0, 0);
|
|
||||||
switch(access_type) {
|
|
||||||
case 'b':
|
|
||||||
*((unsigned char *) virt_addr) = writeval;
|
|
||||||
read_result = *((unsigned char *) virt_addr);
|
|
||||||
break;
|
|
||||||
case 'h':
|
|
||||||
*((unsigned short *) virt_addr) = writeval;
|
|
||||||
read_result = *((unsigned short *) virt_addr);
|
|
||||||
break;
|
|
||||||
case 'w':
|
|
||||||
*((unsigned long *) virt_addr) = writeval;
|
|
||||||
read_result = *((unsigned long *) virt_addr);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
printf("Written 0x%lX; readback 0x%lX\n", writeval, read_result);
|
|
||||||
fflush(stdout);
|
|
||||||
}
|
|
||||||
|
|
||||||
if(munmap(map_base, MAP_SIZE) == -1) FATAL;
|
|
||||||
close(fd);
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,23 +0,0 @@
|
||||||
instal libgettextlib.a before removing it
|
|
||||||
|
|
||||||
In a multiple job build, Makefile can simultaneously
|
|
||||||
be installing and removing libgettextlib.a. We serialize
|
|
||||||
the operations.
|
|
||||||
|
|
||||||
Upstream-Status: Pending
|
|
||||||
|
|
||||||
Signed-off-by: Joe Slater <jslater@windriver.com>
|
|
||||||
|
|
||||||
--- a/gettext-tools/gnulib-lib/Makefile.am
|
|
||||||
+++ b/gettext-tools/gnulib-lib/Makefile.am
|
|
||||||
@@ -57,6 +57,10 @@ endif
|
|
||||||
# Rules generated and collected by gnulib-tool.
|
|
||||||
include Makefile.gnulib
|
|
||||||
|
|
||||||
+# defined in Makefile.gnulib but missing this dependency
|
|
||||||
+#
|
|
||||||
+install-exec-clean: install-libLTLIBRARIES
|
|
||||||
+
|
|
||||||
# Which classes to export from the shared library.
|
|
||||||
MOOPPFLAGS += --dllexport=styled_ostream
|
|
||||||
|
|
||||||
|
|
@ -1,106 +0,0 @@
|
||||||
SUMMARY = "Utilities and libraries for producing multi-lingual messages"
|
|
||||||
DESCRIPTION = "GNU gettext is a set of tools that provides a framework to help other programs produce multi-lingual messages. These tools include a set of conventions about how programs should be written to support message catalogs, a directory and file naming organization for the message catalogs themselves, a runtime library supporting the retrieval of translated messages, and a few stand-alone programs to massage in various ways the sets of translatable and already translated strings."
|
|
||||||
HOMEPAGE = "http://www.gnu.org/software/gettext/gettext.html"
|
|
||||||
SECTION = "libs"
|
|
||||||
LICENSE = "GPLv3+ & LGPL-2.1+"
|
|
||||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
|
||||||
|
|
||||||
DEPENDS = "gettext-native virtual/libiconv expat"
|
|
||||||
DEPENDS_class-native = "gettext-minimal-native"
|
|
||||||
PROVIDES = "virtual/libintl virtual/gettext"
|
|
||||||
PROVIDES_class-native = "virtual/gettext-native"
|
|
||||||
RCONFLICTS_${PN} = "proxy-libintl"
|
|
||||||
SRC_URI = "${GNU_MIRROR}/gettext/gettext-${PV}.tar.gz \
|
|
||||||
file://parallel.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
PACKAGECONFIG[msgcat-curses] = "--with-libncurses-prefix=${STAGING_LIBDIR}/..,--disable-curses,ncurses,"
|
|
||||||
|
|
||||||
LDFLAGS_prepend_libc-uclibc = " -lrt -lpthread "
|
|
||||||
|
|
||||||
SRC_URI[md5sum] = "87c4ab267c4dce8a75db5d057bb3c92f"
|
|
||||||
SRC_URI[sha256sum] = "5386d2a40500295783c6a52121adcf42a25519e2d23675950619c9e69558c23f"
|
|
||||||
|
|
||||||
inherit autotools texinfo
|
|
||||||
|
|
||||||
EXTRA_OECONF += "--without-lispdir \
|
|
||||||
--disable-csharp \
|
|
||||||
--disable-libasprintf \
|
|
||||||
--disable-java \
|
|
||||||
--disable-native-java \
|
|
||||||
--disable-openmp \
|
|
||||||
--disable-acl \
|
|
||||||
--with-included-glib \
|
|
||||||
--without-emacs \
|
|
||||||
--without-cvs \
|
|
||||||
--without-git \
|
|
||||||
--with-included-libxml \
|
|
||||||
--with-included-libcroco \
|
|
||||||
--with-included-libunistring \
|
|
||||||
"
|
|
||||||
|
|
||||||
acpaths = '-I ${S}/gettext-runtime/m4 \
|
|
||||||
-I ${S}/gettext-tools/m4'
|
|
||||||
|
|
||||||
|
|
||||||
# these lack the .x behind the .so, but shouldn't be in the -dev package
|
|
||||||
# Otherwise you get the following results:
|
|
||||||
# 7.4M glibc/images/ep93xx/Angstrom-console-image-glibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz
|
|
||||||
# 25M uclibc/images/ep93xx/Angstrom-console-image-uclibc-ipk-2008.1-test-20080104-ep93xx.rootfs.tar.gz
|
|
||||||
# because gettext depends on gettext-dev, which pulls in more -dev packages:
|
|
||||||
# 15228 KiB /ep93xx/libstdc++-dev_4.2.2-r2_ep93xx.ipk
|
|
||||||
# 1300 KiB /ep93xx/uclibc-dev_0.9.29-r8_ep93xx.ipk
|
|
||||||
# 140 KiB /armv4t/gettext-dev_0.14.1-r6_armv4t.ipk
|
|
||||||
# 4 KiB /ep93xx/libgcc-s-dev_4.2.2-r2_ep93xx.ipk
|
|
||||||
|
|
||||||
PACKAGES =+ "libgettextlib libgettextsrc"
|
|
||||||
FILES_libgettextlib = "${libdir}/libgettextlib-*.so*"
|
|
||||||
FILES_libgettextsrc = "${libdir}/libgettextsrc-*.so*"
|
|
||||||
|
|
||||||
PACKAGES =+ "gettext-runtime gettext-runtime-dev gettext-runtime-doc"
|
|
||||||
|
|
||||||
FILES_${PN} += "${libdir}/${BPN}/*"
|
|
||||||
|
|
||||||
FILES_gettext-runtime = "${bindir}/gettext \
|
|
||||||
${bindir}/ngettext \
|
|
||||||
${bindir}/envsubst \
|
|
||||||
${bindir}/gettext.sh \
|
|
||||||
${libdir}/libasprintf.so* \
|
|
||||||
${libdir}/GNU.Gettext.dll \
|
|
||||||
"
|
|
||||||
FILES_gettext-runtime_append_libc-uclibc = " ${libdir}/libintl.so.* \
|
|
||||||
${libdir}/charset.alias \
|
|
||||||
"
|
|
||||||
FILES_gettext-runtime-dev += "${libdir}/libasprintf.a \
|
|
||||||
${includedir}/autosprintf.h \
|
|
||||||
"
|
|
||||||
FILES_gettext-runtime-dev_append_libc-uclibc = " ${libdir}/libintl.so \
|
|
||||||
${includedir}/libintl.h \
|
|
||||||
"
|
|
||||||
FILES_gettext-runtime-doc = "${mandir}/man1/gettext.* \
|
|
||||||
${mandir}/man1/ngettext.* \
|
|
||||||
${mandir}/man1/envsubst.* \
|
|
||||||
${mandir}/man1/.* \
|
|
||||||
${mandir}/man3/* \
|
|
||||||
${docdir}/gettext/gettext.* \
|
|
||||||
${docdir}/gettext/ngettext.* \
|
|
||||||
${docdir}/gettext/envsubst.* \
|
|
||||||
${docdir}/gettext/*.3.html \
|
|
||||||
${datadir}/gettext/ABOUT-NLS \
|
|
||||||
${docdir}/gettext/csharpdoc/* \
|
|
||||||
${docdir}/libasprintf/autosprintf.html \
|
|
||||||
${infodir}/autosprintf.info \
|
|
||||||
"
|
|
||||||
|
|
||||||
do_install_append() {
|
|
||||||
rm -f ${D}${libdir}/preloadable_libintl.so
|
|
||||||
}
|
|
||||||
|
|
||||||
do_install_append_class-native () {
|
|
||||||
rm ${D}${datadir}/aclocal/*
|
|
||||||
rm ${D}${datadir}/gettext/config.rpath
|
|
||||||
rm ${D}${datadir}/gettext/po/Makefile.in.in
|
|
||||||
rm ${D}${datadir}/gettext/po/remove-potcdate.sin
|
|
||||||
}
|
|
||||||
|
|
||||||
BBCLASSEXTEND = "native nativesdk"
|
|
||||||
|
|
@ -1,26 +0,0 @@
|
||||||
SUMMARY = "Linux Key Management Utilities"
|
|
||||||
DESCRIPTION = "Keyutils is a set of utilities for managing the key retention \
|
|
||||||
facility in the kernel, which can be used by filesystems, block devices and \
|
|
||||||
more to gain and retain the authorization and encryption keys required to \
|
|
||||||
perform secure operations."
|
|
||||||
SECTION = "base"
|
|
||||||
LICENSE = "GPLv2"
|
|
||||||
LIC_FILES_CHKSUM = "file://LICENCE.GPL;md5=5f6e72824f5da505c1f4a7197f004b45"
|
|
||||||
|
|
||||||
PR = "r1"
|
|
||||||
|
|
||||||
SRCREV = "9209a0c8fd63afc59f644e078b40cec531409c30"
|
|
||||||
|
|
||||||
SRC_URI = "git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git;protocol=git \
|
|
||||||
file://0001-keyutils-Use-libdir-from-the-Yocto-environment.patch \
|
|
||||||
"
|
|
||||||
|
|
||||||
S = "${WORKDIR}/git"
|
|
||||||
|
|
||||||
inherit autotools-brokensep
|
|
||||||
|
|
||||||
INSTALL_FLAGS = "BINDIR=/usr/bin SBINDIR=/usr/sbin DESTDIR=${D} LIB_DIR=${libdir}"
|
|
||||||
|
|
||||||
do_install() {
|
|
||||||
cd ${S} && oe_runmake ${INSTALL_FLAGS} install
|
|
||||||
}
|
|
||||||
|
|
@ -1,69 +0,0 @@
|
||||||
From d8cfd44a27d0d87c6ff63014c765884b1f18646f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Clement Dransart <clement.dransart@awtce.be>
|
|
||||||
Date: Thu, 9 Jun 2016 11:08:00 +0200
|
|
||||||
Subject: [meta-ivi][PATCH] keyutils: Use libdir from the Yocto environment
|
|
||||||
|
|
||||||
Signed-off-by: Clement Dransart <clement.dransart@awtce.be>
|
|
||||||
---
|
|
||||||
Makefile | 30 ++++--------------------------
|
|
||||||
1 file changed, 4 insertions(+), 26 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/Makefile b/Makefile
|
|
||||||
index c904eaf..22b74ba 100644
|
|
||||||
--- a/Makefile
|
|
||||||
+++ b/Makefile
|
|
||||||
@@ -51,32 +51,11 @@ LIBNAME := libkeyutils.so.$(APIVERSION)
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
#
|
|
||||||
-# Guess at the appropriate lib directory and word size
|
|
||||||
+# Use libdir from the Yocto environment
|
|
||||||
#
|
|
||||||
###############################################################################
|
|
||||||
-ifeq ($(origin LIBDIR),undefined)
|
|
||||||
-LIBDIR := $(shell ldd /usr/bin/make | grep '\(/libc\)' | sed -e 's!.*\(/.*\)/libc[.].*!\1!')
|
|
||||||
-endif
|
|
||||||
-ifeq ($(origin USRLIBDIR),undefined)
|
|
||||||
-USRLIBDIR := $(patsubst /lib/%,/usr/lib/%,$(LIBDIR))
|
|
||||||
-endif
|
|
||||||
-BUILDFOR := $(shell file /usr/bin/make | sed -e 's!.*ELF \(32\|64\)-bit.*!\1!')-bit
|
|
||||||
-
|
|
||||||
-LNS := ln -sf
|
|
||||||
-
|
|
||||||
-ifeq ($(origin CFLAGS),undefined)
|
|
||||||
-ifeq ($(BUILDFOR),32-bit)
|
|
||||||
-CFLAGS += -m32
|
|
||||||
-LIBDIR := /lib
|
|
||||||
-USRLIBDIR := /usr/lib
|
|
||||||
-else
|
|
||||||
-ifeq ($(BUILDFOR),64-bit)
|
|
||||||
-CFLAGS += -m64
|
|
||||||
-LIBDIR := /lib64
|
|
||||||
-USRLIBDIR := /usr/lib64
|
|
||||||
-endif
|
|
||||||
-endif
|
|
||||||
-endif
|
|
||||||
+LIBDIR := $(libdir)
|
|
||||||
+USRLIBDIR := $(libdir)
|
|
||||||
|
|
||||||
###############################################################################
|
|
||||||
#
|
|
||||||
@@ -161,7 +140,7 @@ endif
|
|
||||||
$(INSTALL) -D $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME)
|
|
||||||
$(LNS) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
|
|
||||||
mkdir -p $(DESTDIR)$(USRLIBDIR)
|
|
||||||
- $(LNS) $(LIBDIR)/$(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
|
|
||||||
+ $(LNS) $(SONAME) $(DESTDIR)$(USRLIBDIR)/$(DEVELLIB)
|
|
||||||
$(INSTALL) -D keyctl $(DESTDIR)$(BINDIR)/keyctl
|
|
||||||
$(INSTALL) -D request-key $(DESTDIR)$(SBINDIR)/request-key
|
|
||||||
$(INSTALL) -D request-key-debug.sh $(DESTDIR)$(SHAREDIR)/request-key-debug.sh
|
|
||||||
@@ -271,6 +250,5 @@ show_vars:
|
|
||||||
@echo APIVERSION=$(APIVERSION)
|
|
||||||
@echo LIBDIR=$(LIBDIR)
|
|
||||||
@echo USRLIBDIR=$(USRLIBDIR)
|
|
||||||
- @echo BUILDFOR=$(BUILDFOR)
|
|
||||||
@echo SONAME=$(SONAME)
|
|
||||||
@echo LIBNAME=$(LIBNAME)
|
|
||||||
--
|
|
||||||
1.9.1
|
|
||||||
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
DEPENDS = "pkgconfig"
|
|
||||||
Loading…
Reference in New Issue