{"id":609,"date":"2012-12-20T16:48:11","date_gmt":"2012-12-20T16:48:11","guid":{"rendered":"http:\/\/maydanoz.arved.priv.at\/blog\/?p=609"},"modified":"2017-01-04T22:23:09","modified_gmt":"2017-01-04T21:23:09","slug":"compiling_the_n","status":"publish","type":"post","link":"https:\/\/arved.priv.at\/weblog\/2012\/12\/20\/compiling_the_n\/","title":{"rendered":"Compiling the NXP Basic Function Library BFL on Linux"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.nxp.com\/products\/identification_and_security\/reader_ics\/contactless_reader_systems\/\">BfL<\/a> source of version 4.1\/2 does not offer a build system for Linux.<br \/>\nHere is an automake Makefile.am:<\/p>\n<pre>AUTOMAKE_OPTIONS = foreign\r\nAM_CFLAGS = -g -Wall\r\nAM_CPPFLAGS = -I$(top_srcdir)\/intfs\/IphcsBflI3P4AAct\/inc\/ \\\r\n-I$(top_srcdir)\/types \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflI3P4\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflIo\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflRegCtl\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflBal\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflAux\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflOpCtl\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflNfc\/inc\/ \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflIdMan\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflI3P3A\/inc \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflMfRd\/inc\/ \\\r\n-I$(top_srcdir)\/intfs\/IphcsBflPolAct\/inc\/ \\\r\n-D__int32_t_defined -D__int64_t_defined\r\nAM_CXXFLAGS = -DPHFL_BFL_CPP\r\nlib_LTLIBRARIES = libCBFL.la\r\nlibCBFL_la_SOURCES = \\\r\ncomps\/phcsBflI3P4AAct\/src\/phcsBflI3P4AAct.c \\\r\ncomps\/phcsBflOpCtl\/src\/phcsBflOpCtl_Hw1.c \\\r\ncomps\/phcsBflAux\/src\/phcsBflAux_Hw1.c \\\r\ncomps\/phcsBflIo\/src\/phcsBflIoHw1\/phcsBflIo_Hw1.c \\\r\ncomps\/phcsBflNfc\/src\/phcsBflNfc_Target.c \\\r\ncomps\/phcsBflNfc\/src\/phcsBflNfc_Initiator.c \\\r\ncomps\/phcsBflIdMan\/src\/phcsBflIdMan.c \\\r\ncomps\/phcsBflI3P3A\/src\/phcsBflI3P3A_Hw1.c \\\r\ncomps\/phcsBflBal\/src\/phcsBflBal_Hw1SerLin.c \\\r\ncomps\/phcsBflMfRd\/src\/phcsBflMfRd.c \\\r\ncomps\/phcsBflRegCtl\/src\/phcsBflRegCtlSer\/phcsBflRegCtl_SerHw1.c \\\r\ncomps\/phcsBflPolAct\/src\/phcsBflPolAct_Hw1.c \\\r\ncomps\/phcsBflI3P4\/src\/phcsBflI3P4_Pcd.c \\\r\ncomps\/phcsBflI3P4AAct\/src\/phcsBflI3P4AAct_Wrapper.cpp \\\r\ncomps\/phcsBflOpCtl\/src\/phcsBflOpCtl_Wrapper.cpp \\\r\ncomps\/phcsBflIo\/src\/phcsBflIo_Wrapper.cpp \\\r\ncomps\/phcsBflNfc\/src\/phcsBflNfc_TargetWrapper.cpp \\\r\ncomps\/phcsBflNfc\/src\/phcsBflNfc_InitiatorWrapper.cpp \\\r\ncomps\/phcsBflIdMan\/src\/phcsBflIdMan_Wrapper.cpp \\\r\ncomps\/phcsBflI3P3A\/src\/phcsBflI3P3A_Wrapper.cpp \\\r\ncomps\/phcsBflBal\/src\/phcsBflBal_Wrapper.cpp \\\r\ncomps\/phcsBflMfRd\/src\/phcsBflMfRd_Wrapper.cpp \\\r\ncomps\/phcsBflRegCtl\/src\/phcsBflRegCtl_Wrapper.cpp \\\r\ncomps\/phcsBflPolAct\/src\/phcsBflPolAct_Wrapper.cpp \\\r\ncomps\/phcsBflI3P4\/src\/phcsBflI3P4_PcdWrapper.cpp\r\n<\/pre>\n<p>And a standard configure.ac<\/p>\n<pre>AC_INIT([Bfl],[4.1])\r\nAM_INIT_AUTOMAKE\r\nAC_PROG_CXX\r\nAC_PROG_CC\r\nAC_PROG_LIBTOOL\r\nAC_CONFIG_FILES([Makefile])\r\nAC_OUTPUT\r\n<\/pre>\n<p>Beware the BfL does not work on 64bit systems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The BfL source of version 4.1\/2 does not offer a build system for Linux. Here is an automake Makefile.am: AUTOMAKE_OPTIONS = foreign AM_CFLAGS = -g -Wall AM_CPPFLAGS = -I$(top_srcdir)\/intfs\/IphcsBflI3P4AAct\/inc\/ \\ -I$(top_srcdir)\/types \\ -I$(top_srcdir)\/intfs\/IphcsBflI3P4\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflIo\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflRegCtl\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflBal\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflAux\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflOpCtl\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflNfc\/inc\/ \\ -I$(top_srcdir)\/intfs\/IphcsBflIdMan\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflI3P3A\/inc \\ -I$(top_srcdir)\/intfs\/IphcsBflMfRd\/inc\/ \\ -I$(top_srcdir)\/intfs\/IphcsBflPolAct\/inc\/ \\ -D__int32_t_defined &hellip; <a href=\"https:\/\/arved.priv.at\/weblog\/2012\/12\/20\/compiling_the_n\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Compiling the NXP Basic Function Library BFL on Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-609","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts\/609","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/comments?post=609"}],"version-history":[{"count":1,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts\/609\/revisions"}],"predecessor-version":[{"id":616,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/posts\/609\/revisions\/616"}],"wp:attachment":[{"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/media?parent=609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/categories?post=609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arved.priv.at\/weblog\/wp-json\/wp\/v2\/tags?post=609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}