Initial Commit

- initial default booting image
This commit is contained in:
2026-11-06 20:45:42 +01:00
commit b8783708ae
15201 changed files with 602532 additions and 0 deletions

27
package/fmc/Config.in Normal file
View File

@@ -0,0 +1,27 @@
comment "fmc needs a toolchain w/ C++"
depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 || BR2_aarch64
depends on !BR2_INSTALL_LIBSTDCPP
comment "fmc needs a Linux kernel to be built"
depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 || BR2_aarch64
depends on !BR2_LINUX_KERNEL
config BR2_PACKAGE_FMC
bool "fmc"
depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 || BR2_aarch64
depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_LINUX_KERNEL # fmlib
select BR2_PACKAGE_TCLAP
select BR2_PACKAGE_LIBXML2
select BR2_PACKAGE_FMLIB
help
The Frame Manager Configuration tool is Freescale PowerPC
platform software package whose primary purpose is converting
Parse-Classify-Police-Distribute (PCD) descriptions of network
packets flow into hardware configuration. The tool provides an
abstraction layer between the end customer's vision of the PCD
task definition and real hardware implementation.
See application note:
https://www.nxp.com/docs/en/application-note/AN4760.pdf
https://github.com/nxp-qoriq/fmc

3
package/fmc/fmc.hash Normal file
View File

@@ -0,0 +1,3 @@
# Locally calculated
sha256 07a8a4b9a847ebd10c288eb64ce270d76882a4e0188d525d933c968d854eb762 fmc-lf-6.18.20-2.0.0.tar.gz
sha256 f92862ceb95db5492f50a59d7c799c9395b714db88db92d11891dc0233e2ac42 LICENSE

39
package/fmc/fmc.mk Normal file
View File

@@ -0,0 +1,39 @@
################################################################################
#
# fmc
#
################################################################################
FMC_VERSION = lf-6.18.20-2.0.0
FMC_SITE = $(call github,nxp-qoriq,fmc,$(FMC_VERSION))
FMC_LICENSE = MIT
FMC_LICENSE_FILES = LICENSE
FMC_DEPENDENCIES = libxml2 tclap fmlib
FMC_MAKE_OPTS = \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
FMD_USPACE_HEADER_PATH="$(STAGING_DIR)/usr/include/fmd" \
FMD_USPACE_LIB_PATH="$(STAGING_DIR)/usr/lib" \
LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \
TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include"
ifeq ($(BR2_powerpc64),y)
FMC_MAKE_OPTS += M64BIT=1
endif
# fmc's platform is the same as fmlib's.
FMC_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
define FMC_BUILD_CMDS
$(SED) "s:LS1043:$(FMC_PLATFORM):g" $(@D)/source/Makefile
# The linking step has dependency issues so using MAKE1
$(TARGET_MAKE_ENV) $(MAKE1) $(FMC_MAKE_OPTS) -C $(@D)/source
endef
define FMC_INSTALL_TARGET_CMDS
$(INSTALL) -D -m 0755 $(@D)/source/fmc $(TARGET_DIR)/usr/sbin/fmc
cp -dpfr $(@D)/etc/fmc $(TARGET_DIR)/etc/
endef
$(eval $(generic-package))