全部博文(168)
分类: 嵌入式
2013-02-16 18:15:44
页面左侧区域分别对应 outer_logo->inner_logo, (illustrate description: )
outer_container->nav_external_container->
(nav_top,nav_internal_container1->nav_internal_container2->(nav_internal_end1,nav_unselected_divider_end1, xxx, nav_unselected_divider, xxx ...))
(illustrate description: )
/usr/bin/gargoyle_header_footer <-- package/gargoyle/src/gargoyle_header_footer.c
package/gargoyle/files/www/themes/default/images/top-gradient-logo.gif
----
full-build.sh:
1、拷贝openwrt版本目录为$target-src
#copy source to new, target build directory
#copy gargoyle-specific packages to build directory
#copy compressed javascript to build directory
#copy this target configuration to build directory
#Set gargoyle official version parameter in gargoyle package
scripts/patch-kernel.sh . "$patches_dir/"
openwrt_target=$(get_target_from_config "./.config")
6、将$target-src/bin/$arch/packages/下的包文件(*.ipk)和index_file(Packa*)拷贝到 gargoyle的built/$target/ 目录下
#copy packages to built/target directory
#copy images to images/target directory 将 images 文件拷贝到 gargoyle的images/$target/ 目录下
7、处理other profiles ... gargoyle/targets/$target/profiles/目录下除了default目录可以添加其他profile目录,如果存在会根据profile重新编译相应images ...
other_profiles=$(ls $targets_dir/$target/profiles | grep -v "^$default_profile$" )
cp -r "$openwrt_src_dir" "$target-src"
2、将gargoyle/package/*目录拷贝到$target-src/package/下面
package_dir="package"
gargoyle_packages=$(ls "$package_dir" )
for gp in $gargoyle_packages ; do
if [ -d "$target-src/package/$gp" ] ; then
rm -rf "$target-src/package/$gp"
fi
cp -r "$package_dir/$gp" "$target-src/package"
done
if [ "$js_compress" = "true" ] ; then
rm -rf "$target-src/package/gargoyle/files/www/js"
cp -r "$compress_js_dir" "$target-src/package/gargoyle/files/www/js"
fi
4、拷贝$target/profiles/default/config为openwrt目录的 .conf
cp "$targets_dir/$target/profiles/$default_profile/config" "$target-src/.config"
5、设置版本信息 && 打补丁 && 编译
echo "OFFICIAL_VERSION:=$full_gargoyle_version" > .ver
cat .ver "$package_dir/gargoyle/Makefile" >.vermake
rm .ver; mv .vermake "$package_dir/gargoyle/Makefile"
#build, if verbosity is 0 dump most output to /dev/null, otherwise dump everything
scripts/patch-kernel.sh . "$targets_dir/$target/patches/"
sh $netfilter_patch_script . ../netfilter-match-modules 1 1
create_gargoyle_banner "$openwrt_target" "$profile_name" "$build_date" "$short_gargoyle_version" "$gargoyle_git_revision" "$branch_name" "$rnum" "package/base-files/files/etc/banner" "."
make -j 4 V=99 GARGOYLE_VERSION="$numeric_gargoyle_version"