When trying to build the latest source on Ubuntu 13.04, I've found a couple of issues :-
The xap-flash Makefile has a line :-
install -m 444 *.{swf,png,jpg,xml} $(INSTALL_DIR)/usr/share/flash
This throws an error :-
install: cannot stat '*.{swf,png,jpg,xml}
A workaround is to include 4 seperate lines for each file type :-
install -m 444 *.swf $(INSTALL_DIR)/usr/share/flash
install -m 444 *.png $(INSTALL_DIR)/usr/share/flash
install -m 444 *.jpg $(INSTALL_DIR)/usr/share/flash
install -m 444 *.xml $(INSTALL_DIR)/usr/share/flash
NOTE: The next time you sync with the repository you will get a conflict.
The second problem is that there is no root user as such, so at the end of the build process when you get prompted for the root password, whatever you enter is wrong. To overcome this it is necessary to run the make command like this and enter your password when prompted, a downside of this is that root then owns all the files :-
$ cd livebox-hah-read-only
$ sudo make
A workaround for this would to to change the lines below in the HAH Makefile, but again, you will get a repository conflict the next time you sync.
Under the buildimage section:
su --command="cd $(TARGETS_DIR); ./buildFS"
to
sudo su --command="cd $(TARGETS_DIR); ./buildFS"
Under target_clean section:
su --command "rm -fr $(TARGET_RS)"
to
sudo su --command "rm -fr $(TARGET_RS)"
There may be better solutions, but these worked for me.