Initial Commit
- initial default booting image
This commit is contained in:
56
package/fmlib/Config.in
Normal file
56
package/fmlib/Config.in
Normal file
@@ -0,0 +1,56 @@
|
||||
comment "fmlib 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_FMLIB
|
||||
bool "fmlib"
|
||||
depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 || BR2_aarch64
|
||||
depends on BR2_LINUX_KERNEL
|
||||
help
|
||||
The Frame Manager library provides Freescale PowerPC platforms
|
||||
an API on top of the Frame Manager driver ioctl calls, that
|
||||
provides a user space application with a simple way to
|
||||
configure driver parameters and PCD (parse - classify -
|
||||
distribute) rules.
|
||||
|
||||
https://github.com/nxp-qoriq/fmlib
|
||||
|
||||
if BR2_PACKAGE_FMLIB
|
||||
choice
|
||||
prompt "QorIQ Target Family"
|
||||
help
|
||||
Select the family of QorIQ processor.
|
||||
|
||||
config BR2_FMLIB_QORIQ_FAMILY_P4080
|
||||
bool "p40xx"
|
||||
depends on BR2_powerpc_e500mc
|
||||
|
||||
config BR2_FMLIB_QORIQ_FAMILY_T4240
|
||||
bool "t42xx"
|
||||
depends on BR2_powerpc_e500mc
|
||||
|
||||
config BR2_FMLIB_QORIQ_FAMILY_T2080
|
||||
bool "t208x"
|
||||
depends on BR2_powerpc_e6500
|
||||
|
||||
config BR2_FMLIB_QORIQ_FAMILY_ARM
|
||||
bool "arm"
|
||||
depends on BR2_aarch64
|
||||
|
||||
endchoice
|
||||
|
||||
config BR2_PACKAGE_FMLIB_ARCHTYPE
|
||||
string
|
||||
default "ppce500mc" if BR2_powerpc_e500mc
|
||||
default "ppc64e6500" if BR2_powerpc_e6500 && BR2_powerpc64
|
||||
default "ppc32e6500" if BR2_powerpc_e6500 && BR2_powerpc
|
||||
default "arm" if BR2_aarch64
|
||||
|
||||
config BR2_PACKAGE_FMLIB_PLATFORM
|
||||
string
|
||||
default "P4080" if BR2_FMLIB_QORIQ_FAMILY_P4080
|
||||
default "T4240" if BR2_FMLIB_QORIQ_FAMILY_T4240
|
||||
default "FMAN_V3H" if BR2_FMLIB_QORIQ_FAMILY_T2080
|
||||
default "arm" if BR2_aarch64
|
||||
|
||||
endif
|
||||
3
package/fmlib/fmlib.hash
Normal file
3
package/fmlib/fmlib.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 a260289e73e6d6220ac8ce87301509a0e0bbb58b71ebda8dd0edc5808735f22d fmlib-lf-6.18.20-2.0.0.tar.gz
|
||||
sha256 5d7770fa9f70f0c6f0b4784bbca8401811259a4b1e03455dbd863ffd0d34d2ca LICENSE
|
||||
37
package/fmlib/fmlib.mk
Normal file
37
package/fmlib/fmlib.mk
Normal file
@@ -0,0 +1,37 @@
|
||||
################################################################################
|
||||
#
|
||||
# fmlib
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FMLIB_VERSION = lf-6.18.20-2.0.0
|
||||
FMLIB_SITE = $(call github,nxp-qoriq,fmlib,$(FMLIB_VERSION))
|
||||
FMLIB_LICENSE = BSD-3-Clause
|
||||
FMLIB_LICENSE_FILES = LICENSE
|
||||
FMLIB_DEPENDENCIES = linux
|
||||
FMLIB_INSTALL_STAGING = YES
|
||||
|
||||
# This package installs a static library only, so there's
|
||||
# nothing to install to the target
|
||||
FMLIB_INSTALL_TARGET = NO
|
||||
|
||||
FMLIB_MAKE_OPTS = \
|
||||
CC="$(TARGET_CC)" \
|
||||
CROSS_COMPILE="$(TARGET_CROSS)" \
|
||||
KERNEL_SRC="$(LINUX_DIR)" \
|
||||
PREFIX="$(STAGING_DIR)/usr"
|
||||
|
||||
FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
|
||||
FMLIB_PLATFORM = $(call qstrip,$(BR2_PACKAGE_FMLIB_PLATFORM))
|
||||
|
||||
define FMLIB_BUILD_CMDS
|
||||
$(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/Makefile
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) libfm-$(FMLIB_ARCHTYPE).a
|
||||
endef
|
||||
|
||||
define FMLIB_INSTALL_STAGING_CMDS
|
||||
$(RM) $(STAGING_DIR)/usr/lib/libfm.a
|
||||
$(TARGET_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE)
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user