initial buildroot for linux 5.15

This commit is contained in:
Huan.Feng
2021-12-06 14:12:13 +08:00
parent d7767d594e
commit 7b6fc358fa
12736 changed files with 508822 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
Usee $(CC) to enable cross compiling and link to the right ncurses library.
Signed-off-by: Qais Yousef <qais.yousef@imgtec.com>
--- latencytop-0.5/Makefile.old 2012-04-18 11:59:39.748084334 +0100
+++ latencytop-0.5/Makefile 2012-04-18 12:00:08.659112340 +0100
@@ -4,7 +4,7 @@
DESTDIR =
SBINDIR = /usr/sbin
XCFLAGS = -W -g `pkg-config --cflags glib-2.0` -D_FORTIFY_SOURCE=2 -Wno-sign-compare
-LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncursesw
+LDF = -Wl,--as-needed `pkg-config --libs glib-2.0` -lncurses
OBJS= latencytop.o text_display.o translate.o fsync.o
@@ -26,10 +26,10 @@
# We write explicity this "implicit rule"
%.o : %.c
- gcc -c $(CFLAGS) $(XCFLAGS) $< -o $@
+ $(CC) -c $(CFLAGS) $(XCFLAGS) $< -o $@
latencytop: $(OBJS) latencytop.h Makefile
- gcc $(CFLAGS) $(OBJS) $(LDF) -o latencytop
+ $(CC) $(CFLAGS) $(OBJS) $(LDF) -o latencytop
clean:
rm -f *~ latencytop DEADJOE *.o
+26
View File
@@ -0,0 +1,26 @@
config BR2_PACKAGE_LATENCYTOP
bool "latencytop"
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
select BR2_PACKAGE_NCURSES
select BR2_PACKAGE_LIBGLIB2
help
There are many types and causes of latency. LatencyTOP
focuses on the type of latency that causes skips in audio,
stutters in your desktop experience or that overloads your
server (while you have plenty of CPU power left).
LatencyTOP focuses on the cases where the applications want
to run and execute useful code, but there's some resource
that's not currently available (and the kernel then blocks
the process). This is done both on a system level and on a
per process level, so that you can see what's happening to
the system, and which process is suffering and/or causing
the delays.
http://www.latencytop.org
comment "latencytop needs a toolchain w/ wchar, threads"
depends on BR2_USE_MMU
depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+3
View File
@@ -0,0 +1,3 @@
# locally computed
sha256 9e7f72fbea7bd918e71212a1eabaad8488d2c602205d2e3c95d62cd57e9203ef latencytop-0.5.tar.gz
sha256 34d1db30ab21eaedb2c191b2787632a960090a0c63da9f5b481d84b23b98c438 latencytop.c
+23
View File
@@ -0,0 +1,23 @@
################################################################################
#
# latencytop
#
################################################################################
LATENCYTOP_VERSION = 0.5
LATENCYTOP_SITE = http://www.latencytop.org/download
LATENCYTOP_DEPENDENCIES = libglib2 ncurses
LATENCYTOP_LICENSE = GPL-2.0
LATENCYTOP_LICENSE_FILES = latencytop.c
# NOTE: GTK is heavy weight, we intentionally build the text (ncurses)
# version only
define LATENCYTOP_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) HAS_GTK_GUI=
endef
define LATENCYTOP_INSTALL_TARGET_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) install -C $(@D) DESTDIR=$(TARGET_DIR) HAS_GTK_GUI=
endef
$(eval $(generic-package))