ASR_BASE
Change-Id: Icf3719cc0afe3eeb3edc7fa80a2eb5199ca9dda1
diff --git a/external/subpack/libs/libatasmart/patches/001-fix-cross-compile.patch b/external/subpack/libs/libatasmart/patches/001-fix-cross-compile.patch
new file mode 100644
index 0000000..93d8633
--- /dev/null
+++ b/external/subpack/libs/libatasmart/patches/001-fix-cross-compile.patch
@@ -0,0 +1,43 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -114,7 +114,6 @@ dnl###################################
+
+ AC_CONFIG_FILES([
+ Makefile
+-strpool/Makefile
+ libatasmart.pc
+ ])
+ AC_OUTPUT
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -22,7 +22,6 @@ AM_LDFLAGS = $(GCLDFLAGS)
+ dist_doc_DATA = README
+
+ EXTRA_DIST = \
+- autogen.sh \
+ LGPL \
+ README \
+ atasmart.c \
+@@ -47,9 +46,6 @@ EXTRA_DIST = \
+ blob-examples/WDC_WD5000AAKS--00TMA0-12.01C01 \
+ vala/atasmart.vapi
+
+-# build the strpool tool first
+-SUBDIRS = strpool .
+-
+ CLEANFILES = atasmart.strpool.c
+
+ MAINTAINERCLEANFILES =
+@@ -94,10 +90,7 @@ libatasmart_la_CFLAGS = \
+ BUILT_SOURCES = \
+ atasmart.strpool.c
+
+-strpool/strpool:
+- $(MAKE) -C strpool strpool
+-
+-atasmart.strpool.c: atasmart.c strpool/strpool
+- $(top_builddir)/strpool/strpool $< $@
++atasmart.strpool.c: atasmart.c
++ $(STAGING_DIR_HOSTPKG)/bin/strpool $< $@
+
+ ACLOCAL_AMFLAGS = -I m4