Guest User

Untitled

a guest
Apr 23rd, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.10 KB | None | 0 0
  1. Index: package/librpc/Makefile
  2. ===================================================================
  3. --- package/librpc/Makefile (revision 29417)
  4. +++ package/librpc/Makefile (working copy)
  5. @@ -9,7 +9,16 @@
  6.  PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  7.  PKG_SOURCE_VERSION:=0a2179bbc0844928f2a0ec01dba93d9b5d6d41a7
  8.  PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
  9. -ifdef CONFIG_USE_UCLIBC
  10. +
  11. +ifndef CONFIG_NATIVE_TOOLCHAIN
  12. + ifndef CONFIG_EXTERNAL_TOOLCHAIN
  13. +  ifdef CONFIG_USE_UCLIBC
  14. +    BUILD_LIBRPC=1
  15. +  endif
  16. + endif
  17. +endif
  18. +
  19. +ifdef BUILD_LIBRPC
  20.    CMAKE_INSTALL:=1
  21.  endif
  22.  
  23. @@ -23,11 +32,27 @@
  24.    MDEPENDS:=@USE_UCLIBC
  25.  endef
  26.  
  27. -ifdef CONFIG_USE_UCLIBC
  28. +ifdef BUILD_LIBRPC
  29.    define Package/librpc/install
  30.     $(INSTALL_DIR) $(1)/lib/
  31.     $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/librpc.so $(1)/lib/
  32.    endef
  33. +else
  34. +  define Build/Prepare
  35. +  endef
  36. +
  37. +  define Build/Configure
  38. +  endef
  39. +
  40. +  define Build/Compile
  41. +  endef
  42. +
  43. +  define Build/Install
  44. +  endef
  45. +
  46. +  define Package/librpc/install
  47. +   true
  48. +  endef
  49.  endif
  50.  
  51.  $(eval $(call BuildPackage,librpc))
Add Comment
Please, Sign In to add comment