Note that size of a kernel image for La Fonera must not exceed 720 KB. So you should not add various kernel options as you need to keep size being smaller than 720 KB.
As La Fonera has only limited flash memory space, you should limit the final rootfs image up to 4 MB at most. It means you are not afford to add packages as you wish. If you are just about to add all of the hipl binary files into your rootfs image, your flash memory would not able to load the oversized image. Therefore the hipl install part in Makefile is carefully designed to copy only necessary files into the rootfs image.
define Package/hipl/install $(INSTALL_DIR) $(1)/etc/init.d/ $(INSTALL_DIR) $(1)/etc/hip/ $(INSTALL_DIR) $(1)/etc/hip/test/ $(INSTALL_DIR) $(1)/etc/modules.d/ $(INSTALL_DIR) $(1)/usr/bin/ $(INSTALL_DIR) $(1)/usr/sbin/ $(INSTALL_DATA) ./files/hipd.init $(1)/etc/init.d/hipd $(INSTALL_DATA) ./files/hipfw.init $(1)/etc/init.d/hipfw $(INSTALL_DATA) ./files/hipl.modules $(1)/etc/modules.d/35-hipl $(INSTALL_DATA) ./files/test/* $(1)/etc/init.d/test/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/conntest* $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hipsetup* $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libinet6test* $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/listifaces* $(1)/usr/bin/ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/ endif
As you see above, /usr/local directory is totally excluded, and only limited numbers of files in /usr/bin are included, to decrease the total image size as much as possible. If hipl deploys additional binaries besides them, this Makefile also needs to be updated as long as the size of final rootfs image does not exceed 4 MB.
If you meet an error like "libintl.h: no such file or directory", try rebuilding gcc and uClibc in toolchain.
If you meet an error like "-luuid: cannot find", try rebuilding e2fsprogs.
Building hipl under the kamikaze devel tree does not go well always. It could cause you to correct numerous errors while building it. You are warned!
If you encounter an error like "SHA: undefined reference", use the macro HIP_SHA() instead of SHA(). Using SHA() does not make any problem with a native compiler, but it causes errors with a cross compiler. For that reason HIP_SHA() is defined in `libhiptool/crypto.h` to be used for any calls to SHA().