Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
Makefile: append the CFLAGS to existing ones
|
||||
|
||||
Allow the user to pass custom CFLAGS (eg. optimisation flags).
|
||||
|
||||
Do not use EXTRA_CFLAGS, append to existing CFLAGS with += (Arnout)
|
||||
|
||||
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
|
||||
Cc: Arnout Vandecappelle <arnout@mind.be>
|
||||
|
||||
---
|
||||
Patch not sent upstream.
|
||||
|
||||
Although not specific to buildroot, I am not sure this is the best
|
||||
way to handle user-supplied CFLAGS.
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 962f94eba661..bf6b317158cf 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -16,9 +16,10 @@ LOCAL_VERSION =
|
||||
CONFIG_LOCALVERSION =
|
||||
|
||||
CPPFLAGS = -I libfdt -I .
|
||||
-WARNINGS = -Werror -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
|
||||
+WARNINGS = -Wall -Wpointer-arith -Wcast-qual -Wnested-externs \
|
||||
-Wstrict-prototypes -Wmissing-prototypes -Wredundant-decls -Wshadow
|
||||
-CFLAGS = -g -Os -fPIC -Werror $(WARNINGS)
|
||||
+CFLAGS ?= -g -Os
|
||||
+CFLAGS += -fPIC $(WARNINGS)
|
||||
|
||||
BISON = bison
|
||||
LEX = flex
|
||||
37
deprecated/firmware/buildroot/package/dtc/Config.in
Normal file
37
deprecated/firmware/buildroot/package/dtc/Config.in
Normal file
@@ -0,0 +1,37 @@
|
||||
config BR2_PACKAGE_DTC
|
||||
bool "dtc (libfdt)"
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
The Device Tree Compiler, dtc, takes as input a device-tree in
|
||||
a given format and outputs a device-tree in another format.
|
||||
|
||||
Note that only the library is installed.
|
||||
If you want the programs, say 'y' here, and to "dtc programs", below.
|
||||
|
||||
https://git.kernel.org/cgit/utils/dtc/dtc.git
|
||||
|
||||
if BR2_PACKAGE_DTC
|
||||
|
||||
config BR2_PACKAGE_DTC_PROGRAMS
|
||||
bool "dtc programs"
|
||||
help
|
||||
Say 'y' here if you also want the programs on the target:
|
||||
- convert-dtsv0 convert from version 0 to version 1
|
||||
- dtc the device tree compiler
|
||||
- dtdiff compare two device trees (needs bash)
|
||||
- fdtdump print a readable version of a flat device tree
|
||||
- fdtget read values from device tree
|
||||
- fdtput write a property value to a device tree
|
||||
|
||||
Note: dtdiff requires bash, so if bash is not selected, dtdiff will
|
||||
be removed from the target file system. Enable bash if you
|
||||
need dtdiff on the target.
|
||||
|
||||
comment "dtdiff will not be installed: it requires bash"
|
||||
depends on BR2_PACKAGE_DTC_PROGRAMS
|
||||
depends on !BR2_PACKAGE_BASH
|
||||
|
||||
endif
|
||||
|
||||
comment "dtc needs a toolchain w/ dynamic library"
|
||||
depends on BR2_STATIC_LIBS
|
||||
9
deprecated/firmware/buildroot/package/dtc/Config.in.host
Normal file
9
deprecated/firmware/buildroot/package/dtc/Config.in.host
Normal file
@@ -0,0 +1,9 @@
|
||||
config BR2_PACKAGE_HOST_DTC
|
||||
bool "host dtc"
|
||||
help
|
||||
The Device Tree Compiler, dtc, takes as input a device-tree in
|
||||
a given format and outputs a device-tree in another format.
|
||||
|
||||
Install host tools: dtc, convert-dtsv0, fdtdump, fdtget and fdtput.
|
||||
|
||||
https://git.kernel.org/cgit/utils/dtc/dtc.git
|
||||
2
deprecated/firmware/buildroot/package/dtc/dtc.hash
Normal file
2
deprecated/firmware/buildroot/package/dtc/dtc.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# from https://www.kernel.org/pub/software/utils/dtc/sha256sums.asc
|
||||
sha256 77992ad8eac7b68f553d0ba58e5b51604ac803d126196c99e3ae38aaae28bb94 dtc-1.4.1.tar.xz
|
||||
57
deprecated/firmware/buildroot/package/dtc/dtc.mk
Normal file
57
deprecated/firmware/buildroot/package/dtc/dtc.mk
Normal file
@@ -0,0 +1,57 @@
|
||||
################################################################################
|
||||
#
|
||||
# dtc
|
||||
#
|
||||
################################################################################
|
||||
|
||||
DTC_VERSION = 1.4.1
|
||||
DTC_SOURCE = dtc-$(DTC_VERSION).tar.xz
|
||||
DTC_SITE = https://www.kernel.org/pub/software/utils/dtc
|
||||
DTC_LICENSE = GPLv2+/BSD-2c
|
||||
DTC_LICENSE_FILES = README.license GPL
|
||||
DTC_INSTALL_STAGING = YES
|
||||
DTC_DEPENDENCIES = host-bison host-flex
|
||||
|
||||
define DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
||||
rm -f $(TARGET_DIR)/usr/bin/dtdiff
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_DTC_PROGRAMS),y)
|
||||
|
||||
DTC_LICENSE += (for the library), GPLv2+ (for the executables)
|
||||
DTC_INSTALL_GOAL = install
|
||||
ifeq ($(BR2_PACKAGE_BASH),)
|
||||
DTC_POST_INSTALL_TARGET_HOOKS += DTC_POST_INSTALL_TARGET_RM_DTDIFF
|
||||
endif
|
||||
|
||||
else # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
||||
|
||||
DTC_INSTALL_GOAL = install-lib
|
||||
|
||||
endif # $(BR2_PACKAGE_DTC_PROGRAMS) != y
|
||||
|
||||
define DTC_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=/usr
|
||||
endef
|
||||
|
||||
# For staging, only the library is needed
|
||||
define DTC_INSTALL_STAGING_CMDS
|
||||
$(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) PREFIX=/usr install-lib \
|
||||
install-includes
|
||||
endef
|
||||
|
||||
define DTC_INSTALL_TARGET_CMDS
|
||||
$(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) PREFIX=/usr $(DTC_INSTALL_GOAL)
|
||||
endef
|
||||
|
||||
# host build
|
||||
define HOST_DTC_BUILD_CMDS
|
||||
$(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr
|
||||
endef
|
||||
|
||||
define HOST_DTC_INSTALL_CMDS
|
||||
$(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install-bin
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
$(eval $(host-generic-package))
|
||||
Reference in New Issue
Block a user