mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 00:18:42 +09:00
odroid-stamper: Add build option "--addon-wifi".
for select install DKMS packages or not. +) Add new directory "addon" it have no dependency of boards. Signed-off-by: steve.jeong <jkhpro1003@gmail.com> Change-Id: Ic010d5bf433078f40872a1bd53990a7ffda90372
This commit is contained in:
5
addon/wifi/packages
Normal file
5
addon/wifi/packages
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
wireless-tools
|
||||||
|
wpasupplicant
|
||||||
|
network-manager
|
||||||
|
rtl8821au-dkms
|
||||||
|
rtl8821cu-dkms
|
||||||
@@ -19,6 +19,11 @@ apt install @@DEFAULT_APT_OPTIONS@@ \
|
|||||||
linux-image-@@DEFAULT_KERNEL_PACKAGE@@ \
|
linux-image-@@DEFAULT_KERNEL_PACKAGE@@ \
|
||||||
@@DEFAULT_BOOTSCRIPT_PACKAGE@@ || exit 1
|
@@DEFAULT_BOOTSCRIPT_PACKAGE@@ || exit 1
|
||||||
|
|
||||||
|
if [ "x@@BUILD_DKMS@@" = "xtrue" ]; then
|
||||||
|
apt install @@DEFAULT_APT_OPTIONS@@ \
|
||||||
|
linux-headers-@@DEFAULT_KERNEL_PACKAGE@@
|
||||||
|
fi
|
||||||
|
|
||||||
if ls /overlay/host/debs/*.deb 1>/dev/null 2>&1; then
|
if ls /overlay/host/debs/*.deb 1>/dev/null 2>&1; then
|
||||||
dpkg -i $(ls /overlay/host/debs/*.deb)
|
dpkg -i $(ls /overlay/host/debs/*.deb)
|
||||||
apt install --fix-broken @@DEFAULT_APT_OPTIONS@@
|
apt install --fix-broken @@DEFAULT_APT_OPTIONS@@
|
||||||
|
|||||||
@@ -146,6 +146,10 @@ get_flavour_packages() {
|
|||||||
pkgs="${pkgs} casper"
|
pkgs="${pkgs} casper"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "x${WIFI}" = "xtrue" ]; then
|
||||||
|
pkgs="${pkgs} $(get_packages addon/wifi/packages)"
|
||||||
|
fi
|
||||||
|
|
||||||
echo ${pkgs} | tr " " "\n" | sort | uniq | tr "\n" " "
|
echo ${pkgs} | tr " " "\n" | sort | uniq | tr "\n" " "
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -451,6 +455,7 @@ do_preinstall() {
|
|||||||
-e "s,@@LIVESYSTEM@@,${LIVESYSTEM},g" \
|
-e "s,@@LIVESYSTEM@@,${LIVESYSTEM},g" \
|
||||||
-e "s,@@MACHINEID@@,$(dbus-uuidgen),g" \
|
-e "s,@@MACHINEID@@,$(dbus-uuidgen),g" \
|
||||||
-e "s,@@INTERNAL@@,${INTERNAL},g" \
|
-e "s,@@INTERNAL@@,${INTERNAL},g" \
|
||||||
|
-e "s,@@BUILD_DKMS@@,${BUILD_DKMS},g" \
|
||||||
${fixup}
|
${fixup}
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ for opt in "$@"; do
|
|||||||
--kernel=*) opt_kernel_package="${opt#*=}";;
|
--kernel=*) opt_kernel_package="${opt#*=}";;
|
||||||
--custom=*)
|
--custom=*)
|
||||||
opt_custom="${opt#*=}";;
|
opt_custom="${opt#*=}";;
|
||||||
|
--addon-wifi) opt_wifi=true;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
|
||||||
@@ -94,9 +95,11 @@ fi
|
|||||||
[ "x${opt_isoimage}" = "xtrue" ] && ISOIMAGE=true
|
[ "x${opt_isoimage}" = "xtrue" ] && ISOIMAGE=true
|
||||||
[ "x${opt_compress}" = "xtrue" ] && COMPRESS=true
|
[ "x${opt_compress}" = "xtrue" ] && COMPRESS=true
|
||||||
[ "x${opt_internal}" = "xtrue" ] && INTERNAL=true
|
[ "x${opt_internal}" = "xtrue" ] && INTERNAL=true
|
||||||
|
[ "x${opt_wifi}" = "xtrue" ] && WIFI=true
|
||||||
|
|
||||||
[ "${RUN_MENU}" = "true" ] && do_menu
|
[ "${RUN_MENU}" = "true" ] && do_menu
|
||||||
[ "x${ISOIMAGE}" = "xtrue" ] && LIVESYSTEM=true
|
[ "x${ISOIMAGE}" = "xtrue" ] && LIVESYSTEM=true
|
||||||
|
[ "x${WIFI}" = "xtrue" ] && BUILD_DKMS=true
|
||||||
|
|
||||||
if [ "x${IMAGE_FILE}" = "x" ]; then
|
if [ "x${IMAGE_FILE}" = "x" ]; then
|
||||||
if [ "x${CUSTOMOS}" = "x" ]; then
|
if [ "x${CUSTOMOS}" = "x" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user