fmc: added powerpc e6500 support
PATCH v2 1/2 fmc: added powerpc e6500 support
--
v1 -> v2
package/fmc/fmc.mk
- Added missing sed of Makefile to set PLATFORM
(Suggested by Thomas)
package/fmc/Config.in
- Removed extra space in powerpc64 if
- Appended to MAKE_OPTS instead of creating new variable
--- package/fmc/Config.in | 6 +++--- package/fmc/fmc.mk | 6 ++++++ 2 files changed, 9 insertions(+), 3 deletions(-)
package/fmc/Config.in +3 -3
@@ -1,14 +1,14 @@ comment "fmc needs a toolchain w/ C++" - depends on BR2_powerpc_e500mc + depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 depends on !BR2_INSTALL_LIBSTDCPP comment "fmc needs a Linux kernel to be built" - depends on BR2_powerpc_e500mc + depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 depends on !BR2_LINUX_KERNEL config BR2_PACKAGE_FMC bool "fmc" - depends on BR2_powerpc_e500mc + depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 depends on BR2_INSTALL_LIBSTDCPP depends on BR2_LINUX_KERNEL # fmlib select BR2_PACKAGE_TCLAP
package/fmc/fmc.mk +6 -0
@@ -1,3 +1,4 @@ + ################################################################################ # # fmc
@@ -18,7 +19,12 @@ FMC_MAKE_OPTS = \ 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 + define FMC_BUILD_CMDS + $(SED) "s:P4080:$(FMLIB_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
Signature · 1 line
1.9.1
PATCH v2 2/2 fmlib: add powerpc e6500 support
--
v1 -> v2
package/fmlib/fmlib.mk
- Added missing sed of Makefile to set the PLATFORM
(Suggested by Thomas)
package/fmlib/Config.in
- Newlines
- Have kconfig handle selection for ARCHTYPE and PLATFORM
- Removed default choice for QORIQ family selectionpackage/fmlib/fmlib.mk
- Use new ARCHTYPE and PLATFORM instead of conditional selection
--- package/fmlib/Config.in | 38 ++++++++++++++++++++++++++++++++++++-- package/fmlib/fmlib.mk | 6 ++++++ 2 files changed, 42 insertions(+), 2 deletions(-)
package/fmlib/Config.in +36 -2
@@ -1,10 +1,10 @@ comment "fmlib needs a Linux kernel to be built" - depends on BR2_powerpc_e500mc + depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 depends on !BR2_LINUX_KERNEL config BR2_PACKAGE_FMLIB bool "fmlib" - depends on BR2_powerpc_e500mc + depends on BR2_powerpc_e500mc || BR2_powerpc_e6500 depends on BR2_LINUX_KERNEL help The Frame Manager library provides Freescale PowerPC platforms an
@@ -13,3 +13,37 @@ config BR2_PACKAGE_FMLIB parameters and PCD (parse - classify - distribute) rules. http://git.freescale.com/git/cgit.cgi/ppc/sdk/fmlib.git/tree/README + +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 + +endchoice + +config BR2_PACKAGE_FMLIB_ARCHTYPE + string + default "e500mc" if BR2_powerpc_e500mc + default "ppc64e6500" if BR2_powerpc_e6500 && BR2_powerpc64 + default "ppc32e6500" if BR2_powerpc_e6500 && BR2_powerpc + +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 + +endif
package/fmlib/fmlib.mk +6 -0
@@ -25,11 +25,17 @@ ifeq ($(BR2_powerpc_e500mc),y) FMLIB_ARCHTYPE = ppce500mc endif +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 -f $(FMLIB_MAKE_ENV) $(MAKE) $(FMLIB_MAKE_OPTS) -C $(@D) install-libfm-$(FMLIB_ARCHTYPE) endef
Signature · 1 line
1.9.1
PATCH v2 2/2 fmlib: add powerpc e6500 support
Hello,
Quoted 2 lines · Matt Weber
Signed-off-by Matt Weber <[email protected]>Signed-off-by Ronak Desai <[email protected]>
Why is this patch 2/2, when it is in fact a dependency of patch 1/2 ? Patch 1/2 uses FMLIB_PLATFORM, which doesn't exist until patch 2/2 is merged.
package/fmlib/Config.in config BR2_PACKAGE_FMLIB · line 19
Quoted 3 lines
package/fmlib/Config.in +3
-0+if BR2_PACKAGE_FMLIB +choice + prompt "QORIQ Target Family"
The correct spelling is QorIQ according to Freescale's website.
package/fmlib/fmlib.mk ifeq ($(BR2_powerpc_e500mc),y) · line 25
Quoted 6 lines
package/fmlib/fmlib.mk +0
-0@@ -25,11 +25,17 @@ ifeq ($(BR2_powerpc_e500mc),y) FMLIB_ARCHTYPE = ppce500mc
So you're keeping the old definition of FMLIB_ARCHTYPE...
package/fmlib/fmlib.mk ifeq ($(BR2_powerpc_e500mc),y) · line 28
Quoted 3 lines
package/fmlib/fmlib.mk +1
-0endif +FMLIB_ARCHTYPE = $(call qstrip,$(BR2_PACKAGE_FMLIB_ARCHTYPE))
... and defining it again.
I've merged, after fixing those issues.
Thanks,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/2 fmc: added powerpc e6500 support
In reply to Matt WeberHello,
package/fmc/fmc.mk FMC_MAKE_OPTS = \ · line 23
Quoted 6 lines · Matt Weber
package/fmc/fmc.mk +2
-0@@ -18,7 +19,12 @@ FMC_MAKE_OPTS = \ LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \ TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include" +ifeq ($(BR2_powerpc64),y) + FMC_MAKE_OPTS += M64BIT=1
We don't indent such definitions, so I've removed the tab here.
package/fmc/fmc.mk FMC_MAKE_OPTS = \ · line 27
Quoted 4 lines
package/fmc/fmc.mk +3
-0+endif + define FMC_BUILD_CMDS + $(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/source/Makefile
I don't like when accessing variables defined by other packages, so I've instead defined FMC_PLATFORM, which re-calculates the value from BR2_PACKAGE_FMLIB_PLATFORM.
Applied with those two minor things changed.
Don't hesitate to make a build test again to make sure everything is still working fine.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/2 fmc: added powerpc e6500 support
Quoted 23 lines · Thomas Petazzoni
Hello,
package/fmc/fmc.mk FMC_MAKE_OPTS = \ · line 23
Quoted 6 lines · Matt Weber
package/fmc/fmc.mk +2
-0@@ -18,7 +19,12 @@ FMC_MAKE_OPTS = \ LIBXML2_HEADER_PATH="$(STAGING_DIR)/usr/include/libxml2" \ TCLAP_HEADER_PATH="$(STAGING_DIR)/usr/include" +ifeq ($(BR2_powerpc64),y) + FMC_MAKE_OPTS += M64BIT=1We don't indent such definitions, so I've removed the tab here.
package/fmc/fmc.mk FMC_MAKE_OPTS = \ · line 27
Quoted 4 lines
package/fmc/fmc.mk +3
-0+endif + define FMC_BUILD_CMDS + $(SED) "s:P4080:$(FMLIB_PLATFORM):g" $(@D)/source/MakefileI don't like when accessing variables defined by other packages, so I've instead defined
FMC_PLATFORM, which re-calculates the value fromBR2_PACKAGE_FMLIB_PLATFORM.
Quoted 6 lines
Applied with those two minor things changed.
Don't hesitate to make a build test again to make sure everything is still working fine.
Thanks!
I appreciate the feedback!
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20160613/bf23f390/attachment.html>