Installing JamVM 2.0 on OpenWrt : how to change the Makefile so it uses OpenJDK library? -


i want install openhab in openwrt environment (for on virtual machine x86 architecture), , needs have java runtime @ least version 1.6.

so i've used openwrt 14.07 (breaking barrier) sdk cross compiler, , include compact java machine called jamvm. version 1.x, jamvm using gnu classpath provides java 1.5, since jamvm 2.0, program allows use openjdk provide java 1.6 1.9. want generate jamvm package include openjdk library, i'm not familiarized makefile configurations. here current makefile gnu classpath library setted :


# # copyright (c) 2006-2015 openwrt.org # # free software, licensed under gnu general public license v2. # see /license more information. #  include $(topdir)/rules.mk  pkg_name:=jamvm pkg_version:=2.0.0 pkg_release:=1 pkg_license:=gpl-2.0+ pkg_maintainer:=dana h. myers <k6jq@comcast.net>  pkg_source:=$(pkg_name)-$(pkg_version).tar.gz pkg_source_url:=@sf/$(pkg_name) pkg_md5sum:=a6e3321ef4b3cfb4afc20bd75452e11e  pkg_use_mips16:=0  pkg_fixup:=autoreconf pkg_install:=1  include $(include_dir)/package.mk  define package/jamvm   submenu:=java   section:=lang   category:=languages   title:=a compact java virtual machine   url:=http://sourceforge.net/projects/jamvm   depends:=+zlib +libpthread +librt +classpath @!avr32 endef  define package/jamvm/description  jamvm new java virtual machine conforms jvm  specification version (blue book). in comparison other vm's (free  , commercial) extremely small.however, unlike other small vms  (e.g. kvm) designed support full specification, , includes  support object finalisation, soft/weak/phantom references, java  native interface (jni) , reflection api. endef  configure_args += \     --with-java-runtime-library=gnuclasspath \     --with-classpath-install-dir=/usr \     --disable-int-inlining \     --disable-shared \     --without-pic  make_flags += \     glibj_zip=$(staging_dir)/usr/share/classpath/glibj.zip  define package/jamvm/install     $(install_dir) $(1)/usr     $(cp) \         $(pkg_install_dir)/usr/bin \         $(pkg_install_dir)/usr/share \         $(1)/usr/ endef  define build/installdev     $(cp) $(pkg_install_dir)/* $(1)/ endef  $(eval $(call buildpackage,jamvm)) 

i know in configure_args, can change line

--with-java-runtime-library=gnuclasspath \ 

to

--with-java-runtime-library=openjdk7 \ 

but single change, package isn't able compile when do

make /packages/lang/jamvm 

is there knows do?

thank all

it not easy. there bunch of patches waldemar brodkorb on openwrt mailing list openjdk 7 , older ones openjdk 6. understanding enable build x86 version.

i think easier remove java version contraints openhab bundles cross building openjdk jamvm - no joke!


Comments